add_panel( 'astrad_header_settings_panel', array( 'priority' => 10, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => esc_html__( 'Header Settings', 'astrad' ), ) ); /*-----------------------------------------------------------------------------------------------------------------------*/ /** * Header Option Section */ $wp_customize->add_section( 'astrad_header_option_section', array( 'title' => esc_html__( 'Header Options', 'astrad' ), 'priority' => 10, 'panel' => 'astrad_header_settings_panel', ) ); /** * Switch option for Home Icon * * @since 1.0.0 */ $wp_customize->add_setting( 'astrad_menu_sticky_option', array( 'default' => 'show', 'sanitize_callback' => 'astrad_sanitize_switch_option', ) ); $wp_customize->add_control( new astrad_Customize_Switch_Control( $wp_customize, 'astrad_menu_sticky_option', array( 'type' => 'astrad-switch', 'label' => esc_html__( 'Sticky Menu', 'astrad' ), 'description' => esc_html__( 'Enable/Disable option for sticky menu.', 'astrad' ), 'section' => 'astrad_header_option_section', 'choices' => array( 'show' => esc_html__( 'Enable', 'astrad' ), 'hide' => esc_html__( 'Disable', 'astrad' ), ), 'priority' => 5, ) ) ); /** * Switch option Header Background * * @since 1.0.0 */ $wp_customize->add_setting( 'astrad_header_bg_option', array( 'default' => 'show', 'sanitize_callback' => 'astrad_sanitize_switch_option', ) ); $wp_customize->add_control( new astrad_Customize_Switch_Control( $wp_customize, 'astrad_header_bg_option', array( 'type' => 'astrad-switch', 'label' => esc_html__( 'Header Transparency', 'astrad' ), 'description' => esc_html__( 'Enable/Disable option for header transparency.', 'astrad' ), 'section' => 'astrad_header_option_section', 'choices' => array( 'show' => esc_html__( 'Enable', 'astrad' ), 'hide' => esc_html__( 'Disable', 'astrad' ), ), 'priority' => 5, ) ) ); /*-----------------------------------------------------------------------------------------------------------------------*/ /** * Header Option Section */ $wp_customize->add_section( 'astrad_beadcrumb_option_section', array( 'title' => esc_html__( 'Breadcrumb Options', 'astrad' ), 'priority' => 10, 'panel' => 'astrad_header_settings_panel', ) ); /** * Switch option for Search Icon * * @since 1.0.0 */ $wp_customize->add_setting( 'astrad_bead_div_option', array( 'default' => 'show', 'sanitize_callback' => 'astrad_sanitize_switch_option', ) ); $wp_customize->add_control( new astrad_Customize_Switch_Control( $wp_customize, 'astrad_bead_div_option', array( 'type' => 'astrad-switch', 'label' => esc_html__( 'Breadcrumb Section', 'astrad' ), 'description' => esc_html__( 'Show/Hide breadcrumb section from top.', 'astrad'), 'section' => 'astrad_beadcrumb_option_section', 'choices' => array( 'show' => esc_html__( 'Show', 'astrad' ), 'hide' => esc_html__( 'Hide', 'astrad' ), ), 'priority' => 10, ) ) ); }