<article class="the-post divide-20 column"> <?php if (have_posts()) { while (have_posts()) { the_post(); global $post; $video = get_field('post_video', $post->ID); if ($video && !empty($video)) { printf('<div class="flex-video divide-20">%s</div>', $video); } the_content(); } } ?> </article> </div> <!-- single sidebar --> <aside id="sidebar" class="small-12 large-3 right section-block"> <?php include_once 'includes/sections/sidebar.popular.php'; echo '<figure id="ads" class="divide-20 column text-center">'; pba_show_ads('ads_interna_lateral', 'ads_interna_lateral_img', 'ads_interna_lateral_html'); echo '</figure>'; include_once 'includes/sections/sidebar.enquete.php'; ?> </aside> </div> <?php get_footer();
<!-- ofertas de carro --> <section id="offers-box" class="small-12 medium-6 large-12 columns cars"> <!-- publicidade --> <figure id="ads" class="divide-20 text-center"> <?php pba_show_ads('ads_lateral_d', 'ads_lateral_d_img', 'ads_lateral_d_html'); ?> </figure> <!--<div class="divide-20"> <header class="small-12 left"> <h3 class="lh-1 no-margin">Ofertas de carro</h3> </header> <nav class="list-offers small-12 left section-block"> <ul id="list-bloggers" class="no-bullet small-12 left no-margin offers list-cars"> <?php $args = array('posts_per_page' => 3, 'orderby' => 'date', 'post_type' => 'oferta'); $the_query = new WP_Query($args); if ($the_query->have_posts()) { while ($the_query->have_posts()) { $the_query->the_post(); global $post; $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'destaque.pequeno'); $th = !empty($thumb[0]) ? $thumb[0] : ''; ?> <li> <figure class="small-12 left"> <a href="<?php the_permalink(); ?>
<?php get_header(); ?> <div id="post-content" class="row"> <div class="small-12 large-9 left"> <!-- publicidade --> <figure id="ads" class="divide-20 column big-ads text-center"> <span class="divide-20"></span> <div class="small-12 left"> <?php pba_show_ads('ads_interna_topo', 'ads_interna_topo_img', 'ads_interna_topo_html'); ?> </div> </figure> <header class="divide-20 column"> <h6 class="post-tag divide-10"><?php echo get_first_tag(); ?> </h6> <h3 class="divide-10"><?php the_title(); ?> </h3> <time class="left font-small" pubdate><?php the_time('j \\d\\e F, Y'); ?> às <?php
?> </a></h6> <?php } } wp_reset_postdata(); ?> </aside> <!-- publicidade --> <figure class="small-3 columns show-for-large-up"> <header class="small-12 left"> <p class="font-small divide-10 text-right text-up"><strong>Publicidade</strong></p> </header> <?php pba_show_ads('ads_topo', 'ads_topo_img', 'ads_topo_html'); ?> </figure> </article> <aside class="small-12 large-9 left"> <section class="small-12 left"> <div class="d-block divide-20 column big-feature" title=""> <?php $args = array('posts_per_page' => 1, 'orderby' => 'date', 'tax_query' => array(array('taxonomy' => 'destaque', 'field' => 'slug', 'terms' => 'destaque-topo-grande'))); $posts = get_posts($args); if ($posts) { foreach ($posts as $post) {
</a></h6> <?php if ($th == '') { echo "</div>"; } ?> </figcaption> <div class="dot-border small-12 columns"> <div class="small-12 left"></div> </div> </figure> </li> <?php } wp_reset_postdata(); } ?> </ul> <!-- publicidade --> <figure id="ads" class="small-12 columns big-ads text-center"> <div class="small-12 left"> <?php pba_show_ads('ads_home_a', 'ads_home_a_img', 'ads_home_a_html'); ?> </div> </figure> </section>
<!-- colunistas --> <nav id="popular" class="small-12 medium-6 large-12 columns"> <!-- publicidade --> <figure id="ads" class="divide-20 text-center"> <?php pba_show_ads('ads_lateral_b', 'ads_lateral_b_img', 'ads_lateral_b_html'); ?> </figure> <!-- publicidade --> <figure id="ads" class="divide-20 text-center"> <?php pba_show_ads('ads_lateral_c', 'ads_lateral_c_img', 'ads_lateral_c_html'); ?> </figure> <div class="no-bullet small-12 left section-block bg-dark popular-container bloggers-container"> <header class="divide-20 column"> <h4 class="white">Colunistas</h4> </header> <ul id="list-bloggers" class="no-bullet small-12 left no-margin"> <?php $args = array('posts_per_page' => -1, 'post_type' => 'coluna', 'taxonomy' => 'colunistas'); $term_exists = array(); $j = 0; $the_query = new WP_Query($args); if ($the_query->have_posts()) { while ($the_query->have_posts()) { $the_query->the_post(); global $post;
<header class="small-12 left"> <h3 class="lh-1 no-margin">Enquete</h3> </header> <?php if (function_exists('vote_poll') && !in_pollarchive()) { get_poll(); } ?> <!--<form action=""> <h5>O que você acha do novo design do portal PBAGORA?</h5> <div class="divide-10"></div> <p class="divide-10"><label><input type="radio" name="e"/> Bonito</label></p> <p class="divide-10"><label><input type="radio" name="e"/> Lindo</label></p> <p class="divide-20"><label><input type="radio" name="e"/> Maravilhoso</label></p> <p class="text-center no-margin"> <input type="submit" value="Votar"/> </p> </form>--> </div> <!-- publicidade --> <figure id="ads" class="divide-20 text-center"> <?php pba_show_ads('ads_lateral_e', 'ads_lateral_e_img', 'ads_lateral_e_html'); ?> </figure> </section>
"><?php the_title(); ?> </a></h6> <?php if ($th == '') { echo "</div>"; } ?> </figcaption> <div class="divide-20"></div> </figure> <?php } wp_reset_postdata(); } ?> </div> </nav> <!-- publicidade --> <figure id="ads" class="small-12 columns big-ads text-center"> <div class="small-12 left"> <?php pba_show_ads('ads_home_b', 'ads_home_b_img', 'ads_home_b_html'); ?> </div> </figure> </section>