public static function get_instance()
 {
     if (!self::$instance) {
         self::$instance = new DT_Shortcode_Portfolio_Jgrid();
     }
     return self::$instance;
 }
示例#2
0
            $config->set('post.preview.background.enabled', false);
            $config->set('post.preview.background.style', false);
            $config->set('image_layout', $atts['proportion'] ? 'resize' : 'original');
            $config->set('thumb_proportions', $atts['proportion']);
            $config->set('target_height', $atts['target_height']);
            $config->set('item_padding', $atts['padding']);
            $config->set('post.preview.description.style', $atts['descriptions']);
            $config->set('post.preview.description.alignment', $atts['content_aligment']);
            $config->set('post.preview.hover.animation', $atts['hover_animation']);
            $config->set('post.preview.hover.color', $atts['hover_bg_color']);
            $config->set('post.preview.hover.content.visibility', $atts['hover_content_visibility']);
            $config->set('post.preview.load.effect', $atts['loading_effect'], 'fade_in');
            $config->set('show_links', $atts['show_link']);
            $config->set('show_titles', $atts['show_title']);
            $config->set('show_details', $atts['show_details']);
            $config->set('show_excerpts', $atts['show_excerpt']);
            $config->set('show_zoom', $atts['show_zoom']);
            $config->set('hide_last_row', $atts['hide_last_row']);
            $config->set('post.meta.fields.date', $atts['show_date']);
            $config->set('post.meta.fields.categories', $atts['show_categories']);
            $config->set('post.meta.fields.comments', $atts['show_comments']);
            $config->set('post.meta.fields.author', $atts['show_author']);
            $config->set('template.posts_filter.orderby.enabled', false);
            $config->set('template.posts_filter.order.enabled', false);
            $config->set('order', $atts['order']);
            $config->set('orderby', $atts['orderby']);
        }
    }
    // create shortcode
    DT_Shortcode_Portfolio_Jgrid::get_instance();
}