public static function get_instance() { // If the single instance hasn't been set, set it now. if (null == self::$instance) { self::$instance = new self(); } return self::$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';