<?php
	$wp_customize->add_section('vw_book_store_pro_topbar_header',array(
		'title'	=> __('Top Bar','vw-book-store-pro'),
		'description'	=> __('See section settings below and do check documentation too.','vw-book-store-pro'),
		'priority'	=> null,
		'panel' => 'vw_book_store_pro_panel_id',
	));

	$wp_customize->add_setting('vw_book_store_pro_topbar_enable',
    array(
        'default' => 'Enable',
        'sanitize_callback' => 'vw_book_store_pro_sanitize_choices'
    ));
    $wp_customize->add_control('vw_book_store_pro_topbar_enable',
    array(
        'type' => 'radio',
        'label' => 'Do you want this section',
        'section' => 'vw_book_store_pro_topbar_header',
        'choices' => array(
            'Enable' => __('Enable', 'vw-book-store-pro'),
            'Disable' => __('Disable', 'vw-book-store-pro')
        ),
    ));

	

    $wp_customize->add_setting('vw_book_store_pro_topbar_searchbox',array(
        'default' => 'true',
        'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('vw_book_store_pro_topbar_searchbox',array(
        'type' => 'checkbox',
        'label' => __('Show / Hide search box','vw-book-store-pro'),
        'section' => 'vw_book_store_pro_topbar_header',
    ));
	// Contact details
	$wp_customize->add_setting('vw_book_store_pro_header_link1',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('vw_book_store_pro_header_link1',array(
		'label'	=> __('Add My Account Text Here','vw-book-store-pro'),
		'section'	=> 'vw_book_store_pro_topbar_header',
		'setting'	=> 'vw_book_store_pro_header_link1',
		'type'	=> 'text'
	));
	$wp_customize->add_setting('vw_book_store_pro_header_link2',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('vw_book_store_pro_header_link2',array(
		'label'	=> __('Add Link 2 Text here','vw-book-store-pro'),
		'section'	=> 'vw_book_store_pro_topbar_header',
		'setting'	=> 'vw_book_store_pro_header_link2',
		'type'	=> 'text'
	));
	$wp_customize->add_setting('vw_book_store_pro_header_link3',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('vw_book_store_pro_header_link3',array(
		'label'	=> __('Add Link 3 Text here','vw-book-store-pro'),
		'section'	=> 'vw_book_store_pro_topbar_header',
		'setting'	=> 'vw_book_store_pro_header_link3',
		'type'	=> 'text'
	));
	$wp_customize->add_setting('vw_book_store_pro_header_link3_url',array(
		'default'	=> __('#','vw-book-store-pro'),
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control('vw_book_store_pro_header_link3_url',array(
		'label' => __('Link URL','vw-book-store-pro'),
		'section' => 'vw_book_store_pro_topbar_header',
		'setting'	=> 'vw_book_store_pro_header_link3_url',
		'type'	=> 'text'
	));
	// Emails
	$wp_customize->add_setting('vw_book_store_pro_header_email_address',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('vw_book_store_pro_header_email_address',array(
		'label'	=> __('Add Email address Here','vw-book-store-pro'),
		'section'	=> 'vw_book_store_pro_topbar_header',
		'setting'	=> 'vw_book_store_pro_header_email_address',
		'type'	=> 'text'
	));	
	$wp_customize->add_setting( 'vw_book_store_pro_header_contact_details_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'vw_book_store_pro_header_contact_details_color', array(
		'label' => __('Top Bar Contact Details Color', 'vw-book-store-pro'),
		'section' => 'vw_book_store_pro_topbar_header',
		'settings' => 'vw_book_store_pro_header_contact_details_color',
	)));

	$wp_customize->add_setting('vw_book_store_pro_header_contact_details_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control(
	    'vw_book_store_pro_header_contact_details_font_family', array(
	    'section'  => 'vw_book_store_pro_topbar_header',
	    'label'    => __('Top Bar contact details Font family','vw-book-store-pro'),
	    'type'     => 'select',
	    'choices'  => $font_array,
	));
	$wp_customize->add_setting( 'vw_book_store_pro_header_contact_detailsicon_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'vw_book_store_pro_header_contact_detailsicon_color', array(
		'label' => __('Top Bar contact icon Color', 'vw-book-store-pro'),
		'section' => 'vw_book_store_pro_topbar_header',
		'settings' => 'vw_book_store_pro_header_contact_detailsicon_color',
	)));

	// Header Section

	$wp_customize->add_section('vw_book_store_pro_header_section',array(
		'title'	=> __('Header','vw-book-store-pro'),
		'description'	=> __('Header Settings','vw-book-store-pro'),
		'priority'	=> null,
		'panel' => 'vw_book_store_pro_panel_id',
	));
	$wp_customize->add_setting('vw_book_store_pro_header_btnurl',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	
	$wp_customize->add_control('vw_book_store_pro_header_btnurl',array(
		'label'	=> __('Add Button URL','vw-book-store-pro'),
		'section'	=> 'vw_book_store_pro_header_section',
		'setting'	=> 'vw_book_store_pro_header_btnurl',
		'type'	=> 'url'
	));

	$wp_customize->add_setting( 'vw_book_store_pro_header_title_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'vw_book_store_pro_header_title_color', array(
		'label' => __('Header Main title Color', 'vw-book-store-pro'),
		'section' => 'vw_book_store_pro_header_section',
		'settings' => 'vw_book_store_pro_header_title_color',
	)));
	$wp_customize->add_setting('vw_book_store_pro_header_title_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control(
	    'vw_book_store_pro_header_title_font_family', array(
	    'section'  => 'vw_book_store_pro_header_section',
	    'label'    => __('Header Main title Font family','vw-book-store-pro'),
	    'type'     => 'select',
	    'choices'  => $font_array,
	));
	$wp_customize->add_setting( 'vw_book_store_pro_headerhomebg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'vw_book_store_pro_headerhomebg_color', array(
		'label' => __('Header Background Color', 'vw-book-store-pro'),
		'section' => 'vw_book_store_pro_header_section',
		'settings' => 'vw_book_store_pro_headerhomebg_color',
	)));
	// This is Header Menu Color picker setting
	$wp_customize->add_setting( 'vw_book_store_pro_headermenu_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'vw_book_store_pro_headermenu_color', array(
		'label' => __('Menu Item Color', 'vw-book-store-pro'),
		'section' => 'vw_book_store_pro_header_section',
		'settings' => 'vw_book_store_pro_headermenu_color',
	)));
	//This is Header Menu FontFamily picker setting
	$wp_customize->add_setting('vw_book_store_pro_headermenu_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'vw_book_store_pro_sanitize_choices'
	 ));
	$wp_customize->add_control(
	    'vw_book_store_pro_headermenu_font_family', array(
	    'section'  => 'vw_book_store_pro_header_section',
	    'label'    => __( 'Menu Item Fonts','vw-book-store-pro'),
	    'type'     => 'select',
	    'choices'  => $font_array,
	));
	$wp_customize->add_setting( 'vw_book_store_pro_header_menuhovercolor', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'vw_book_store_pro_header_menuhovercolor', array(
		'label' => __('Menu Item Hover Color', 'vw-book-store-pro'),
		'section' => 'vw_book_store_pro_header_section',
		'settings' => 'vw_book_store_pro_header_menuhovercolor',
	)));
	
	// This is Nav Dropdown Background Color picker setting
	$wp_customize->add_setting( 'vw_book_store_pro_dropdownbg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'vw_book_store_pro_dropdownbg_color', array(
		'label' => __('Menu DropDown Background Color', 'vw-book-store-pro'),
		'section' => 'vw_book_store_pro_header_section',
		'settings' => 'vw_book_store_pro_dropdownbg_color',
	)));

	$wp_customize->add_setting( 'vw_book_store_pro_dropdownbg_itemcolor', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'vw_book_store_pro_dropdownbg_itemcolor', array(
		'label' => __('Menu DropDown Item Color', 'vw-book-store-pro'),
		'section' => 'vw_book_store_pro_header_section',
		'settings' => 'vw_book_store_pro_dropdownbg_itemcolor',
	)));

	$wp_customize->add_setting( 'vw_book_store_pro_dropdownbg_item_hovercolor', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'vw_book_store_pro_dropdownbg_item_hovercolor', array(
		'label' => __('Menu DropDown Item Hover Color', 'vw-book-store-pro'),
		'section' => 'vw_book_store_pro_header_section',
		'settings' => 'vw_book_store_pro_dropdownbg_item_hovercolor',
	)));
	
	//In Responsive
	$wp_customize->add_setting( 'vw_book_store_pro_dropdownbg_responsivecolor', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'vw_book_store_pro_dropdownbg_responsivecolor', array(
		'label' => __('Responsive Menu Background Color', 'vw-book-store-pro'),
		'section' => 'vw_book_store_pro_header_section',
		'settings' => 'vw_book_store_pro_dropdownbg_responsivecolor',
	)));
	$wp_customize->add_setting( 'vw_book_store_pro_headermenu_responsive_item_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'vw_book_store_pro_headermenu_responsive_item_color', array(
		'label' => __('Responsive Menu item Color', 'vw-book-store-pro'),
		'section' => 'vw_book_store_pro_header_section',
		'settings' => 'vw_book_store_pro_headermenu_responsive_item_color',
	)));