/*
 Theme Name:   Personalize Comunicação
 Template:     Extra
 Version:      1.0.0
 Text Domain:  extra
*/

/* Fonts */
@import url('fonts/afatar.css') screen, print;
@import url('fonts/aleo.css') screen, print;
@import url('fonts/bauer-bodoni.css') screen, print;
@import url('fonts/elephant.css') screen, print;
@import url('fonts/league-gothic.css') screen, print;
@import url('fonts/lobster.css') screen, print;
@import url('fonts/magnifika.css') screen, print;
@import url('fonts/minionpro.css') screen, print;
@import url('fonts/shadows.css') screen, print;








/*
Lembrete de personalizações efetuadas

=>TRADUÇÃO DA LINGUAGEM:
Para se manter a tradução da linguagem para português toda vez que atualizar o tema Extra, deve-se criar o diretório lang no tema Personalize e incluir nele os arquivos traduzidos .Po e .MO
Depois incluir o comando abaixo no arquivo functions.php:

function abdurrehman_et_function() {
load_child_theme_textdomain( 'extra', get_stylesheet_directory() . '/lang' );
}
add_action( 'after_setup_theme', 'abdurrehman_et_function' );


=> EXTRA / THEME OPTIONS / GENERAL/ CUSTOM CSS:

.et_pb_extra_column_sidebar h4.widgettitle {background: rgba(0,0,0,0.81);color: #dad9a7;} 

.nav-link.nav-link-prev span.title,
.nav-link.nav-link-next span.title {color: black !important;}

#back_to_top { background-color: black; }

.posts-blog-feed-module .paginated_content .paginated_page[data-columns]::before { display:none!important; }

.posts-blog-feed-module .et_pb_extra_overlay.et_pb_inline_icon:before { content: '' !important; }



=> EXTRA / THEME OPTIONS / INTEGRATION / Add code to the < head > of your blog:

<script type="text/javascript">(function($) {$(document).ready(function() {$('.et_pb_comments_module #et_pb_submit').text('Enviar');});})(jQuery);</script>


=> APARÊNCIA/EDITOR/PERSONALIZE COMUNICAÇÃO/SINGLE POST.PHP
(Para retirar a data de “Conteúdos Relacionados” no fim de todo post) 
Atenção: excluir, somente, a linha DATA sinalizada "--- AQUI ---"
Copiar o arquivo Single Post.PHP do Tema Extra e colar no Tema Personalize utilizando o WebFTP. 
No tema filho Personalize que se fará esta alteração

$related_posts = extra_get_post_related_posts();
	if ( $related_posts && extra_is_post_related_posts() ) {  ?>
	>div class="et_extra_other_module related-posts">
	<div class="related-posts-header">
	<h3><?php esc_html_e( 'Related Posts', 'extra' ); ?></h3>
	>/div>
	<div class="related-posts-content clearfix">
	<?php while ( $related_posts->have_posts() ) : $related_posts->the_post(); ?>
	<div class="related-post">
	<div class="featured-image"><?php
	echo et_extra_get_post_thumb( array(
	size'                       => 'extra-image-small',
	'a_class'                    => array('post-thumbnail'),
	'post_format_thumb_fallback' => true,
	'img_after'                  => '<span class="et_pb_extra_overlay"></span>',
	));
	?></div>
	<h4 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>

-------------- A Q U I ---------------
	<p class="date"><?php extra_the_post_date(); ?></p>

	</div>
	<?php endwhile; ?>
	<?php wp_reset_postdata(); ?>



=> APARÊNCIA/EDITOR/EXTRA/MODULES.PHP(includes/modules.php)
{Para alterar a classificação de posts em Homepages quando utilizar o Módulo Tabbed, de descendente (desc) para ascendente (asc)}
Atenção: alterar , somente, a linha sinalizada "--- AQUI ---"

function shortcode_callback( $atts, $content = null, $function_name ) {
		$this->_process_shortcode_atts_category_id();

		if ( !empty( $this->shortcode_atts['category_id'] ) ) {
			$categories = array_map( 'absint', explode( ',', $this->shortcode_atts['category_id'] ) );

			$term = get_term( absint( $categories[0] ), 'category' );
			if ( !empty( $term ) ) {
				$this->shortcode_atts['term_name'] = $term->name;
				$this->shortcode_atts['term_color'] = extra_get_category_color( $term->term_id );
			}
		}

if ( empty( $term ) ) {
                                        	$this->shortcode_atts['term_name'] = esc_html__( 'All', 'extra' );
                                        	$this->shortcode_atts['term_color'] = et_builder_accent_color();
                          	}
 
                          	$this->shortcode_atts['module_class'] = ET_Builder_Element::add_module_order_class( '', $this->slug );
 
                          	$this->shortcode_atts['tab_id'] = ET_Builder_Module_Tabbed_Posts::add_child_data( $this->shortcode_atts );


----------------------------- A Q U I ----------------------- 
                          	$this->shortcode_atts['order'] = 'desc';


                          	$this->shortcode_atts['orderby'] = 'date';
 
                          	$this->shortcode_atts = array_merge( $this->shortcode_atts, ET_Builder_Module_Tabbed_Posts::get_global_shortcode_atts() );
 
                          	return parent::shortcode_callback( $atts, $content, $function_name );
           	}

*/