add_meta_box('template_page_options', __('Setting', 'beevent'), 'page'); } public function add_meta_box($id, $label, $post_type, $context = 'advanced', $priority = 'default') { add_meta_box('_cms_' . $id, $label, array($this, $id), $post_type, $context, $priority); } /* --------------------- PAGE ---------------------- */ function template_page_options() { ?>
'header', 'label' => __('Custom','beevent'), 'type' => 'switch', 'options' => array('on'=>'1','off'=>''), 'follow' => array('1'=>array('#page_header_enable')) )); ?>
'header_layout', 'label' => __('Layout','beevent'), 'type' => 'imegesselect', 'options' => array( 'menu_style_1' => get_template_directory_uri().'/functions/meta/images/header/h-default.png', 'menu_style_2' => get_template_directory_uri().'/functions/meta/images/header/fullscreen-menu.jpg', ), )); ?>
'page_title', 'label' => __('Custom','beevent'), 'type' => 'switch', 'options' => array('on'=>'1','off'=>'1'), 'follow' => array('1'=>array('#page_title_enable')) )); ?>
'page_title_text', 'label' => __('Title','beevent'), 'type' => 'text', )); cms_options(array( 'id' => 'page_title_stye', 'label' => __('Page Title Style','beevent'), 'type' => 'imegesselect', 'options' => array( 'none' => get_template_directory_uri().'/functions/meta/images/pagetitle/no-pagetitle.png', 'default' => get_template_directory_uri().'/functions/meta/images/pagetitle/small-grey.png', ) )); ?>