add_section( 'aster_photography_header_options', array( 'panel' => 'aster_photography_front_page_options', 'title' => esc_html__( 'Header Options', 'aster-photography' ), 'priority' => 10, ) ); // Add setting for sticky header $wp_customize->add_setting( 'aster_photography_enable_sticky_header', array( 'sanitize_callback' => 'aster_photography_sanitize_switch', 'default' => false, ) ); // Add control for sticky header setting $wp_customize->add_control( new Aster_Photography_Toggle_Switch_Custom_Control( $wp_customize, 'aster_photography_enable_sticky_header', array( 'label' => esc_html__( 'Enable Sticky Header', 'aster-photography' ), 'section' => 'aster_photography_header_options', ) ) ); // Banner Section - Enable Section. $wp_customize->add_setting( 'aster_photography_enable_header_search_section', array( 'default' => true, 'sanitize_callback' => 'aster_photography_sanitize_switch', ) ); $wp_customize->add_control( new Aster_Photography_Toggle_Switch_Custom_Control( $wp_customize, 'aster_photography_enable_header_search_section', array( 'label' => esc_html__( 'Enable Search Section', 'aster-photography' ), 'section' => 'aster_photography_header_options', 'settings' => 'aster_photography_enable_header_search_section', ) ) ); // Add Separator Custom Control $wp_customize->add_setting( 'aster_photography_menu_separator', array( 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new Aster_Photography_Separator_Custom_Control( $wp_customize, 'aster_photography_menu_separator', array( 'label' => __( 'Menu Settings', 'aster-photography' ), 'section' => 'aster_photography_header_options', 'settings' => 'aster_photography_menu_separator', ))); $wp_customize->add_setting( 'aster_photography_menu_font_size', array( 'default' => 15, 'sanitize_callback' => 'absint', ) ); // Add control for site title size $wp_customize->add_control( 'aster_photography_menu_font_size', array( 'type' => 'number', 'section' => 'aster_photography_header_options', 'label' => __( 'Menu Font Size ', 'aster-photography' ), 'input_attrs' => array( 'min' => 10, 'max' => 100, 'step' => 1, ), )); // Add setting for menu font weight $wp_customize->add_setting('aster_photography_menu_font_weight', array( 'default' => '700', 'sanitize_callback' => 'sanitize_text_field', )); // Add control for menu font weight $wp_customize->add_control('aster_photography_menu_font_weight', array( 'type' => 'select', 'section' => 'aster_photography_header_options', 'label' => __('Menu Font Weight', 'aster-photography'), 'choices' => array( '100' => __('100','aster-photography'), '200' => __('200','aster-photography'), '300' => __('300','aster-photography'), '400' => __('400','aster-photography'), '500' => __('500','aster-photography'), '600' => __('600','aster-photography'), '700' => __('700','aster-photography'), '800' => __('800','aster-photography'), '900' => __('900','aster-photography'), ), )); $wp_customize->add_setting( 'aster_photography_menu_text_transform', array( 'default' => 'uppercase', // Default value for text transform 'sanitize_callback' => 'sanitize_text_field', ) ); // Add control for menu text transform $wp_customize->add_control( 'aster_photography_menu_text_transform', array( 'type' => 'select', 'section' => 'aster_photography_header_options', // Adjust the section as needed 'label' => __( 'Menu Text Transform', 'aster-photography' ), 'choices' => array( 'none' => __( 'None', 'aster-photography' ), 'capitalize' => __( 'Capitalize', 'aster-photography' ), 'uppercase' => __( 'Uppercase', 'aster-photography' ), 'lowercase' => __( 'Lowercase', 'aster-photography' ), ), ) ); // Menu Text Color $wp_customize->add_setting( 'aster_photography_menu_text_color', array( 'default' => '', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'aster_photography_menu_text_color', array( 'label' => __('Menu Color', 'aster-photography'), 'section' => 'aster_photography_header_options', ) ) ); // Sub Menu Text Color $wp_customize->add_setting( 'aster_photography_sub_menu_text_color', array( 'default' => '', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'aster_photography_sub_menu_text_color', array( 'label' => __('Sub Menu Color', 'aster-photography'), 'section' => 'aster_photography_header_options', ) ) );