<?php
	// Header Section

	$wp_customize->add_section('advance_education_pro_header_section',array(
		'title'	=> __('Header','advance-education-pro'),
		'description'	=> __('Header Settings','advance-education-pro'),
		'priority'	=> null,
		'panel' => 'advance_education_pro_panel_id',
	));

	 $wp_customize->add_setting('advance_education_pro_sticky_header_alingment',array(
		'default' => __('center','advance-education-pro'),
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control(new advance_education_pro_Image_Radio_Control($wp_customize, 'advance_education_pro_sticky_header_alingment', array(
		'type' => 'select',
		'label' => __('Sticky Header Alignment','advance-education-pro'),
		'section' => 'advance_education_pro_header_section',
		'settings' => 'advance_education_pro_sticky_header_alingment',
		'choices' => array(
	    'left' => get_template_directory_uri().'/assets/images/copyright1.png',
	    'center' => get_template_directory_uri().'/assets/images/copyright2.png',
	    'right' => get_template_directory_uri().'/assets/images/copyright3.png'
	))));

	$wp_customize->add_setting( 'advance_education_pro_header_title_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_header_title_color', array(
		'label' => __('Header Main title Color', 'advance-education-pro'),
		'section' => 'advance_education_pro_header_section',
		'settings' => 'advance_education_pro_header_title_color',
	)));
	$wp_customize->add_setting('advance_education_pro_header_title_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control(
	    'advance_education_pro_header_title_font_family', array(
	    'section'  => 'advance_education_pro_header_section',
	    'label'    => __('Header Main title Font family','advance-education-pro'),
	    'type'     => 'select',
	    'choices'  => $font_array,
	));
	$wp_customize->add_setting( 'advance_education_pro_headerhomebg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_headerhomebg_color', array(
		'label' => __('Header Background Color', 'advance-education-pro'),
		'section' => 'advance_education_pro_header_section',
		'settings' => 'advance_education_pro_headerhomebg_color',
	)));
	// This is Header Menu Color picker setting
	$wp_customize->add_setting( 'advance_education_pro_headermenu_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_headermenu_color', array(
		'label' => __('Menu Item Color', 'advance-education-pro'),
		'section' => 'advance_education_pro_header_section',
		'settings' => 'advance_education_pro_headermenu_color',
	)));
	//This is Header Menu FontFamily picker setting
	$wp_customize->add_setting('advance_education_pro_headermenu_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'advance_education_pro_sanitize_choices'
	 ));
	$wp_customize->add_control(
	    'advance_education_pro_headermenu_font_family', array(
	    'section'  => 'advance_education_pro_header_section',
	    'label'    => __( 'Menu Item Fonts','advance-education-pro'),
	    'type'     => 'select',
	    'choices'  => $font_array,
	));
	$wp_customize->add_setting( 'advance_education_pro_header_menuhovercolor', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_header_menuhovercolor', array(
		'label' => __('Menu Item Hover Color', 'advance-education-pro'),
		'section' => 'advance_education_pro_header_section',
		'settings' => 'advance_education_pro_header_menuhovercolor',
	)));
	
	// This is Nav Dropdown Background Color picker setting
	$wp_customize->add_setting( 'advance_education_pro_dropdownbg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_dropdownbg_color', array(
		'label' => __('Menu DropDown Background Color', 'advance-education-pro'),
		'section' => 'advance_education_pro_header_section',
		'settings' => 'advance_education_pro_dropdownbg_color',
	)));

	$wp_customize->add_setting( 'advance_education_pro_dropdownbg_itemcolor', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_dropdownbg_itemcolor', array(
		'label' => __('Menu DropDown Item Color', 'advance-education-pro'),
		'section' => 'advance_education_pro_header_section',
		'settings' => 'advance_education_pro_dropdownbg_itemcolor',
	)));

	$wp_customize->add_setting( 'advance_education_pro_dropdownbg_item_hovercolor', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_dropdownbg_item_hovercolor', array(
		'label' => __('Menu DropDown Item Hover Color', 'advance-education-pro'),
		'section' => 'advance_education_pro_header_section',
		'settings' => 'advance_education_pro_dropdownbg_item_hovercolor',
	)));
	$wp_customize->add_setting('advance_education_pro_dropdownbg_item_font_size',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field'
	)
	);
	$wp_customize->add_control('advance_education_pro_dropdownbg_item_font_size',array(
		'label' => __('Menu DropDown Item Font Size','advance-education-pro'),
		'section' => 'advance_education_pro_header_section',
		'setting' => 'advance_education_pro_dropdownbg_item_font_size',
		'type'    => 'number'
		)
	);

	$wp_customize->add_setting('advance_education_pro_dropdown_letter_spacing',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field'
	)
	);
	$wp_customize->add_control('advance_education_pro_dropdown_letter_spacing',array(
		'label' => __('Menu DropDown Item Letter Spacing','advance-education-pro'),
		'section' => 'advance_education_pro_header_section',
		'setting' => 'advance_education_pro_dropdown_letter_spacing',
		'type'    => 'number'
		)
	);
	//Font weight
	$wp_customize->add_setting('advance_education_pro_dropdown_font_weight',array(
      'default' => '',
      'sanitize_callback' => 'advance_education_pro_sanitize_choices'
	));

	$wp_customize->add_control( 'advance_education_pro_dropdown_font_weight', array(
	'label'       => esc_html__( 'Menu DropDown Item Font Weight','advance-education-pro' ),
	'section'     => 'advance_education_pro_header_section',
	'type'        => 'select',
	'settings'    => 'advance_education_pro_dropdown_font_weight',
	'choices' => array(
      '100' =>  esc_attr('100','advance-education-pro'),
      '200' =>  esc_attr('200','advance-education-pro'),
      '300' =>  esc_attr('300','advance-education-pro'),
      '400' =>  esc_attr('400','advance-education-pro'),
      '500' =>  esc_attr('500','advance-education-pro'),
      '600' =>  esc_attr('600','advance-education-pro'),
      '700' =>  esc_attr('700','advance-education-pro'),
      '800' =>  esc_attr('800','advance-education-pro'),
      '900' =>  esc_attr('900','advance-education-pro'),
      'bold' =>  esc_attr('bold','advance-education-pro'),
      'bolder' =>  esc_attr('bolder','advance-education-pro')
	),
	));
	$wp_customize->add_setting('advance_education_pro_dropdown_text_transform',array(
      'default' => '',
      'sanitize_callback' => 'advance_education_pro_sanitize_choices'
	));

	$wp_customize->add_control( 'advance_education_pro_dropdown_text_transform', array(
	'label'       => esc_html__( 'Menus Text Transform','advance-education-pro' ),
	'section'     => 'advance_education_pro_header_section',
	'type'        => 'select',
	'settings'    => 'advance_education_pro_dropdown_text_transform',
	'choices' => array(
      'uppercase' =>  esc_attr('uppercase','advance-education-pro'),
      'lowercase' =>  esc_attr('lowercase','advance-education-pro'),
      'capitalize' =>  esc_attr('capitalize','advance-education-pro'),
      'unset' =>  esc_attr('unset','advance-education-pro')
	),
	));
	/* --------- menudropdown Opacity  ----------- */

	$wp_customize->add_setting('advance_education_pro_dropdown_bg_opacity_color',array(
      'default'              => '1',
      'sanitize_callback' => 'advance_education_pro_sanitize_choices'
	));

	$wp_customize->add_control( 'advance_education_pro_dropdown_bg_opacity_color', array(
		'label'       => esc_html__( 'Menu Dropdown Opacity','advance-education-pro' ),
		'section'     => 'advance_education_pro_header_section',
		'type'        => 'select',
		'settings'    => 'advance_education_pro_dropdown_bg_opacity_color',
		'choices' => array(
	      '0' =>  esc_attr('0','advance-education-pro'),
	      '0.1' =>  esc_attr('0.1','advance-education-pro'),
	      '0.2' =>  esc_attr('0.2','advance-education-pro'),
	      '0.3' =>  esc_attr('0.3','advance-education-pro'),
	      '0.4' =>  esc_attr('0.4','advance-education-pro'),
	      '0.5' =>  esc_attr('0.5','advance-education-pro'),
	      '0.6' =>  esc_attr('0.6','advance-education-pro'),
	      '0.7' =>  esc_attr('0.7','advance-education-pro'),
	      '0.8' =>  esc_attr('0.8','advance-education-pro'),
	      '0.9' =>  esc_attr('0.9','advance-education-pro'),
	      '1' =>  esc_attr('1','advance-education-pro')
		),
	));
	$wp_customize->add_setting('advance_education_pro_dropdown_box_shadow',array(
        'default'   => '',
        'sanitize_callback' => 'sanitize_text_field',
    ));
    $wp_customize->add_control('advance_education_pro_dropdown_box_shadow',array(
        'label' => __('Menu Dropdown Shadow in px','advance-education-pro'),
        'section'   => 'advance_education_pro_header_section',
        'type'      => 'text'
    ));
	
	//In Responsive
	$wp_customize->add_setting( 'advance_education_pro_dropdownbg_responsivecolor', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_dropdownbg_responsivecolor', array(
		'label' => __('Responsive Menu Background Color', 'advance-education-pro'),
		'section' => 'advance_education_pro_header_section',
		'settings' => 'advance_education_pro_dropdownbg_responsivecolor',
	)));
	$wp_customize->add_setting( 'advance_education_pro_headermenu_responsive_item_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_headermenu_responsive_item_color', array(
		'label' => __('Responsive Menu item Color', 'advance-education-pro'),
		'section' => 'advance_education_pro_header_section',
		'settings' => 'advance_education_pro_headermenu_responsive_item_color',
	)));
	$wp_customize->add_setting('advance_education_pro_site_menu_width',array(
        'default'   => '250',
        'sanitize_callback' => 'sanitize_text_field',
    ));
    $wp_customize->add_control('advance_education_pro_site_menu_width',array(
        'label' => __('Responsive Menu Width','advance-education-pro'),
        'section'   => 'advance_education_pro_header_section',
        'type'      => 'number'
    ));

    // ------------- Search Padding Settings ----------

    $wp_customize->add_setting( 'advance_education_pro_Search_setting',array(
        'default' => '',
        'transport' => 'postMessage',
        'sanitize_callback' => 'advance_education_pro_text_sanitization'
    ));
    $wp_customize->add_control( new Themeshopy_Seperator_custom_Control( $wp_customize, 'advance_education_pro_Search_setting',
        array(
        'label' => __('Search Settings','advance-education-pro'),
        'section' => 'advance_education_pro_header_section'
    )));

    $wp_customize->add_setting( 'advance_education_pro_header_search_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_header_search_color', array(
		'label' => __('Search Icon Color', 'advance-education-pro'),
		'section' => 'advance_education_pro_header_section',
		'settings' => 'advance_education_pro_header_search_color',
	)));

	$wp_customize->add_setting('advance_education_pro_header_search_font_size',array(
	  'default' => '',
	  'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('advance_education_pro_header_search_font_size',array(
	  'label' => __('Font Size','advance-education-pro'),
	  'description' => __('Add font size in px','vadvance-education-pro'),
	  'section' => 'advance_education_pro_header_section',
	  'setting' => 'advance_education_pro_header_search_font_size',
	  'type'    => 'number'
	));

	$wp_customize->add_setting( 'advance_education_pro_header_search_bgcolor', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_header_search_bgcolor', array(
		'label' => __('Search Icon Background Color', 'advance-education-pro'),
		'section' => 'advance_education_pro_header_section',
		'settings' => 'advance_education_pro_header_search_bgcolor',
	)));

    $wp_customize->add_setting('advance_education_pro_Search_top_bottom_padding',array(
        'default'   => '',
        'sanitize_callback' => 'sanitize_textarea_field',
    ));
    $wp_customize->add_control('advance_education_pro_Search_top_bottom_padding',array(
        'label' => __('Search Padding Top and Bottom','advance-education-pro'),
        'section'   => 'advance_education_pro_header_section',
        'type'      => 'number'
    ));

    $wp_customize->add_setting('advance_education_pro_Search_left_right_padding',array(
        'default'   => '',
        'sanitize_callback' => 'sanitize_textarea_field',
    ));
    $wp_customize->add_control('advance_education_pro_Search_left_right_padding',array(
        'label' => __('Search Padding Left and Right','advance-education-pro'),
        'section'   => 'advance_education_pro_header_section',
        'type'      => 'number'
    ));

    $wp_customize->add_setting('advance_education_pro_Search_setting_radius',array(
        'default'   => '',
        'sanitize_callback' => 'sanitize_textarea_field',
    ));
    $wp_customize->add_control('advance_education_pro_Search_setting_radius',array(
        'label' => __('Search Border Radius','advance-education-pro'),
        'section'   => 'advance_education_pro_header_section',
        'type'      => 'number'
    ));
     $wp_customize->add_setting('advance_education_pro_header_search_placeholder_text',array(
        'default'   => '',
        'sanitize_callback' => 'sanitize_textarea_field',
    ));
    $wp_customize->add_control('advance_education_pro_header_search_placeholder_text',array(
        'label' => __('Search placeholder Text','advance-education-pro'),
        'section'   => 'advance_education_pro_header_section',
        'type'      => 'text'
    ));
?>