Exemplo n.º 1
0
 /**
  * Sets the theme object for use in this class and instantiates the post
  * type and related needs
  *
  * @param RockharborThemeBase $theme
  */
 public function __construct($theme = null)
 {
     parent::__construct($theme);
     register_taxonomy('series', $this->name, array('label' => __('Series', 'rockharbor'), 'sort' => true, 'rewrite' => array('slug' => 'series', 'with_front' => false)));
     register_taxonomy('teacher', $this->name, array('label' => __('Teachers', 'rockharbor'), 'sort' => true, 'rewrite' => array('slug' => 'teachers', 'with_front' => false)));
     register_taxonomy_for_object_type('post_tag', $this->name);
     add_shortcode('single-message', array($this, 'singleMessage'));
 }
Exemplo n.º 2
0
 /**
  * Sets the theme object for use in this class and instantiates the post
  * type and related needs
  *
  * @param RockharborThemeBase $theme
  */
 public function __construct($theme = null)
 {
     parent::__construct($theme);
     register_taxonomy('curriculum_category', $this->name, array('label' => __('Category', 'rockharbor'), 'sort' => true, 'rewrite' => array('slug' => 'curriculum-category', 'with_front' => false)));
     register_taxonomy_for_object_type('post_tag', $this->name);
 }
Exemplo n.º 3
0
 /**
  * Construtor da classe
  */
 public function __construct()
 {
     parent::__construct();
 }
Exemplo n.º 4
0
 /**
  * Sets the theme object for use in this class and instantiates the Staff post
  * type and related needs
  *
  * @param RockharborThemeBase $theme
  */
 public function __construct($theme = null)
 {
     parent::__construct($theme);
     register_taxonomy('department', $this->name, array('label' => __('Department', 'rockharbor'), 'sort' => true, 'rewrite' => array('slug' => 'department')));
 }
 public function __construct()
 {
     $args = array('labels' => array('name' => __('Series'), 'singular_name' => __('Series')), 'public' => true, 'has_archive' => true, 'show_ui' => TRUE, 'rewrite' => array('slug' => 'series'), 'supports' => array('title', 'editor', 'author'), 'taxonomies' => array(), 'hierarchical' => TRUE);
     parent::__construct($args);
 }