Exemplo n.º 1
0
        if ($blog_feed_page_options['posts_query']->have_posts()) {
            while ($blog_feed_page_options['posts_query']->have_posts()) {
                $blog_feed_page_options['posts_query']->the_post();
                $post_format = et_get_post_format();
                ?>
								<article id="post-<?php 
                the_ID();
                ?>
" <?php 
                post_class('et-format-' . $post_format);
                ?>
>
									<div class="header">
										<?php 
                $thumb_args = array('size' => 'extra-image-medium', 'img_after' => '<span class="et_pb_extra_overlay"></span>');
                $score_bar = extra_get_the_post_score_bar();
                require locate_template('post-top-content.php');
                ?>
									</div>
									<?php 
                if (!in_array($post_format, array('quote', 'link'))) {
                    ?>
									<div class="post-content">
										<?php 
                    $color = !empty($category_color) ? $category_color : extra_get_post_category_color();
                    ?>
										<h2 class="post-title"><a class="et-accent-color" style="color:<?php 
                    echo esc_attr($color);
                    ?>
;" href="<?php 
                    the_permalink();
Exemplo n.º 2
0
function extra_get_the_post_featured_image($args = array())
{
    $default_args = array('size' => 'extra-image-huge', 'a_class' => array('featured-image'), 'img_after' => extra_get_the_post_score_bar());
    $args = wp_parse_args($args, $default_args);
    return et_extra_get_post_thumb($args);
}