Example #1
0
 public static function register_fields()
 {
     $main_component = new VACComponent(array('id' => self::$slug, 'location' => array('page_template', self::$template), 'position' => 'normal', 'post_type' => self::$slug, 'name' => self::$slug), array('left' => array('type' => 'group', 'fields' => array('text', 'featured_posts', 'accordion')), 'right' => array('type' => 'group', 'fields' => array('text', 'featured_posts'))));
     $main_component->register();
 }
Example #2
0
 public static function register_archive_fields()
 {
     $main_component = new VACComponent(array('id' => str_replace('-', '_', static::$post_type) . '_archive', 'location' => array('page_template', static::$archive_template), 'position' => 'normal', 'post_type' => static::$post_type, 'name' => static::$post_name), array('single' => array('type' => 'group', 'fields' => array('text', 'schools', 'talks_and_lectures'))));
     $main_component->register();
 }
Example #3
0
 public static function register_post_fields()
 {
     $main_component = new VACComponent(array('id' => str_replace('-', '_', static::$post_type), 'location' => array('post_type', static::$post_type), 'position' => 'normal'), array('left' => array('type' => 'group', 'fields' => array('slider', 'standfirst', 'text', 'accordion', 'featured_posts'))));
     $main_component->register();
 }
Example #4
0
 public static function register_fields()
 {
     $main_component = new VACComponent(array('id' => self::$slug, 'location' => array('page_template', self::$template), 'position' => 'normal', 'post_type' => self::$slug, 'name' => self::$slug), array('single' => array('type' => 'single', 'fields' => array('text'))));
     $main_component->register();
 }