add_section( 'shapon_section_header', array( 'title' => __( 'Header Content', 'shapon-lite' ), 'priority' => 20, 'panel' => 'shapon_options_panel' ) ); // Add Header Content Header $wp_customize->add_setting( 'shapon_theme_options[header_content]', array( 'default' => '', 'type' => 'option', 'transport' => 'refresh', 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new shapon_Customize_Header_Control( $wp_customize, 'shapon_control_header_content', array( 'label' => __( 'Header Content', 'shapon-lite' ), 'section' => 'shapon_section_header', 'settings' => 'shapon_theme_options[header_content]', 'priority' => 2 ) ) ); $wp_customize->add_setting( 'shapon_theme_options[header_content_description]', array( 'default' => '', 'type' => 'option', 'transport' => 'refresh', 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new shapon_Customize_Description_Control( $wp_customize, 'shapon_control_header_content_description', array( 'label' => __( 'The Header Content configured below will be displayed on the right hand side of the header area.', 'shapon-lite' ), 'section' => 'shapon_section_header', 'settings' => 'shapon_theme_options[header_content_description]', 'priority' => 3 ) ) ); // Add Settings and Controls for Header $wp_customize->add_setting( 'shapon_theme_options[header_search]', array( 'default' => false, 'type' => 'option', 'transport' => 'refresh', 'sanitize_callback' => 'shapon_sanitize_checkbox' ) ); $wp_customize->add_control( 'shapon_control_header_search', array( 'label' => __( 'Display search field on header area', 'shapon-lite' ), 'section' => 'shapon_section_header', 'settings' => 'shapon_theme_options[header_search]', 'type' => 'checkbox', 'priority' => 4 ) ); $wp_customize->add_setting( 'shapon_theme_options[header_icons]', array( 'default' => false, 'type' => 'option', 'transport' => 'refresh', 'sanitize_callback' => 'shapon_sanitize_checkbox' ) ); $wp_customize->add_control( 'shapon_control_header_icons', array( 'label' => __( 'Display Social Icons on header area', 'shapon-lite' ), 'section' => 'shapon_section_header', 'settings' => 'shapon_theme_options[header_icons]', 'type' => 'checkbox', 'priority' => 5 ) ); } ?>