$el_class .= ' inline-meta'; } $el_class .= " " . $post_layout . '-listing'; query_posts($args); if (have_posts()) { ?> <?php if ($show_switcher == 'yes') { ?> <?php if (!is_array($switcher_layouts)) { $switcher_layouts = explode(',', $switcher_layouts); } kleo_view_switch($switcher_layouts, $post_layout, get_the_ID()); ?> <?php } ?> <?php if ($post_layout == 'masonry') { ?> <div class="posts-listing responsive-cols kleo-masonry per-row-<?php echo $columns; echo $el_class; ?> ">
</div> <?php } ?> <?php if (have_posts()) { ?> <?php if (sq_option('blog_switch_layout', 0) == 1) { /* Blog Layout Switcher */ ?> <?php kleo_view_switch(sq_option('blog_enabled_layouts'), $blog_type); ?> <?php } ?> <?php if ($blog_type == 'masonry') { echo '<div class="row responsive-cols kleo-masonry per-row-' . sq_option('blog_columns', 3) . '">'; } ?> <?php // Start the Loop. while (have_posts()) {