'_page_information', 'title' => esc_html__('Page Options', 'calibar'), 'post_type' => array( 'page', 'post' ), 'context' => 'normal', 'priority' => 'default', 'sections' => array( array( 'name' => 'page_layout_info', 'title' => esc_html__('General Options', 'calibar'), 'icon' => 'fa fa-th-large', 'fields' => array( array( 'id' => 'page_sidebar', 'type' => 'switcher', 'title' => esc_html__('Enable Sidebar', 'calibar'), 'default' => true ), array( 'id' => 'siderbar_position', 'type' => 'select', 'title' => esc_html__('Sidebar Position', 'calibar'), 'options' => array( 'left' => esc_html__( 'Left', 'calibar'), 'right' => esc_html__( 'Right', 'calibar'), ), 'default' => 'left', 'dependency' => array( 'page_sidebar', '==', 'true' ) ), ), ), array( 'name' => 'page_header_info', 'title' => esc_html__('Breadcrumb', 'calibar'), 'icon' => 'fa fa-arrow-circle-o-up', 'fields' => array( array( 'id' => '_show_breadcrumb', 'type' => 'switcher', 'title' => esc_html__('Show Breadcrumb', 'calibar'), 'default' => true ), array( 'id' => '_page_text_position', 'type' => 'radio', 'title' => esc_html__( 'Text Alignment', 'calibar'), 'options' => array( 'text-left' => esc_html__( 'Left', 'calibar'), 'text-center' => esc_html__( 'Center', 'calibar'), 'text-right' => esc_html__( 'Right', 'calibar'), ), 'default' => 'text-left' ), array( 'id' => '_page_title', 'type' => 'text', 'title' => esc_html__('Title', 'calibar'), 'dependency' => array( '_show_breadcrumb', '==', 'true' ) ), array( 'id' => '_page_subtitle', 'type' => 'text', 'title' => esc_html__('Subtitle', 'calibar'), 'dependency' => array( '_show_breadcrumb', '==', 'true' ) ), array( 'id' => '_page_backgroud', 'type' => 'upload', 'title' => esc_html__('Background Image', 'calibar'), 'dependency' => array( '_show_breadcrumb', '==', 'true' ) ), array( 'title' => esc_html__( 'Page Title Color', 'calibar' ), 'id' => 'page_title_color', 'type' => 'color_picker', 'default' => '#ffffff', 'dependency' => array( '_show_breadcrumb', '==', 'true' ) ), array( 'title' => esc_html__( 'Page Subtitle Color', 'calibar' ), 'id' => 'page_subtitle_color', 'type' => 'color_picker', 'default' => '#ffffff', 'dependency' => array( '_show_breadcrumb', '==', 'true' ) ), ), ), ), ); // ----------------------------------------- // Folio Metabox Options - // ----------------------------------------- $options[] = array( 'id' => '_folio_information', 'title' => esc_html__('Portfolio Options', 'calibar'), 'post_type' => array( 'folio' ), 'context' => 'normal', 'priority' => 'default', 'sections' => array( array( 'name' => 'page_layout_info', 'title' => esc_html__('General Options', 'calibar'), 'icon' => 'fa fa-th-large', 'fields' => array( array( 'id' => 'page_sidebar', 'type' => 'switcher', 'title' => esc_html__('Enable Sidebar', 'calibar'), 'default' => true ), array( 'id' => 'siderbar_position', 'type' => 'select', 'title' => esc_html__('Sidebar Position', 'calibar'), 'options' => array( 'left' => esc_html__( 'Left', 'calibar'), 'right' => esc_html__( 'Right', 'calibar'), ), 'default' => 'left', 'dependency' => array( 'page_sidebar', '==', 'true' ) ), ), ), array( 'name' => 'page_header_info', 'title' => esc_html__('Breadcrumb', 'calibar'), 'icon' => 'fa fa-arrow-circle-o-up', 'fields' => array( array( 'id' => '_show_breadcrumb', 'type' => 'switcher', 'title' => esc_html__('Show Breadcrumb', 'calibar'), 'default' => true ), array( 'id' => '_page_text_position', 'type' => 'radio', 'title' => esc_html__( 'Text Alignment', 'calibar'), 'options' => array( 'text-left' => esc_html__( 'Left', 'calibar'), 'text-center' => esc_html__( 'Center', 'calibar'), 'text-right' => esc_html__( 'Right', 'calibar'), ), 'default' => 'text-left' ), array( 'id' => '_page_title', 'type' => 'text', 'title' => esc_html__('Title', 'calibar'), 'dependency' => array( '_show_breadcrumb', '==', 'true' ) ), array( 'id' => '_page_subtitle', 'type' => 'text', 'title' => esc_html__('Subtitle', 'calibar'), 'dependency' => array( '_show_breadcrumb', '==', 'true' ) ), array( 'id' => '_page_backgroud', 'type' => 'upload', 'title' => esc_html__('Background Image', 'calibar'), 'dependency' => array( '_show_breadcrumb', '==', 'true' ) ), array( 'title' => esc_html__( 'Page Title Color', 'calibar' ), 'id' => 'page_title_color', 'type' => 'color_picker', 'default' => '#ffffff', 'dependency' => array( '_show_breadcrumb', '==', 'true' ) ), array( 'title' => esc_html__( 'Page Subtitle Color', 'calibar' ), 'id' => 'page_subtitle_color', 'type' => 'color_picker', 'default' => '#ffffff', 'dependency' => array( '_show_breadcrumb', '==', 'true' ) ), ), ), array( 'name' => 'folio_info', 'title' => esc_html__('Portfolio Information', 'calibar'), 'icon' => 'fa fa-address-book-o', 'fields' => array( array( 'id' => '_folio_client', 'type' => 'text', 'title' => esc_html__('Client', 'calibar'), ), array( 'id' => '_folio_currency', 'type' => 'text', 'title' => esc_html__('Currency', 'calibar'), 'value' => '$', ), array( 'id' => '_folio_budget', 'type' => 'text', 'title' => esc_html__('Budget', 'calibar'), ), ), ), ), ); return $options; } } add_filter( 'cs_metabox_options', 'calibar_metabox_options' );