'switch', 'settings' => 'show_page_banner', 'label' => esc_html__( 'Show Page Banner', 'borax' ), 'section' => 'page_header', 'default' => true, 'choices' => array( 'on' => esc_attr__( 'Enable', 'borax' ), 'off' => esc_attr__( 'Disable', 'borax' ), ), ); $fields[]= array( 'type' => 'switch', 'settings' => 'show_breadcrumb', 'label' => esc_html__( 'Show Breadcrumb', 'borax' ), 'section' => 'page_header', 'default' => true, 'choices' => array( 'on' => esc_attr__( 'Enable', 'borax' ), 'off' => esc_attr__( 'Disable', 'borax' ), ), ); $fields[] = array( 'type' => 'image', 'settings' => 'page_banner_img', 'label' => esc_html__( 'Page Header Banner Image', 'borax' ), 'section' => 'page_header', 'default' => BORAX_IMAGES . '/page-feature.jpg', 'required' => array( array( 'setting' => 'show_page_banner', 'operator' => '==', 'value' => true, ) ), ); $fields[]= array( 'type' => 'dimensions', 'settings' => 'page_header_padding', 'label' => esc_html__( 'Padding Control', 'borax' ), 'section' => 'page_header', 'transport' => 'auto', 'default' => [ 'padding-top' => '100px', 'padding-bottom' => '100px', ], 'output' => array( array( 'element' => '.page-feature .inner-page-features', 'property' => 'padding-top', ), ), 'output' => array( array( 'choice' => 'padding-top', 'element' => '.page-feature .inner-page-features', 'property' => 'padding-top', ), array( 'choice' => 'padding-bottom', 'element' => '.page-feature .inner-page-features', 'property' => 'padding-bottom', ), ), ); $fields[]= array( 'type' => 'color', 'settings' => 'banner_overlay', 'label' => esc_html__( 'Background Overlay Color', 'borax' ), 'section' => 'page_header', 'transport' => 'auto', 'output' => array( array( 'element' => '.page-feature .inner-page-features, .page-feature .inner-search-features', 'property' => 'background-color', ), ), 'required' => array( array( 'setting' => 'show_page_banner', 'operator' => '==', 'value' =>true, ) ), ); $fields[]= array( 'type' => 'color', 'settings' => 'page_title_color', 'label' => esc_html__( 'Title Color Control', 'borax' ), 'section' => 'page_header', 'transport' => 'auto', 'output' => array( array( 'element' => '.page-feature h2', 'property' => 'color', ), ), 'required' => array( array( 'setting' => 'show_page_banner', 'operator' => '==', 'value' => true, ) ), ); $fields[]= array( 'type' => 'color', 'settings' => 'page_breadcrumb_link_color', 'label' => esc_html__( 'Breadcrumb Link Color Control', 'borax' ), 'section' => 'page_header', 'transport' => 'auto', 'output' => array( array( 'element' => '.page-feature .breadcrumb a', 'property' => 'color', ), ), 'required' => array( array( 'setting' => 'show_page_banner', 'operator' => '==', 'value' => true, ) ), ); $fields[]= array( 'type' => 'color', 'settings' => 'page_breadcrumb_text_color', 'label' => esc_html__( 'Breadcrumb Color Control', 'borax' ), 'section' => 'page_header', 'transport' => 'auto', 'output' => array( array( 'element' => '.page-feature .breadcrumb li', 'property' => 'color', ), ), 'required' => array( array( 'setting' => 'show_page_banner', 'operator' => '==', 'value' => true, ) ), ); /* Search Page Banner options */ $fields[]= array( 'type' => 'switch', 'settings' => 'show_search_banner', 'label' => esc_html__( 'Show Search Banner', 'borax' ), 'section' => 'page_header', 'default' => true, 'choices' => array( 'on' => esc_attr__( 'Enable', 'borax' ), 'off' => esc_attr__( 'Disable', 'borax' ), ), ); $fields[]= array( 'type' => 'switch', 'settings' => 'show_search_breadcrumb', 'label' => esc_html__( 'Show Search page Breadcrumb', 'borax' ), 'section' => 'page_header', 'default' => true, 'choices' => array( 'on' => esc_attr__( 'Enable', 'borax' ), 'off' => esc_attr__( 'Disable', 'borax' ), ), ); $fields[] = array( 'type' => 'image', 'settings' => 'search_banner_img', 'label' => esc_html__( 'Search Banner Image', 'borax' ), 'section' => 'page_header', 'default' => BORAX_IMAGES . '/page-feature.jpg', 'required' => array( array( 'setting' => 'show_search_banner', 'operator' => '==', 'value' => true, ) ), ); $fields[]= array( 'type' => 'color', 'settings' => 'search_banner_overlay', 'label' => esc_html__( 'Overlay Color Control', 'borax' ), 'section' => 'page_header', 'transport' => 'auto', 'output' => array( array( 'element' => '.inner-search-features', 'property' => 'background-color', ), ), 'required' => array( array( 'setting' => 'show_search_banner', 'operator' => '==', 'value' =>true, ) ), ); $fields[]= array( 'type' => 'color', 'settings' => 'search_title_color', 'label' => esc_html__( 'Title Color Control', 'borax' ), 'section' => 'page_header', 'transport' => 'auto', 'output' => array( array( 'element' => '.search-page-banner h2', 'property' => 'color', ), ), 'required' => array( array( 'setting' => 'show_search_banner', 'operator' => '==', 'value' => true, ) ), ); $fields[]= array( 'type' => 'color', 'settings' => 'search_breadcrumb_color', 'label' => esc_html__( 'Search Page Breadcrumb Color Control', 'borax' ), 'section' => 'page_header', 'transport' => 'auto', 'output' => array( array( 'element' => '.search-page-banner .breadcrumb a, .search-page-banner .breadcrumb li span', 'property' => 'color', ), ), 'required' => array( array( 'setting' => 'show_search_banner', 'operator' => '==', 'value' => 1, ) ), );