Example #1
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct(array('name' => __('Category Image', 'themify-flow'), 'slug' => 'category-image', 'shortcode' => 'tf_category_image', 'description' => 'Category Image module', 'category' => 'archive'));
     if (is_admin()) {
         add_action('edit_category_form_fields', array($this, 'category_edit_fields'));
         add_action('category_add_form_fields', array($this, 'category_add_fields'));
         add_action('edited_category', array($this, 'save_category_fileds'));
         add_action('created_category', array($this, 'save_category_fileds'));
     }
 }
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct(array('name' => __('Archive Post', 'themify-flow'), 'slug' => 'archive-loop', 'shortcode' => 'tf_archive_loop', 'description' => 'Archive Post module', 'category' => 'archive'));
 }
Example #3
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct(array('name' => __('Text', 'themify-flow'), 'slug' => 'text', 'shortcode' => 'tf_text', 'description' => 'Text module', 'category' => 'content'));
 }
Example #4
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct(array('name' => __('Widget', 'themify-flow'), 'slug' => 'widget', 'shortcode' => 'tf_widget', 'description' => __('Display widget.', 'themify-flow'), 'category' => 'global'));
     add_action('wp_ajax_tf_builder_get_widget_form', array($this, 'ajax_get_form'));
 }
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct(array('name' => __('List Posts', 'themify-flow'), 'slug' => 'lists-posts', 'shortcode' => 'tf_lists_posts', 'description' => 'Module to show posts from selected categories', 'category' => 'global'));
 }
Example #6
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct(array('name' => __('Next/Prev Post', 'themify-flow'), 'slug' => 'next_prev_post', 'shortcode' => 'tf_next_prev_post', 'description' => __('Display Post Navigation.', 'themify-flow'), 'category' => 'single'));
 }
Example #7
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct(array('name' => __('Page Featured Image', 'themify-flow'), 'slug' => 'page_featured_image', 'shortcode' => 'tf_page_featured_image', 'description' => 'Page Featured Image module', 'category' => 'page'));
 }
Example #8
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct(array('name' => __('Template Part', 'themify-flow'), 'slug' => 'template-part', 'shortcode' => 'tf_module_template_part', 'description' => __('Show content of selected Template Part', 'themify-flow'), 'category' => 'global'));
 }
Example #9
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct(array('name' => __('Page Content', 'themify-flow'), 'slug' => 'page-content', 'shortcode' => 'tf_page_content', 'description' => __('Display the content of the page.', 'themify-flow'), 'category' => 'page'));
 }
Example #10
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct(array('name' => __('Widget Area', 'themify-flow'), 'slug' => 'widget_area', 'shortcode' => 'tf_widget_area', 'description' => __('Display widget area.', 'themify-flow'), 'category' => 'global'));
 }
Example #11
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct(array('name' => __('Comments', 'themify-flow'), 'slug' => 'comments', 'shortcode' => 'tf_comments', 'description' => __('Display the comments.', 'themify-flow'), 'category' => array('single', 'page')));
 }
Example #12
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct(array('name' => __('Search Form', 'themify-flow'), 'slug' => 'searchform', 'shortcode' => 'tf_searchform', 'description' => __('Display WordPress search form.', 'themify-flow'), 'category' => 'global'));
 }
Example #13
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct(array('name' => __('Page Title', 'themify-flow'), 'slug' => 'page-title', 'shortcode' => 'tf_page_title', 'description' => __('Display page title on the page', 'themify-flow'), 'category' => 'page'));
 }
Example #14
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct(array('name' => __('Author Box', 'themify-flow'), 'slug' => 'author-box', 'shortcode' => 'tf_author_box', 'description' => __('Author Box', 'themify-flow'), 'category' => 'single'));
 }
Example #15
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct(array('name' => __('Category Title', 'themify-flow'), 'slug' => 'category-title', 'shortcode' => 'tf_category_title', 'description' => __('Category Title', 'themify-flow'), 'category' => 'archive'));
 }