<?php global $post; ?> <div class="right-post"> <div class="sidebar-post"> <h3>Populares</h3> <i class="fa fa-caret-down"></i> <?php $tposts = get_trending_posts(16, TRENDING_DAYS); foreach ($tposts as $tpost) { $post_title = stripslashes($tpost->post_title); $permalink = get_permalink($tpost->ID); $category = get_the_category($tpost->ID); $category_id = $category[0]->term_id; ?> <article id="post-<?php echo $tpost->ID; ?> " class="post"> <div class="wrapper-img"> <a href="<?php echo get_permalink($tpost->ID); ?> " title="<?php echo $post_title; ?> " rel="bookmark"> <img src="<?php echo get_stylesheet_directory_uri(); ?>
</div> <div class="container"> <div class="row title-section"> <div class="col-sm-12"> <h2>Se destacan</h2> <div class="subtitle">Estos son los posts preferidos por nuestros lectores hoy en <?php single_term_title(); ?> </div> </div> </div> <div class="row destacados"> <div class="col-sm-12"> <div class="row"> <?php $tposts = get_trending_posts(10, TRENDING_DAYS, $term->term_id); $i = 1; foreach ($tposts as $tpost) { $post_title = stripslashes($tpost->post_title); $permalink = get_permalink($tpost->ID); $category = get_the_category($tpost->ID); $category_id = $category[0]->term_id; $large_image_url = wp_get_attachment_image_src(get_post_thumbnail_id($tpost->ID), 'dest-img'); if ($i == 1) { ?> <div class="col-sm-6 col-md-9 col-lg-6"> <article id="post-<?php echo $tpost->ID; ?> " class="destacado-<?php echo $tpost->ID;
"></span><span class="trending-slogan">DAILY BEAT PREMIERE OR SOMETHING</span></div> </div> <?php get_brand_posts('trc'); ?> </div> <div class="row post-wrapper trending-wrapper"> <?php $tags = get_option('trending2_post_tags'); $trending_logo = get_option('trending2_logo'); $args = array('tags' => $tags, 'trending_logo' => $trending_logo); if ($tags && $tags != '') { get_trending_posts($args); } ?> </div> <div class="row"> <div id="standard-posts" class="col-xs-12"> <?php get_standard_loop(); ?> </div> <div class="col-xs-12"> <?php global $exclude_posts; ?>