Example #1
0
        <?php 
        if ($this->has_widgets) {
            ?>
            <div class="col-sm-9">
        <?php 
        } else {
            ?>
            <div>
        <?php 
        }
        ?>

        <?php 
        global $zen7_data;
        if ($zen7_data['zen_pag_style'] == '2') {
            zen_paging_nav_query($query);
        } else {
            zen_numbers_pagination_query($query);
        }
        ?>

        <div class="clear"></div>

        </div>

        <?php 
        return $output;
    }
}
Zen_Blog_Masonry_Shortcode::get_instance();
 *
 * @package StylishThemes
 * @subpackage Zen7
 * @since Zen7 1.0.0
 */
?>

<?php 
// File Security Check
if (!defined('ABSPATH')) {
    exit;
}
$classes = array('post-container');
$prefix = 'zen_post_';
$has_widgets = Zen_Blog_Masonry_Shortcode::get_instance()->has_widgets;
$query = Zen_Blog_Masonry_Shortcode::get_instance()->blog_query;
$no_featured_image_style = '';
if (!has_post_thumbnail()) {
    $no_featured_image_style = 'style="margin-left: 0; width: 100%;"';
}
$post_layout = rwmb_meta('zen_post_masonry_style');
$masonry_post_class = '';
if ($has_widgets) {
    if ($post_layout == '') {
        $masonry_post_class = 'col-sm-4';
    } else {
        $masonry_post_class = 'col-sm-8';
    }
} else {
    if ($post_layout == '') {
        $masonry_post_class = 'col-sm-3';