esc_html__( 'Advanced Options', 'calibar' ), 'post_type' => array( 'page', 'post' ), 'data_type' => 'serialize', // The type of the database save options. `serialize` or `unserialize` ) ); // Create a section CSF::createSection( $page_prefix, array( 'title' => esc_html__( 'General Settings', 'calibar' ), 'icon' => 'fa fa-cogs', 'fields' => array( array( 'type' => 'heading', 'content' => esc_html__( 'General Settings (will not work for fullwidth template)', 'calibar' ), ), 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' ) ), ) ) ); // Create a section CSF::createSection( $page_prefix, array( 'title' => esc_html__( 'Breadcrumb Settings', 'calibar' ), 'icon' => 'fa fa-image', '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', 'default' => '#ffffff', 'dependency' => array( '_show_breadcrumb', '==', 'true' ) ), array( 'title' => esc_html__( 'Page Subtitle Color', 'calibar' ), 'id' => 'page_subtitle_color', 'type' => 'color', 'default' => '#ffffff', 'dependency' => array( '_show_breadcrumb', '==', 'true' ) ), ) ) ); // Set a unique slug-like ID for Folio $folio_prefix = '_folio_information'; // Create a metabox CSF::createMetabox( $folio_prefix, array( 'title' => esc_html__( 'Advanced Options', 'calibar' ), 'post_type' => array( 'folio' ), 'data_type' => 'serialize', // The type of the database save options. `serialize` or `unserialize` ) ); // Create a section CSF::createSection( $folio_prefix, array( 'title' => esc_html__( 'General Settings', 'calibar' ), 'icon' => 'fa fa-cogs', 'fields' => array( array( 'type' => 'heading', 'content' => esc_html__( 'General Settings', 'calibar' ), ), 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' ) ), ) ) ); // Create a section CSF::createSection( $folio_prefix, array( 'title' => esc_html__( 'Breadcrumb Settings', 'calibar' ), 'icon' => 'fa fa-image', 'fields' => array( array( 'type' => 'heading', 'content' => esc_html__( 'Breadcrumb Settings', 'calibar' ), ), 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', 'default' => '#ffffff', 'dependency' => array( '_show_breadcrumb', '==', 'true' ) ), array( 'title' => esc_html__( 'Page Subtitle Color', 'calibar' ), 'id' => 'page_subtitle_color', 'type' => 'color', 'default' => '#ffffff', 'dependency' => array( '_show_breadcrumb', '==', 'true' ) ), ) ) ); // Create a section CSF::createSection( $folio_prefix, array( 'title' => esc_html__( 'Portfolio Settings', 'calibar' ), 'icon' => 'fa fa-address-book-o', 'fields' => array( array( 'type' => 'heading', 'content' => esc_html__( 'Portfolio Settings', 'calibar' ), ), 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'), ), ) ) ); }