array( 'setting' => array(), 'control' => array( 'type' => 'parent_heading', 'priority' => 1, 'label' => esc_html__( 'Page Header/Breadcrumb', 'bluestick' ), 'section' => 'bluestick_theme_breadcrumb', ), ), 'bluestick_page_header_disabled' => array( 'setting' => array( 'default' => true, 'sanitize_callback' => array( 'bluestick_Customizer_Sanitize', 'sanitize_checkbox' ), ), 'control' => array( 'type' => 'toggle', 'priority' => 5, 'label' => esc_html__( 'Page Header Enable/Disable', 'bluestick' ), // 'description' => esc_html__( 'Note: If you Disable Page Header then also disable Menu Overlap Setting. GO To Theme Options > Menu Settings and disable Menu Overlap.', 'bluestick' ), 'section' => 'bluestick_theme_breadcrumb', ), ), 'bluestick_page_header_effect' => array( 'setting' => array( 'default' => true, 'sanitize_callback' => array( 'bluestick_Customizer_Sanitize', 'sanitize_checkbox' ), ), 'control' => array( 'type' => 'toggle', 'priority' => 5, 'label' => esc_html__( 'Enable Water Effect on Breadcrumb?', 'bluestick' ), // 'description' => esc_html__( 'Note: If you Disable Page Header then also disable Menu Overlap Setting. GO To Theme Options > Menu Settings and disable Menu Overlap.', 'bluestick' ), 'section' => 'bluestick_theme_breadcrumb', 'active_callback' => 'bluestick_page_header_effect', ), ), 'bluestick_page_header_background_color' => array( 'setting' => array( 'default' => 'rgba(0,0,0,0.69)', 'sanitize_callback' => array( 'bluestick_Customizer_Sanitize', 'sanitize_alpha_color' ), ), 'control' => array( 'type' => 'color', 'priority' => 7, 'label' => esc_html__( 'Page Header/Breadcrumb Color', 'bluestick' ), 'section' => 'bluestick_theme_breadcrumb', 'choices' => array( 'alpha' => true, ), 'active_callback' => 'bluestick_page_header_background_color', ), ), 'bluestick_custom_logo_size' => array( 'setting' => array( 'default' => array( 'slider' => 140, 'suffix' => 'px', ), 'sanitize_callback' => array( 'bluestick_Customizer_Sanitize', 'sanitize_slider' ), ), 'control' => array( 'type' => 'slider', 'priority' => 55, 'label' => esc_html__( 'Logo Width', 'bluestick' ), 'section' => 'title_tagline', 'input_attrs' => array( 'min' => 0, 'max' => 600, 'step' => 3, ), ), ), ); } } new bluestick_Customize_Page_Header_Option(); endif; function bluestick_page_header_background_color( $control ) { return true === ( $control->manager->get_setting( 'bluestick_page_header_disabled' )->value() == true ); } function bluestick_page_header_effect( $control ) { return true === ( $control->manager->get_setting( 'bluestick_page_header_disabled' )->value() == true ); } function bluestick_breadcrumb_height( $control ) { return true === ( $control->manager->get_setting( 'bluestick_page_header_disabled' )->value() == true ); } function bluestick_breadcrumb_bg_img( $control ) { return true === ( $control->manager->get_setting( 'bluestick_page_header_disabled' )->value() == true ); } function bluestick_breadcrumb_back_attach( $control ) { return true === ( $control->manager->get_setting( 'bluestick_page_header_disabled' )->value() == true ); }