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; }
/** * @author Stylish Themes * * @since 1.0.0 */ if (!defined('ABSPATH')) { exit; } $post_categories = wp_get_post_terms(get_the_ID(), 'zen_port_cat'); $prefix = 'zen_prtf_'; $cat_slugs = ''; foreach ($post_categories as $cat) { $cat_slugs .= ' ' . $cat->slug . ' '; } $query = Zen_Portfolio_Shortcode::get_instance()->portfolio_query; ?> <div id="portfolio-<?php the_ID(); ?> " class="portfolio-post clearfix"> <div class="col-sm-1 row-left"> <?php if ($query->current_post == 0) { ?> <div class="up-down-buttons"> <a href="#" class="btn-up"></a> <a href="#" class="btn-down"></a>