Exemplo n.º 1
0
 public function __construct()
 {
     $data = array('type' => 'board', 'label' => _x('Board', 'noun - singular form', 'creatom'), 'plural' => _x('Boards', 'noun - plural form', 'creatom'), 'descrip' => __('On The Boards', 'creatom'), 'main_blog' => true, 'menu_icon' => 'dashicons-welcome-write-blog', 'menu_position' => 7, 'sidebar' => array('description' => 'Sidebar for On The Boards single template', 'before_title' => '<h3 class="centerme bookman">', 'after_title' => '</h3>', 'before_widget' => '<div class="row">', 'after_widget' => '</div>'), 'templates' => array('single' => WP_PLUGIN_DIR . '/creatombuilder/templates/single-board.php'), 'columns' => array('remove' => array('categories')));
     parent::__construct($data);
     add_action('add_meta_boxes', array($this, 'add_meta_boxes'));
     add_action('save_post', array($this, 'save_meta_boxes'));
 }
Exemplo n.º 2
0
 public function __construct()
 {
     $data = array('label' => _x('Project Type', 'singular form', 'creatom'), 'plural' => _x('Project Types', 'plural form', 'creatom'), 'descrip' => __('Project Type Deep Dives', 'creatom'), 'cap_suffix' => array('singular' => 'project-type', 'plural' => 'project-types'), 'sidebar' => array('description' => 'Sidebar for Project Type Deep Dives single template', 'before_title' => '<h3 class="centerme bookman">', 'after_title' => '</h3>', 'before_widget' => '<div class="row">', 'after_widget' => '</div>'), 'templates' => array('single' => WP_PLUGIN_DIR . '/creatombuilder/templates/single-project.php'));
     parent::__construct($data);
     add_action('admin_enqueue_scripts', array($this, 'enqueue_styles'), 11);
     add_action('add_meta_boxes', array($this, 'add_meta_boxes'));
     add_action('save_post', array($this, 'save_meta_boxes'));
     add_action('admin_init', array($this, 'check_caps'), 20);
 }
 public function __construct()
 {
     $data = array('label' => _x('Property', 'single plot of land', 'tcc-real_estate'), 'plural' => _x('Properties', 'multiple plots of land', 'tcc-real-estate'), 'descrip' => __('Real Estate Property', 'tcc-real-estate'), 'tax_keep' => array('prop_city' => $this->default_prop_city(), 'prop_state' => $this->default_prop_state(), 'prop_area' => $this->default_prop_area()), 'sidebar' => array('name' => __('Property Sidebar', 'tcc-real-estate'), 'id' => 'property'), 'templates' => array('single' => plugin_dir_path(__FILE__) . "../template-parts/single-property.php"));
     parent::__construct($data);
     $this->caps = '';
     #  allow this class to determine capability_types for custom roles
     add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'));
     add_action('tcc_custom_post_' . $this->type, array($this, 'create_taxonomies'));
     add_action('add_meta_boxes_' . $this->type, array($this, 'add_meta_boxes'));
     add_action('save_post_' . $this->type, array($this, 'save_meta_boxes'));
     add_filter('wp_dropdown_users', array($this, 'agent_dropdown_listing'));
     self::$instance = $this;
 }
 public function __construct()
 {
     $data = array('label' => __('Property Listing', 'walsh'), 'nodelete' => true, 'plural' => __('Property Listings', 'walsh'), 'menu_icon' => plugins_url('../images/property.png', __FILE__));
     parent::__construct($data);
 }