function __construct() { parent::__construct(array('name' => __('Testimonial', 'themify'), 'slug' => 'testimonial')); /////////////////////////////////////// // Load Post Type /////////////////////////////////////// $this->meta_box = $this->set_metabox(); $this->initialize_cpt(array('plural' => __('Testimonials', 'themify'), 'singular' => __('Testimonial', 'themify'), 'menu_icon' => 'dashicons-testimonial')); if (!shortcode_exists('themify_' . $this->slug . '_posts')) { add_shortcode('themify_' . $this->slug . '_posts', array($this, 'do_shortcode')); } }
function __construct() { parent::__construct(array('name' => __('Slider', 'themify'), 'slug' => 'slider')); /////////////////////////////////////// // Load Post Type /////////////////////////////////////// $this->meta_box = $this->set_metabox(); $this->initialize_cpt(array('plural' => __('Slides', 'themify'), 'singular' => __('Slide', 'themify'), 'supports' => array('title', 'editor', 'author', 'custom-fields'), 'menu_icon' => 'dashicons-slides')); if (!shortcode_exists('themify_' . $this->slug . '_posts')) { add_shortcode('themify_' . $this->slug . '_posts', array($this, 'do_shortcode')); } }
function __construct() { parent::__construct(array('name' => __('Highlight', 'themify'), 'slug' => 'highlight')); /////////////////////////////////////// // Load Post Type /////////////////////////////////////// $this->meta_box = $this->set_metabox(); $this->initialize_cpt(array('plural' => __('Highlights', 'themify'), 'singular' => __('Highlight', 'themify'), 'menu_icon' => 'dashicons-welcome-write-blog')); if (!shortcode_exists('themify_highlight_posts')) { add_shortcode('themify_highlight_posts', array($this, 'do_shortcode')); } }
function __construct() { parent::__construct(array('name' => __('Portfolio', 'themify'), 'slug' => 'portfolio')); /////////////////////////////////////// // Load Post Type /////////////////////////////////////// include_once ABSPATH . 'wp-admin/includes/plugin.php'; if (!is_plugin_active('themify-portfolio-post/themify-portfolio-post.php')) { $this->meta_box = $this->set_metabox(); $this->initialize_cpt(array('plural' => __('Portfolios', 'themify'), 'singular' => __('Portfolio', 'themify'), 'rewrite' => apply_filters('themify_portfolio_rewrite', 'project'), 'menu_icon' => 'dashicons-portfolio')); if (!shortcode_exists('themify_portfolio_posts')) { add_shortcode('themify_portfolio_posts', array($this, 'do_shortcode')); } } }
function __construct() { parent::__construct(array('name' => __('Widgetized', 'themify'), 'slug' => 'widgetized')); add_action('themify_builder_lightbox_fields', array($this, 'widgetized_fields'), 10, 2); }
function __construct() { parent::__construct(array('name' => __('Accordion', 'themify'), 'slug' => 'accordion')); }
function __construct() { parent::__construct(array('name' => __('Post', 'themify'), 'slug' => 'post')); }
function __construct() { parent::__construct(array('name' => __('Image', 'themify'), 'slug' => 'image')); }
function __construct() { parent::__construct(array('name' => __('Slider', 'themify'), 'slug' => 'slider')); add_action('after_setup_theme', array($this, 'setup_slider_cpt'), 30); }
function __construct() { parent::__construct(array('name' => __('Gallery', 'themify'), 'slug' => 'gallery')); }
function __construct() { parent::__construct(array('name' => __('Menu', 'themify'), 'slug' => 'menu')); }
function __construct() { parent::__construct(array('name' => __('Video', 'themify'), 'slug' => 'video')); }
function __construct() { parent::__construct(array('name' => __('Divider', 'themify'), 'slug' => 'divider')); }
function __construct() { parent::__construct(array('name' => __('Layout Part', 'themify'), 'slug' => 'layout-part')); add_action('themify_builder_lightbox_fields', array($this, 'add_fields'), 10, 2); }
function __construct() { parent::__construct(array('name' => __('Widget', 'themify'), 'slug' => 'widget')); add_action('themify_builder_lightbox_fields', array($this, 'widget_fields'), 10, 2); add_action('wp_ajax_module_widget_get_form', array($this, 'widget_get_form'), 10); }
function __construct() { parent::__construct(array('name' => __('Feature', 'themify'), 'slug' => 'feature')); }
function __construct() { parent::__construct(array('name' => __('Callout', 'themify'), 'slug' => 'callout')); }
function __construct() { parent::__construct(array('name' => __('Tab', 'themify'), 'slug' => 'tab')); }
function __construct() { parent::__construct(array('name' => __('Box', 'themify'), 'slug' => 'box')); }
function __construct() { parent::__construct(array('name' => __('Map', 'themify'), 'slug' => 'map')); add_action('wp_enqueue_scripts', array($this, 'load_map_script')); }