'_dt_custom_settings', 'title' => esc_html__('Header & Footer','alagu'), 'post_type' => $post_types, 'priority' => 'high', 'context' => 'side', 'sections' => array( # Header Settings array( 'name' => 'header_section', 'title' => esc_html__('Header', 'alagu'), 'icon' => 'fa fa-angle-double-right', 'fields' => array( # Header Show / Hide array( 'id' => 'show-header', 'type' => 'switcher', 'title' => esc_html__('Show Header', 'alagu'), 'default' => true, ), # Header array( 'id' => 'header', 'type' => 'select', 'title' => esc_html__('Choose Header', 'alagu'), 'class' => 'chosen', 'options' => 'posts', 'query_args' => array( 'post_type' => 'dt_headers', 'orderby' => 'ID', 'order' => 'ASC', 'posts_per_page' => -1, ), 'default_option' => esc_attr__('Select Header', 'alagu'), 'attributes' => array( 'style' => 'width:50%' ), 'info' => esc_html__('Select custom header for this page.','alagu'), 'dependency' => array( 'show-header', '==', 'true' ) ), ) ), # Header Settings # Footer Settings array( 'name' => 'footer_settings', 'title' => esc_html__('Footer', 'alagu'), 'icon' => 'fa fa-angle-double-right', 'fields' => array( # Footer Show / Hide array( 'id' => 'show-footer', 'type' => 'switcher', 'title' => esc_html__('Show Footer', 'alagu'), 'default' => true, ), # Footer array( 'id' => 'footer', 'type' => 'select', 'title' => esc_html__('Choose Footer', 'alagu'), 'class' => 'chosen', 'options' => 'posts', 'query_args' => array( 'post_type' => 'dt_footers', 'orderby' => 'ID', 'order' => 'ASC', 'posts_per_page' => -1, ), 'default_option' => esc_attr__('Select Footer', 'alagu'), 'attributes' => array( 'style' => 'width:50%' ), 'info' => esc_html__('Select custom footer for this page.','alagu'), 'dependency' => array( 'show-footer', '==', 'true' ) ), ) ), # Footer Settings ) ); return $options; } ?>