Ejemplo n.º 1
0
 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'));
     }
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 6
0
 function __construct()
 {
     parent::__construct(array('name' => __('Accordion', 'themify'), 'slug' => 'accordion'));
 }
Ejemplo n.º 7
0
 function __construct()
 {
     parent::__construct(array('name' => __('Post', 'themify'), 'slug' => 'post'));
 }
Ejemplo n.º 8
0
 function __construct()
 {
     parent::__construct(array('name' => __('Image', 'themify'), 'slug' => 'image'));
 }
Ejemplo n.º 9
0
 function __construct()
 {
     parent::__construct(array('name' => __('Slider', 'themify'), 'slug' => 'slider'));
     add_action('after_setup_theme', array($this, 'setup_slider_cpt'), 30);
 }
Ejemplo n.º 10
0
 function __construct()
 {
     parent::__construct(array('name' => __('Gallery', 'themify'), 'slug' => 'gallery'));
 }
Ejemplo n.º 11
0
 function __construct()
 {
     parent::__construct(array('name' => __('Menu', 'themify'), 'slug' => 'menu'));
 }
Ejemplo n.º 12
0
 function __construct()
 {
     parent::__construct(array('name' => __('Video', 'themify'), 'slug' => 'video'));
 }
Ejemplo n.º 13
0
 function __construct()
 {
     parent::__construct(array('name' => __('Divider', 'themify'), 'slug' => 'divider'));
 }
Ejemplo n.º 14
0
 function __construct()
 {
     parent::__construct(array('name' => __('Layout Part', 'themify'), 'slug' => 'layout-part'));
     add_action('themify_builder_lightbox_fields', array($this, 'add_fields'), 10, 2);
 }
Ejemplo n.º 15
0
 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);
 }
Ejemplo n.º 16
0
 function __construct()
 {
     parent::__construct(array('name' => __('Feature', 'themify'), 'slug' => 'feature'));
 }
Ejemplo n.º 17
0
 function __construct()
 {
     parent::__construct(array('name' => __('Callout', 'themify'), 'slug' => 'callout'));
 }
Ejemplo n.º 18
0
 function __construct()
 {
     parent::__construct(array('name' => __('Tab', 'themify'), 'slug' => 'tab'));
 }
Ejemplo n.º 19
0
 function __construct()
 {
     parent::__construct(array('name' => __('Box', 'themify'), 'slug' => 'box'));
 }
Ejemplo n.º 20
0
 function __construct()
 {
     parent::__construct(array('name' => __('Map', 'themify'), 'slug' => 'map'));
     add_action('wp_enqueue_scripts', array($this, 'load_map_script'));
 }