This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if( get_sub_field('telefone_representante') ): ?> | |
<p><i class="fa fa-phone" aria-hidden="true"></i> <?php echo the_sub_field('telefone_representante');?></p> | |
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
img, object, embed, video { | |
max-width: 100%; | |
height: auto; | |
} | |
iframe{ | |
margin:auto; | |
display:block; | |
max-width: 100%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$args = array ( | |
'post_type' => 'eventos', // ou post_type => 'post' | |
'orderby'=> 'title', | |
'order' => 'ASC', | |
'posts_per_page' => '50' | |
); | |
$the_query = new WP_Query ( $args ); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="logo"> | |
<div class="pull-left"> | |
<img src="dist/img/logo.png" alt="[Logo]"> | |
</div> | |
<div class="esconde pull-left"> | |
<div class="nome"> | |
<img src="dist/img/logo-nome.png" alt="[Retina Web]"> | |
</div><!-- /nome --> | |
</div><!-- /esconde --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt_BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Titulo</title> | |
<meta name="robots" content="index, follow"/> | |
<!-- Favicon --> | |
<link rel="icon" href="dist/img/favicon-16.png" sizes="16x16" type="image/png"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$wp_query = new WP_Query(); | |
query_posts( array( 'category_name' => 'lifestyle', 'showposts' => 2,)); | |
if(have_posts()): | |
while ($wp_query -> have_posts()) : $wp_query -> the_post(); | |
?> | |
<div class="item-mega-menu"> | |
<li> | |
<div class="item-img-destaque"> | |
<img src="<?php the_field('imagem_destaque'); ?>"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php the_time('d/m/Y') ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $post; | |
$categoria = get_the_category($post->id); | |
$nomeCategoria = $categoria[0]->cat_name; | |
echo $nomeCategoria; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$args = array( | |
'orderby' => 'name', | |
'parent' => 0 | |
); | |
$categories = get_categories( $args ); | |
foreach ( $categories as $category ) { | |
echo '<a href="' . get_category_link( $category->term_id ) . '">- ' . $category->name . ' -</a>'; | |
} | |
?> |