">
                    <div class="hfeed entries blog-entries loop loop-medium-image <?php 
echo esc_attr($entries_class);
?>
">
                        <?php 
$exc_lnth = ts_option_vs_default('excerpt_length_standard', 160);
$excerpt_length = isset($atts['excerpt_length']) && $atts['excerpt_length'] != '' ? $atts['excerpt_length'] : $exc_lnth;
$ts_show = ts_maybe_show_blog_elements($atts);
$show_excerpt = $excerpt_length == '0' || !$ts_show->excerpt ? false : true;
$title_size = ts_get_blog_loop_title_size($atts, 4);
$text_align = ts_get_blog_loop_text_align($atts);
$allow_vids = isset($atts['allow_videos']) ? $atts['allow_videos'] : '';
$allow_gals = isset($atts['allow_galleries']) ? $atts['allow_galleries'] : '';
$mw = 510;
$mh = ts_loop_media_height('list', $atts, $mw);
if ($ts_query->have_posts()) {
    while ($ts_query->have_posts()) {
        $ts_query->the_post();
        $atts['exclude_these_later'] = isset($atts['exclude_these_later']) ? $atts['exclude_these_later'] : '';
        if (!ts_attr_is_false($atts['exclude_these_later'])) {
            $ts_previous_posts[] = $ts_query->post->ID;
        }
        $post_type = get_post_type();
        $category = ts_get_the_category(ts_get_the_display_taxonomy($atts), 'big_array:1', '', $ts_query->post->ID);
        $media = ts_get_featured_media(array('media_width' => $mw, 'media_height' => $mh, 'allow_videos' => $allow_vids, 'allow_galleries' => $allow_gals));
        ?>
                        
                        <div id="post-<?php 
        the_ID();
        ?>
?>
">
                    <div class="hfeed entries blog-entries loop loop-4-column <?php 
echo esc_attr($entries_class);
?>
 clearfix">
                        <?php 
$exc_lnth = ts_option_vs_default('excerpt_length_2col_medium', 100);
$excerpt_length = isset($atts['excerpt_length']) && $atts['excerpt_length'] != '' ? $atts['excerpt_length'] : $exc_lnth;
$ts_show = ts_maybe_show_blog_elements($atts);
$show_excerpt = $excerpt_length == '0' || !$ts_show->excerpt ? false : true;
$title_size = ts_get_blog_loop_title_size($atts, 4);
$text_align = ts_get_blog_loop_text_align($atts);
$allow_gals = isset($atts['allow_galleries']) ? $atts['allow_galleries'] : '';
$mw = 320;
$mh = ts_loop_media_height('4column', $atts, $mw);
if ($ts_query->have_posts()) {
    $i = 1;
    while ($ts_query->have_posts()) {
        $ts_query->the_post();
        $atts['exclude_these_later'] = isset($atts['exclude_these_later']) ? $atts['exclude_these_later'] : '';
        if (!ts_attr_is_false($atts['exclude_these_later'])) {
            $ts_previous_posts[] = $ts_query->post->ID;
        }
        $post_type = get_post_type();
        $category = ts_get_the_category('category', 'big_array:1', '', $ts_query->post->ID);
        $media = ts_get_featured_media(array('media_width' => $mw, 'media_height' => $mh, 'allow_videos' => 'no', 'allow_galleries' => $allow_gals));
        ?>
                        
                        <div id="post-<?php 
        echo esc_attr($ts_query->post->ID);