<?php
/**
 * Tour Travel Agent Theme Customizer
 *
 * @package Tour Travel Agent
 */

/**
 * Add postMessage support for site title and description for the Theme Customizer.
 *
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 */
function tour_travel_agent_customize_register( $wp_customize ) {

	load_template( trailingslashit( get_template_directory() ) . '/inc/icon-changer.php' );

	$wp_customize->get_setting( 'blogname' )->transport         = 'postMessage';
	$wp_customize->get_setting( 'blogdescription' )->transport  = 'postMessage';

	$wp_customize->selective_refresh->add_partial(
		'blogname',
		array(
			'selector'        => '.site-title a',
			'render_callback' => 'tour_travel_agent_customize_partial_blogname',
		)
	);
	$wp_customize->selective_refresh->add_partial(
		'blogdescription',
		array(
			'selector'        => '.site-description',
			'render_callback' => 'tour_travel_agent_customize_partial_blogdescription',
		)
	);

	//About Section
	$wp_customize->add_section( 'tour_travel_agent_about_theme' , array(
		'title' => esc_html__( 'About Theme', 'tour-travel-agent' ),
		'priority' => 10,
	) );

	$wp_customize->add_setting('tour_travel_agent_demo_link',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_demo_link',array(
		'type'=> 'hidden',
		'description' => "<h3>". esc_html__('Theme Demo','tour-travel-agent') ."</h3><p>". esc_html__('Our premium version of Tour Travel Agent has unlimited sections with advanced control fields. Dedicated support and no limititation in any field.','tour-travel-agent') ."</p> <a target='_blank' href='". esc_url('https://preview.themescaliber.com/tour-travel-agent-pro/') ." '>". esc_html__('View Demo','tour-travel-agent') ."</a>",
		'section'=> 'tour_travel_agent_about_theme'
	));
	
	$wp_customize->add_setting('tour_travel_agent_doc_link',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_doc_link',array(
		'type'=> 'hidden',
		'description' => "<h3>". esc_html__('Theme Documentation','tour-travel-agent') ."</h3><p>". esc_html__('We have well prepared documentation that provides the general guidelines and suggestions needed for this theme.','tour-travel-agent') ."</p> <a target='_blank' href='". esc_url('https://preview.themescaliber.com/doc/free-travel-wordpress-theme/') ." '>". esc_html__('View Documentation','tour-travel-agent') ."</a>",
		'section'=> 'tour_travel_agent_about_theme'
	));

	$wp_customize->add_setting('tour_travel_agent_forum_link',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_forum_link',array(
		'type'=> 'hidden',
		'description' => "<h3>". esc_html__('Theme Support','tour-travel-agent') ."</h3><p>". esc_html__('Regarding any theme issue, we offer 24/7 support. You can get assistance from our support staff in resolving any problem. Please get in touch with us.','tour-travel-agent') ."</p><a target='_blank' href='". esc_url('https://wordpress.org/support/theme/tour-travel-agent/') ." '>". esc_html__('Support Forum','tour-travel-agent') ."</a>",
		'section'=> 'tour_travel_agent_about_theme'
	));
	$wp_customize->add_setting('tour_travel_agent_review_link',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_review_link',array(
		'type'=> 'hidden',
		'description' => "<h3>". esc_html__('Theme Review','tour-travel-agent') ."</h3><p>". esc_html__('If you enjoy using our theme, we’d love to hear your feedback. please leave us a review.','tour-travel-agent') ."</p><a target='_blank' href='". esc_url('https://wordpress.org/support/theme/tour-travel-agent/reviews/#new-post') ." '>". esc_html__('Rate & Review','tour-travel-agent') ."</a>",
		'section'=> 'tour_travel_agent_about_theme'
	));	

	//add home page setting pannel
	$wp_customize->add_panel( 'tour_travel_agent_panel_id', array(
	    'priority' => 20,
	    'capability' => 'edit_theme_options',
	    'theme_supports' => '',
	    'title' => __( 'Theme Settings', 'tour-travel-agent' ),
	) );

    $tour_travel_agent_font_array= array(
        '' =>'No Fonts',
        'Abril Fatface' => 'Abril Fatface',
        'Acme' =>'Acme', 
        'Anton' => 'Anton', 
        'Architects Daughter' =>'Architects Daughter',
        'Arimo' => 'Arimo', 
        'Arsenal' =>'Arsenal',
        'Arvo' =>'Arvo',
        'Alegreya' =>'Alegreya',
        'Alfa Slab One' =>'Alfa Slab One',
        'Averia Serif Libre' =>'Averia Serif Libre', 
        'Bangers' =>'Bangers', 
        'Boogaloo' =>'Boogaloo', 
        'Bad Script' =>'Bad Script',
        'Bitter' =>'Bitter', 
        'Bree Serif' =>'Bree Serif', 
        'BenchNine' =>'BenchNine',
        'Cabin' =>'Cabin',
        'Cardo' =>'Cardo', 
        'Courgette' =>'Courgette', 
        'Cherry Swash' =>'Cherry Swash',
        'Cormorant Garamond' =>'Cormorant Garamond', 
        'Crimson Text' =>'Crimson Text',
        'Cuprum' =>'Cuprum', 
        'Cookie' =>'Cookie',
        'Chewy' =>'Chewy',
        'Days One' =>'Days One',
        'Dosis' =>'Dosis',
        'Droid Sans' =>'Droid Sans', 
        'Economica' =>'Economica', 
        'Fredoka One' =>'Fredoka One',
        'Fjalla One' =>'Fjalla One',
        'Francois One' =>'Francois One', 
        'Frank Ruhl Libre' => 'Frank Ruhl Libre', 
        'Gloria Hallelujah' =>'Gloria Hallelujah',
        'Great Vibes' =>'Great Vibes', 
        'Handlee' =>'Handlee', 
        'Hammersmith One' =>'Hammersmith One',
        'Inconsolata' =>'Inconsolata',
        'Indie Flower' =>'Indie Flower', 
        'IM Fell English SC' =>'IM Fell English SC',
        'Julius Sans One' =>'Julius Sans One',
        'Josefin Slab' =>'Josefin Slab',
        'Josefin Sans' =>'Josefin Sans',
        'Kanit' =>'Kanit',
        'Lobster' =>'Lobster',
        'Lato' => 'Lato',
        'Lora' =>'Lora', 
        'Libre Baskerville' =>'Libre Baskerville',
        'Lobster Two' => 'Lobster Two',
        'Merriweather' =>'Merriweather',
        'Monda' =>'Monda',
        'Montserrat' =>'Montserrat',
        'Muli' =>'Muli',
        'Marck Script' =>'Marck Script',
        'Noto Serif' =>'Noto Serif',
        'Open Sans' =>'Open Sans',
        'Overpass' => 'Overpass', 
        'Overpass Mono' =>'Overpass Mono',
        'Oxygen' =>'Oxygen',
        'Orbitron' =>'Orbitron',
        'Patua One' =>'Patua One',
        'Pacifico' =>'Pacifico',
        'Padauk' =>'Padauk',
        'Playball' =>'Playball',
        'Playfair Display' =>'Playfair Display',
        'PT Sans' =>'PT Sans',
        'Philosopher' =>'Philosopher',
        'Permanent Marker' =>'Permanent Marker',
        'Poiret One' =>'Poiret One',
        'Quicksand' =>'Quicksand',
        'Quattrocento Sans' =>'Quattrocento Sans',
        'Raleway' =>'Raleway',
        'Rubik' =>'Rubik',
        'Rokkitt' =>'Rokkitt',
        'Russo One' => 'Russo One', 
        'Righteous' =>'Righteous', 
        'Slabo' =>'Slabo', 
        'Source Sans Pro' =>'Source Sans Pro',
        'Shadows Into Light Two' =>'Shadows Into Light Two',
        'Shadows Into Light' =>  'Shadows Into Light',
        'Sacramento' =>'Sacramento',
        'Shrikhand' =>'Shrikhand',
        'Tangerine' => 'Tangerine',
        'Ubuntu' =>'Ubuntu',
        'VT323' =>'VT323',
        'Varela Round' =>'Varela Round',
        'Vampiro One' =>'Vampiro One',
        'Vollkorn' => 'Vollkorn',
        'Volkhov' =>'Volkhov',
        'Kavoon' =>'Kavoon',
        'Yanone Kaffeesatz' =>'Yanone Kaffeesatz'
    );

	//Color / Font Pallete
	$wp_customize->add_section( 'tour_travel_agent_typography', array(
    	'title'      => __( 'Color / Font Pallete', 'tour-travel-agent' ),
		'priority'   => 30,
		'panel' => 'tour_travel_agent_panel_id'
	) );

	// This is Body Color setting
	$wp_customize->add_setting( 'tour_travel_agent_body_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_body_color', array(
		'label' => __('Body Color', 'tour-travel-agent'),
		'section' => 'tour_travel_agent_typography',
		'settings' => 'tour_travel_agent_body_color',
	)));

	//This is Body FontFamily  setting
	$wp_customize->add_setting('tour_travel_agent_body_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control(
		'tour_travel_agent_body_font_family', array(
		'section'  => 'tour_travel_agent_typography',
		'label'    => __( 'Body Fonts','tour-travel-agent'),
		'type'     => 'select',
		'choices'  => $tour_travel_agent_font_array,
	));

    //This is Body Fontsize setting
	$wp_customize->add_setting('tour_travel_agent_body_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_body_font_size',array(
		'label'	=> __('Body Font Size','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_typography',
		'setting'	=> 'tour_travel_agent_body_font_size',
		'type'	=> 'text'
	));

	//This is Body Font Weight setting
	$wp_customize->add_setting('tour_travel_agent_body_font_weight',array(
        'default' => '',
        'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
    ));
    $wp_customize->add_control('tour_travel_agent_body_font_weight',array(
        'type' => 'select',
        'label' => __('Body Font Weight','tour-travel-agent'),
        'section' => 'tour_travel_agent_typography',
        'choices' => array(
            '100' => __('100','tour-travel-agent'),
            '200' => __('200','tour-travel-agent'),
            '300' => __('300','tour-travel-agent'),
            '400' => __('400','tour-travel-agent'),
            '500' => __('500','tour-travel-agent'),
            '600' => __('600','tour-travel-agent'),
            '700' => __('700','tour-travel-agent'),
            '800' => __('800','tour-travel-agent'),
            '900' => __('900','tour-travel-agent'),
        ),
	) );

	// Add the Theme Color Option section.
	$wp_customize->add_setting( 'tour_travel_agent_theme_color', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_theme_color', array(
  		'label' => __('Theme Color Option','tour-travel-agent'),
	    'section' => 'tour_travel_agent_typography',
	    'settings' => 'tour_travel_agent_theme_color',
  	)));
	
	// This is Paragraph Color picker setting
	$wp_customize->add_setting( 'tour_travel_agent_paragraph_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_paragraph_color', array(
		'label' => __('Paragraph Color', 'tour-travel-agent'),
		'section' => 'tour_travel_agent_typography',
		'settings' => 'tour_travel_agent_paragraph_color',
	)));

	//This is Paragraph FontFamily picker setting
	$wp_customize->add_setting('tour_travel_agent_paragraph_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control(
	    'tour_travel_agent_paragraph_font_family', array(
	    'section'  => 'tour_travel_agent_typography',
	    'label'    => __( 'Paragraph Fonts','tour-travel-agent'),
	    'type'     => 'select',
	    'choices'  => $tour_travel_agent_font_array,
	));

	$wp_customize->add_setting('tour_travel_agent_paragraph_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_paragraph_font_size',array(
		'label'	=> __('Paragraph Font Size','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_typography',
		'setting'	=> 'tour_travel_agent_paragraph_font_size',
		'type'	=> 'text'
	));

	//This is Paragraph Font Weight setting
	$wp_customize->add_setting('tour_travel_agent_paragraph_font_weight',array(
		'default' => '',
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_paragraph_font_weight',array(
		'type' => 'select',
		'label' => __('Paragraph Font Weight','tour-travel-agent'),
		'section' => 'tour_travel_agent_typography',
		'choices' => array(
			'100' => __('100','tour-travel-agent'),
			'200' => __('200','tour-travel-agent'),
			'300' => __('300','tour-travel-agent'),
			'400' => __('400','tour-travel-agent'),
			'500' => __('500','tour-travel-agent'),
			'600' => __('600','tour-travel-agent'),
			'700' => __('700','tour-travel-agent'),
			'800' => __('800','tour-travel-agent'),
			'900' => __('900','tour-travel-agent'),
		),
	) );
	
	// This is "a" Tag Color picker setting
	$wp_customize->add_setting( 'tour_travel_agent_atag_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_atag_color', array(
		'label' => __('"a" Tag Color', 'tour-travel-agent'),
		'section' => 'tour_travel_agent_typography',
		'settings' => 'tour_travel_agent_atag_color',
	)));

	//This is "a" Tag FontFamily picker setting
	$wp_customize->add_setting('tour_travel_agent_atag_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control(
	    'tour_travel_agent_atag_font_family', array(
	    'section'  => 'tour_travel_agent_typography',
	    'label'    => __( '"a" Tag Fonts','tour-travel-agent'),
	    'type'     => 'select',
	    'choices'  => $tour_travel_agent_font_array,
	));

	// This is "li" Tag Color picker setting
	$wp_customize->add_setting( 'tour_travel_agent_li_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_li_color', array(
		'label' => __('"li" Tag Color', 'tour-travel-agent'),
		'section' => 'tour_travel_agent_typography',
		'settings' => 'tour_travel_agent_li_color',
	)));

	//This is "li" Tag FontFamily picker setting
	$wp_customize->add_setting('tour_travel_agent_li_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control(
	    'tour_travel_agent_li_font_family', array(
	    'section'  => 'tour_travel_agent_typography',
	    'label'    => __( '"li" Tag Fonts','tour-travel-agent'),
	    'type'     => 'select',
	    'choices'  => $tour_travel_agent_font_array,
	));

	// This is H1 Color picker setting
	$wp_customize->add_setting( 'tour_travel_agent_h1_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_h1_color', array(
		'label' => __('h1 Color', 'tour-travel-agent'),
		'section' => 'tour_travel_agent_typography',
		'settings' => 'tour_travel_agent_h1_color',
	)));

	//This is H1 FontFamily picker setting
	$wp_customize->add_setting('tour_travel_agent_h1_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control(
	    'tour_travel_agent_h1_font_family', array(
	    'section'  => 'tour_travel_agent_typography',
	    'label'    => __( 'h1 Fonts','tour-travel-agent'),
	    'type'     => 'select',
	    'choices'  => $tour_travel_agent_font_array,
	));

	//This is H1 FontSize setting
	$wp_customize->add_setting('tour_travel_agent_h1_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_h1_font_size',array(
		'label'	=> __('h1 Font Size','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_typography',
		'setting'	=> 'tour_travel_agent_h1_font_size',
		'type'	=> 'text'
	));

	//This is H1 Font Weight setting
	$wp_customize->add_setting('tour_travel_agent_h1_font_weight',array(
		'default' => '',
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_h1_font_weight',array(
		'type' => 'select',
		'label' => __('H1 Font Weight','tour-travel-agent'),
		'section' => 'tour_travel_agent_typography',
		'choices' => array(
			'100' => __('100','tour-travel-agent'),
			'200' => __('200','tour-travel-agent'),
			'300' => __('300','tour-travel-agent'),
			'400' => __('400','tour-travel-agent'),
			'500' => __('500','tour-travel-agent'),
			'600' => __('600','tour-travel-agent'),
			'700' => __('700','tour-travel-agent'),
			'800' => __('800','tour-travel-agent'),
			'900' => __('900','tour-travel-agent'),
		),
	) );

	// This is H2 Color picker setting
	$wp_customize->add_setting( 'tour_travel_agent_h2_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_h2_color', array(
		'label' => __('h2 Color', 'tour-travel-agent'),
		'section' => 'tour_travel_agent_typography',
		'settings' => 'tour_travel_agent_h2_color',
	)));

	//This is H2 FontFamily picker setting
	$wp_customize->add_setting('tour_travel_agent_h2_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control(
	    'tour_travel_agent_h2_font_family', array(
	    'section'  => 'tour_travel_agent_typography',
	    'label'    => __( 'h2 Fonts','tour-travel-agent'),
	    'type'     => 'select',
	    'choices'  => $tour_travel_agent_font_array,
	));

	//This is H2 FontSize setting
	$wp_customize->add_setting('tour_travel_agent_h2_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_h2_font_size',array(
		'label'	=> __('h2 Font Size','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_typography',
		'setting'	=> 'tour_travel_agent_h2_font_size',
		'type'	=> 'text'
	));

	//This is H2 Font Weight setting
	$wp_customize->add_setting('tour_travel_agent_h2_font_weight',array(
		'default' => '',
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_h2_font_weight',array(
		'type' => 'select',
		'label' => __('H2 Font Weight','tour-travel-agent'),
		'section' => 'tour_travel_agent_typography',
		'choices' => array(
			'100' => __('100','tour-travel-agent'),
			'200' => __('200','tour-travel-agent'),
			'300' => __('300','tour-travel-agent'),
			'400' => __('400','tour-travel-agent'),
			'500' => __('500','tour-travel-agent'),
			'600' => __('600','tour-travel-agent'),
			'700' => __('700','tour-travel-agent'),
			'800' => __('800','tour-travel-agent'),
			'900' => __('900','tour-travel-agent'),
		),
	) );

	// This is H3 Color picker setting
	$wp_customize->add_setting( 'tour_travel_agent_h3_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_h3_color', array(
		'label' => __('h3 Color', 'tour-travel-agent'),
		'section' => 'tour_travel_agent_typography',
		'settings' => 'tour_travel_agent_h3_color',
	)));

	//This is H3 FontFamily picker setting
	$wp_customize->add_setting('tour_travel_agent_h3_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control(
	    'tour_travel_agent_h3_font_family', array(
	    'section'  => 'tour_travel_agent_typography',
	    'label'    => __( 'h3 Fonts','tour-travel-agent'),
	    'type'     => 'select',
	    'choices'  => $tour_travel_agent_font_array,
	));

	//This is H3 FontSize setting
	$wp_customize->add_setting('tour_travel_agent_h3_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_h3_font_size',array(
		'label'	=> __('h3 Font Size','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_typography',
		'setting'	=> 'tour_travel_agent_h3_font_size',
		'type'	=> 'text'
	));

	//This is H3 Font Weight setting
	$wp_customize->add_setting('tour_travel_agent_h3_font_weight',array(
		'default' => '',
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_h3_font_weight',array(
		'type' => 'select',
		'label' => __('H3 Font Weight','tour-travel-agent'),
		'section' => 'tour_travel_agent_typography',
		'choices' => array(
			'100' => __('100','tour-travel-agent'),
			'200' => __('200','tour-travel-agent'),
			'300' => __('300','tour-travel-agent'),
			'400' => __('400','tour-travel-agent'),
			'500' => __('500','tour-travel-agent'),
			'600' => __('600','tour-travel-agent'),
			'700' => __('700','tour-travel-agent'),
			'800' => __('800','tour-travel-agent'),
			'900' => __('900','tour-travel-agent'),
		),
	) );

	// This is H4 Color picker setting
	$wp_customize->add_setting( 'tour_travel_agent_h4_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_h4_color', array(
		'label' => __('h4 Color', 'tour-travel-agent'),
		'section' => 'tour_travel_agent_typography',
		'settings' => 'tour_travel_agent_h4_color',
	)));

	//This is H4 FontFamily picker setting
	$wp_customize->add_setting('tour_travel_agent_h4_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control(
	    'tour_travel_agent_h4_font_family', array(
	    'section'  => 'tour_travel_agent_typography',
	    'label'    => __( 'h4 Fonts','tour-travel-agent'),
	    'type'     => 'select',
	    'choices'  => $tour_travel_agent_font_array,
	));

	//This is H4 FontSize setting
	$wp_customize->add_setting('tour_travel_agent_h4_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_h4_font_size',array(
		'label'	=> __('h4 Font Size','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_typography',
		'setting'	=> 'tour_travel_agent_h4_font_size',
		'type'	=> 'text'
	));

	//This is H4 Font Weight setting
	$wp_customize->add_setting('tour_travel_agent_h4_font_weight',array(
		'default' => '',
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_h4_font_weight',array(
		'type' => 'select',
		'label' => __('H4 Font Weight','tour-travel-agent'),
		'section' => 'tour_travel_agent_typography',
		'choices' => array(
			'100' => __('100','tour-travel-agent'),
			'200' => __('200','tour-travel-agent'),
			'300' => __('300','tour-travel-agent'),
			'400' => __('400','tour-travel-agent'),
			'500' => __('500','tour-travel-agent'),
			'600' => __('600','tour-travel-agent'),
			'700' => __('700','tour-travel-agent'),
			'800' => __('800','tour-travel-agent'),
			'900' => __('900','tour-travel-agent'),
		),
	) );

	// This is H5 Color picker setting
	$wp_customize->add_setting( 'tour_travel_agent_h5_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_h5_color', array(
		'label' => __('h5 Color', 'tour-travel-agent'),
		'section' => 'tour_travel_agent_typography',
		'settings' => 'tour_travel_agent_h5_color',
	)));

	//This is H5 FontFamily picker setting
	$wp_customize->add_setting('tour_travel_agent_h5_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control(
	    'tour_travel_agent_h5_font_family', array(
	    'section'  => 'tour_travel_agent_typography',
	    'label'    => __( 'h5 Fonts','tour-travel-agent'),
	    'type'     => 'select',
	    'choices'  => $tour_travel_agent_font_array,
	));

	//This is H5 FontSize setting
	$wp_customize->add_setting('tour_travel_agent_h5_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_h5_font_size',array(
		'label'	=> __('h5 Font Size','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_typography',
		'setting'	=> 'tour_travel_agent_h5_font_size',
		'type'	=> 'text'
	));

	//This is H5 Font Weight setting
	$wp_customize->add_setting('tour_travel_agent_h5_font_weight',array(
		'default' => '',
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_h5_font_weight',array(
		'type' => 'select',
		'label' => __('H5 Font Weight','tour-travel-agent'),
		'section' => 'tour_travel_agent_typography',
		'choices' => array(
			'100' => __('100','tour-travel-agent'),
			'200' => __('200','tour-travel-agent'),
			'300' => __('300','tour-travel-agent'),
			'400' => __('400','tour-travel-agent'),
			'500' => __('500','tour-travel-agent'),
			'600' => __('600','tour-travel-agent'),
			'700' => __('700','tour-travel-agent'),
			'800' => __('800','tour-travel-agent'),
			'900' => __('900','tour-travel-agent'),
		),
	) );

	// This is H6 Color picker setting
	$wp_customize->add_setting( 'tour_travel_agent_h6_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_h6_color', array(
		'label' => __('h6 Color', 'tour-travel-agent'),
		'section' => 'tour_travel_agent_typography',
		'settings' => 'tour_travel_agent_h6_color',
	)));

	//This is H6 FontFamily picker setting
	$wp_customize->add_setting('tour_travel_agent_h6_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control(
	    'tour_travel_agent_h6_font_family', array(
	    'section'  => 'tour_travel_agent_typography',
	    'label'    => __( 'h6 Fonts','tour-travel-agent'),
	    'type'     => 'select',
	    'choices'  => $tour_travel_agent_font_array,
	));

	//This is H6 FontSize setting
	$wp_customize->add_setting('tour_travel_agent_h6_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_h6_font_size',array(
		'label'	=> __('h6 Font Size','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_typography',
		'setting'	=> 'tour_travel_agent_h6_font_size',
		'type'	=> 'text'
	));

	//This is H6 Font Weight setting
	$wp_customize->add_setting('tour_travel_agent_h6_font_weight',array(
		'default' => '',
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_h6_font_weight',array(
		'type' => 'select',
		'label' => __('H6 Font Weight','tour-travel-agent'),
		'section' => 'tour_travel_agent_typography',
		'choices' => array(
			'100' => __('100','tour-travel-agent'),
			'200' => __('200','tour-travel-agent'),
			'300' => __('300','tour-travel-agent'),
			'400' => __('400','tour-travel-agent'),
			'500' => __('500','tour-travel-agent'),
			'600' => __('600','tour-travel-agent'),
			'700' => __('700','tour-travel-agent'),
			'800' => __('800','tour-travel-agent'),
			'900' => __('900','tour-travel-agent'),
		),
	) );

	//Layouts

	// cursor
	$wp_customize->add_setting('tour_travel_agent_enable_custom_cursor',array(
        'default'           => 'off',
        'sanitize_callback' => 'tour_travel_agent_sanitize_choices',
    )
	);
	$wp_customize->add_control('tour_travel_agent_enable_custom_cursor',array(
			'label'    => __( 'Show Custom Cursor', 'tour-travel-agent' ),
			'section'  => 'tour_travel_agent_left_right',
			'type'     => 'radio',
			'choices'  => array(
				'1'  => __( 'On', 'tour-travel-agent' ),
				'off'=> __( 'Off', 'tour-travel-agent' ),
			),
		)
	);

	$wp_customize->add_section( 'tour_travel_agent_left_right', array(
    	'title'      => __( 'Theme Layout Settings', 'tour-travel-agent' ),
		'priority'   => 30,
		'panel' => 'tour_travel_agent_panel_id'
	) );

	$wp_customize->add_setting('tour_travel_agent_width_options',array(
        'default' => 'Full Layout',
        'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_width_options',array(
        'type' => 'select',
        'label' => __('Select Site Layout','tour-travel-agent'),
        'section' => 'tour_travel_agent_left_right',
        'choices' => array(
            'Full Layout' => __('Full Layout','tour-travel-agent'),
            'Contained Layout' => __('Contained Layout','tour-travel-agent'),
            'Boxed Layout' => __('Boxed Layout','tour-travel-agent'),
        ),
	) );


	// Add Settings and Controls for Layout
	$wp_customize->add_setting('tour_travel_agent_theme_options',array(
        'default' => 'Right Sidebar',
        'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	) );
	$wp_customize->add_control('tour_travel_agent_theme_options', array(
        'type' => 'radio',
        'label' => __('Sidebar Layout','tour-travel-agent'),
        'section' => 'tour_travel_agent_left_right',
        'choices' => array(
            'Left Sidebar' => __('Left Sidebar','tour-travel-agent'),
            'Right Sidebar' => __('Right Sidebar','tour-travel-agent'),
            'One Column' => __('One Column','tour-travel-agent'),
            'Three Columns' => __('Three Columns','tour-travel-agent'),
            'Four Columns' => __('Four Columns','tour-travel-agent'),
            'Grid Layout' => __('Grid Layout','tour-travel-agent')
        ),
    ));

	// Add Settings and Controls for Layout
	$wp_customize->add_setting('tour_travel_agent_single_post_sidebar',array(
        'default' => 'Right Sidebar',
        'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	) );
	$wp_customize->add_control('tour_travel_agent_single_post_sidebar', array(
        'type' => 'radio',
        'label' => __('Single Post Sidebar Layout','tour-travel-agent'),
        'section' => 'tour_travel_agent_left_right',
        'choices' => array(
            'Left Sidebar' => __('Left Sidebar','tour-travel-agent'),
            'Right Sidebar' => __('Right Sidebar','tour-travel-agent'),
            'One Column' => __('One Column','tour-travel-agent'),
        ),
    ));

    $wp_customize->add_setting('tour_travel_agent_single_page_sidebar_layout', array(
		'default'           => 'One Column',
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices',
	));
	$wp_customize->add_control('tour_travel_agent_single_page_sidebar_layout',array(
		'type'           => 'radio',
		'label'          => __('Single Page Layouts', 'tour-travel-agent'),
		'section'        => 'tour_travel_agent_left_right',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'tour-travel-agent'),
			'Right Sidebar' => __('Right Sidebar', 'tour-travel-agent'),
			'One Column'    => __('One Column', 'tour-travel-agent'),
		),
	));

    $wp_customize->add_setting( 'tour_travel_agent_single_page_breadcrumb',array(
		'default' => false,
      	'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ) );
    $wp_customize->add_control('tour_travel_agent_single_page_breadcrumb',array(
    	'type' => 'checkbox',
        'label' => __( 'Show / Hide Single Page Breadcrumb','tour-travel-agent' ),
        'section' => 'tour_travel_agent_left_right'
    ));


    // Preloader
	$wp_customize->add_setting( 'tour_travel_agent_preloader_hide',array(
		'default' => false,
      	'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ) );
    $wp_customize->add_control('tour_travel_agent_preloader_hide',array(
    	'type' => 'checkbox',
        'label' => __( 'Show / Hide Preloader','tour-travel-agent' ),
        'section' => 'tour_travel_agent_left_right'
    ));

    $wp_customize->add_setting('tour_travel_agent_preloader_type',array(
        'default'   => 'center-square',
        'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control( 'tour_travel_agent_preloader_type', array(
		'label' => __( 'Preloader Type','tour-travel-agent' ),
		'section' => 'tour_travel_agent_left_right',
		'type'  => 'select',
		'settings' => 'tour_travel_agent_preloader_type',
		'choices' => array(
		    'center-square' => __('Center Square','tour-travel-agent'),
		    'chasing-square' => __('Chasing Square','tour-travel-agent'),
	    ),
	));

	$wp_customize->add_setting( 'tour_travel_agent_preloader_color', array(
	    'default' => '#333333',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_preloader_color', array(
  		'label' => 'Preloader Color',
	    'section' => 'tour_travel_agent_left_right',
	    'settings' => 'tour_travel_agent_preloader_color',
  	)));

  	$wp_customize->add_setting( 'tour_travel_agent_preloader_bg_color', array(
	    'default' => '#fff',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_preloader_bg_color', array(
  		'label' => 'Preloader Background Color',
	    'section' => 'tour_travel_agent_left_right',
	    'settings' => 'tour_travel_agent_preloader_bg_color',
  	)));

	$wp_customize->add_setting('tour_travel_agent_preloader_background_img',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'tour_travel_agent_preloader_background_img',array(
        'label' => __('Preloader Background Image','tour-travel-agent'),
        'section' => 'tour_travel_agent_left_right'
	)));		

    $wp_customize->add_setting('tour_travel_agent_breadcrumb_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'tour_travel_agent_breadcrumb_color', array(
		'label'    => __('Breadcrumb Color', 'tour-travel-agent'),
		'section'  => 'tour_travel_agent_left_right',
	)));

	$wp_customize->add_setting('tour_travel_agent_breadcrumb_background_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'tour_travel_agent_breadcrumb_background_color', array(
		'label'    => __('Breadcrumb Background Color', 'tour-travel-agent'),
		'section'  => 'tour_travel_agent_left_right',
	)));

	$wp_customize->add_setting('tour_travel_agent_breadcrumb_hover_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'tour_travel_agent_breadcrumb_hover_color', array(
		'label'    => __('Breadcrumb Hover Color', 'tour-travel-agent'),
		'section'  => 'tour_travel_agent_left_right',
	)));

	$wp_customize->add_setting('tour_travel_agent_breadcrumb_hover_bg_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'tour_travel_agent_breadcrumb_hover_bg_color', array(
		'label'    => __('Breadcrumb Hover Background Color', 'tour-travel-agent'),
		'section'  => 'tour_travel_agent_left_right',
	)));

    //Topbar
	$wp_customize->add_section('tour_travel_agent_topbar',array(
		'title'	=> __('Topbar','tour-travel-agent'),
		'priority'	=> null,
		'panel' => 'tour_travel_agent_panel_id',
	));

	$wp_customize->add_setting( 'tour_travel_agent_show_topbar',array(
		'default' => true,
      	'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ) );
    $wp_customize->add_control('tour_travel_agent_show_topbar',array(
    	'type' => 'checkbox',
        'label' => __( 'Show/Hide Topbar','tour-travel-agent' ),
        'section' => 'tour_travel_agent_topbar'
    ));

    $wp_customize->add_setting('tour_travel_agent_topbar_phone',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('tour_travel_agent_topbar_phone',array(
		'label'	=> __('Add Phone Number','tour-travel-agent'),
		'section' => 'tour_travel_agent_topbar',
		'type'	=> 'text'
	));

    $wp_customize->add_setting('tour_travel_agent_topbar_email',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_email'
	));	
	$wp_customize->add_control('tour_travel_agent_topbar_email',array(
		'label'	=> __('Add Email Address','tour-travel-agent'),
		'section' => 'tour_travel_agent_topbar',
		'type'	=> 'text'
	));

    $wp_customize->add_setting('tour_travel_agent_topbar_location',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('tour_travel_agent_topbar_location',array(
		'label'	=> __('Add Location','tour-travel-agent'),
		'section' => 'tour_travel_agent_topbar',
		'type'	=> 'text'
	));

	$wp_customize->add_setting('tour_travel_agent_facebook_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('tour_travel_agent_facebook_url',array(
		'label'	=> __('Add Facebook URL','tour-travel-agent'),
		'section' => 'tour_travel_agent_topbar',
		'type'	=> 'text'
	));

	$wp_customize->add_setting('tour_travel_agent_facebook_icon',array(
		'default'	=> 'fab fa-facebook-square',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize,'tour_travel_agent_facebook_icon',array(
		'label'	=> __('Add Facebook Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_topbar',
		'setting'	=> 'tour_travel_agent_facebook_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('tour_travel_agent_twitter_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('tour_travel_agent_twitter_url',array(
		'label'	=> __('Add Twitter URL','tour-travel-agent'),
		'section' => 'tour_travel_agent_topbar',
		'type'	=> 'text'
	));

	$wp_customize->add_setting('tour_travel_agent_twitter_icon',array(
		'default'	=> 'fab fa-twitter-square',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize,'tour_travel_agent_twitter_icon',array(
		'label'	=> __('Add Twitter Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_topbar',
		'setting'	=> 'tour_travel_agent_twitter_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('tour_travel_agent_linkedin_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('tour_travel_agent_linkedin_url',array(
		'label'	=> __('Add Linkedin URL','tour-travel-agent'),
		'section' => 'tour_travel_agent_topbar',
		'type'	=> 'text'
	));

	$wp_customize->add_setting('tour_travel_agent_linkedin_icon',array(
		'default'	=> 'fab fa-linkedin',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize,'tour_travel_agent_linkedin_icon',array(
		'label'	=> __('Add Linkedin Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_topbar',
		'setting'	=> 'tour_travel_agent_linkedin_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('tour_travel_agent_instagram_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('tour_travel_agent_instagram_url',array(
		'label'	=> __('Add Instagram URL','tour-travel-agent'),
		'section' => 'tour_travel_agent_topbar',
		'type'	=> 'text'
	));

	$wp_customize->add_setting('tour_travel_agent_instagram_icon',array(
		'default'	=> 'fab fa-instagram',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize,'tour_travel_agent_instagram_icon',array(
		'label'	=> __('Add Instagram Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_topbar',
		'setting'	=> 'tour_travel_agent_instagram_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting( 'tour_travel_agent_header_icon_font_size',array(
		'default' => '',
		'sanitize_callback' => 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control('tour_travel_agent_header_icon_font_size',array(
		'label' => esc_html__( 'Icon Font Size','tour-travel-agent' ),
		'type' => 'number',
		'section' => 'tour_travel_agent_topbar',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting( 'tour_travel_agent_header_icon_color', array(
    'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_header_icon_color', array(
		'label' => __('Icon Color', 'tour-travel-agent'),
		'section' => 'tour_travel_agent_topbar',
		'settings' => 'tour_travel_agent_header_icon_color',
	)));


	//Header
	$wp_customize->add_section('tour_travel_agent_header',array(
		'title'	=> __('Header','tour-travel-agent'),
		'priority'	=> null,
		'panel' => 'tour_travel_agent_panel_id',
	));

	$wp_customize->add_setting( 'tour_travel_agent_menu_settings_premium_features',array(
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_menu_settings_premium_features', array(
    	'type'=> 'hidden',
        'description' => "<h3>". esc_html('More Features in the Premium Version!','tour-travel-agent') ."</h3>
        	<ul>
        		<li>". esc_html('Menu Background Colors','tour-travel-agent') ."</li>
        		<li>". esc_html('Menu Item Fonts','tour-travel-agent') ."</li>
        		<li>". esc_html('Responsive Menu Colors','tour-travel-agent') ."</li>
        		<li>". esc_html('Header Search Icons Colors','tour-travel-agent') ."</li>
        		<li>". esc_html('... and Other Premium Features','tour-travel-agent') ."</li>
        	</ul>
        	<a target='_blank' href='". esc_url('https://www.themescaliber.com/products/travel-agent-wordpress-theme') ." '>". esc_html('Upgrade Now','tour-travel-agent') ."</a>",
        'section' => 'tour_travel_agent_header'
        )
    );

	//Sticky Header
	$wp_customize->add_setting( 'tour_travel_agent_sticky_header',array(
      	'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ) );
    $wp_customize->add_control('tour_travel_agent_sticky_header',array(
    	'type' => 'checkbox',
        'label' => __( 'Sticky Header','tour-travel-agent' ),
        'section' => 'tour_travel_agent_header'
    ));

    $wp_customize->add_setting('tour_travel_agent_sticky_header_padding', array(
		'default'=> '',
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control('tour_travel_agent_sticky_header_padding', array(
		'label'	=> __('Sticky Header Padding','tour-travel-agent'),
		'input_attrs' => array(
            'step' => 1,
			'min'  => 0,
			'max'  => 50,
        ),
		'section'=> 'tour_travel_agent_header',
		'type'=> 'number',
	));

	$wp_customize->add_setting('tour_travel_agent_book_btn_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('tour_travel_agent_book_btn_text',array(
		'label'	=> __('Add Button Text','tour-travel-agent'),
		'section' => 'tour_travel_agent_header',
		'type'	=> 'text'
	));

	$wp_customize->add_setting('tour_travel_agent_book_btn_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('tour_travel_agent_book_btn_url',array(
		'label'	=> __('Add Button URL','tour-travel-agent'),
		'section' => 'tour_travel_agent_header',
		'type'	=> 'text'
	));

	$wp_customize->add_setting('tour_travel_agent_navigation_case',array(
        'default' => 'capitalize',
        'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_navigation_case',array(
        'type' => 'select',
        'label' => __('Navigation Case','tour-travel-agent'),
        'section' => 'tour_travel_agent_header',
        'choices' => array(
            'uppercase' => __('Uppercase','tour-travel-agent'),
            'capitalize' => __('Capitalize','tour-travel-agent'),
        ),
	) );

	$wp_customize->add_setting( 'tour_travel_agent_nav_font_size', array(
		'default'           => 15,
		'sanitize_callback' => 'tour_travel_agent_sanitize_float',
	) );
	$wp_customize->add_control( 'tour_travel_agent_nav_font_size', array(
		'label' => __( 'Navigation Font Size','tour-travel-agent' ),
		'section'     => 'tour_travel_agent_header',
		'type'        => 'number',
		'input_attrs' => array(
			'step' => 1,
			'min' => 0,
			'max' => 50,
		),
	) );

	$wp_customize->add_setting('tour_travel_agent_font_weight_menu_option',array(
        'default' => '600',
        'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
    ));
    $wp_customize->add_control('tour_travel_agent_font_weight_menu_option',array(
        'type' => 'select',
        'label' => __('Navigation Font Weight','tour-travel-agent'),
        'section' => 'tour_travel_agent_header',
        'choices' => array(
            '100' => __('100','tour-travel-agent'),
            '200' => __('200','tour-travel-agent'),
            '300' => __('300','tour-travel-agent'),
            '400' => __('400','tour-travel-agent'),
            '500' => __('500','tour-travel-agent'),
            '600' => __('600','tour-travel-agent'),
            '700' => __('700','tour-travel-agent'),
            '800' => __('800','tour-travel-agent'),
            '900' => __('900','tour-travel-agent'),
        ),
	));

	$wp_customize->add_setting('tour_travel_agent_menu_padding', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	));

	$wp_customize->add_control('tour_travel_agent_menu_padding', array(
		'label'       => __('Menu Font Padding', 'tour-travel-agent'),
		'section'     => 'tour_travel_agent_header',
		'type'        => 'number', 
		'input_attrs' => array(
			'step' => 1,
			'min'  => 0,
			'max'  => 50,
		),
	));

	$wp_customize->add_setting('tour_travel_agent_menus_item_style',array(
        'default' => '',
        'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_menus_item_style',array(
        'type' => 'select',
		'label' => __('Menu Item Hover Style','tour-travel-agent'),
		'section' => 'tour_travel_agent_header',
		'choices' => array(
            'None' => __('None','tour-travel-agent'),
            'Zoom In' => __('Zoom In','tour-travel-agent'),
        ),
	));

	$wp_customize->add_setting('tour_travel_agent_menu_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'tour_travel_agent_menu_color', array(
		'label'    => __('Menu Color', 'tour-travel-agent'),
		'section'  => 'tour_travel_agent_header',
		'settings' => 'tour_travel_agent_menu_color',
	)));

	$wp_customize->add_setting('tour_travel_agent_menu_hover_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'tour_travel_agent_menu_hover_color', array(
		'label'    => __('Menu Hover Color', 'tour-travel-agent'),
		'section'  => 'tour_travel_agent_header',
		'settings' => 'tour_travel_agent_menu_hover_color',
	)));

	$wp_customize->add_setting('tour_travel_agent_submenu_menu_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'tour_travel_agent_submenu_menu_color', array(
		'label'    => __('Submenu Color', 'tour-travel-agent'),
		'section'  => 'tour_travel_agent_header',
		'settings' => 'tour_travel_agent_submenu_menu_color',
	)));

	$wp_customize->add_setting( 'tour_travel_agent_submenu_hover_color', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_submenu_hover_color', array(
  		'label' => __('Submenu Hover Color', 'tour-travel-agent'),
	    'section' => 'tour_travel_agent_header',
	    'settings' => 'tour_travel_agent_submenu_hover_color',
  	)));

	//home page slider
	$wp_customize->add_section( 'tour_travel_agent_slidersettings' , array(
    	'title'      => __( 'Slider Settings', 'tour-travel-agent' ),
		'priority'   => null,
		'panel' => 'tour_travel_agent_panel_id'
	) );

	$wp_customize->selective_refresh->add_partial(
		'tour_travel_agent_slider_hide_show',
		array(
			'selector'        => '#slider .inner_carousel h1',
			'render_callback' => 'tour_travel_agent_customize_partial_tour_travel_agent_slider_hide_show',
		)
	);

	$wp_customize->add_setting('tour_travel_agent_slider_hide_show',array(
       'default' => false,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	));
	$wp_customize->add_control('tour_travel_agent_slider_hide_show',array(
	   'type' => 'checkbox',
	   'label' => __('Show / Hide slider','tour-travel-agent'),
	   'section' => 'tour_travel_agent_slidersettings',
	));

	//Show / Hide slider Title
	$wp_customize->add_setting('tour_travel_agent_slider_title_hide_show',array(
		'default' => true,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	 ));
	 
	 $wp_customize->add_control('tour_travel_agent_slider_title_hide_show',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Slider Title','tour-travel-agent'),
		'section' => 'tour_travel_agent_slidersettings',
	 ));
	 
	//Show / Hide slider Text
	$wp_customize->add_setting('tour_travel_agent_slider_text_hide_show',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	));
	
	$wp_customize->add_control('tour_travel_agent_slider_text_hide_show',array(
	   'type' => 'checkbox',
	   'label' => __('Show / Hide Slider Text','tour-travel-agent'),
	   'section' => 'tour_travel_agent_slidersettings',
	)); 

	$wp_customize->add_setting('tour_travel_agent_slider_title',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('tour_travel_agent_slider_title',array(
		'label'	=> esc_html__('Slider Title','tour-travel-agent'),
		'section'=> 'tour_travel_agent_slidersettings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('tour_travel_agent_slider_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('tour_travel_agent_slider_text',array(
		'label'	=> esc_html__('Slider Text','tour-travel-agent'),
		'section'=> 'tour_travel_agent_slidersettings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('tour_travel_agent_slider_background_img',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'tour_travel_agent_slider_background_img',array(
        'label' => __('Slider Background Image','tour-travel-agent'),
        'description' => __('Image Size 1200px x 550px','tour-travel-agent'),
        'section' => 'tour_travel_agent_slidersettings'
	)));

	$wp_customize->add_setting('tour_travel_agent_location_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('tour_travel_agent_location_text',array(
		'label'	=> esc_html__('Location Title','tour-travel-agent'),
		'section'=> 'tour_travel_agent_slidersettings',
		'type'=> 'text'
	));

	$categories = get_categories();
	$cat_posts = array();
	$i = 0;
	$cat_posts[]='Select';
	foreach($categories as $category){
		if($i==0){
			$default = $category->slug;
			$i++;
		}
		$cat_posts[$category->slug] = $category->name;
	}

	$wp_customize->add_setting('tour_travel_agent_slider_category',array(
		'default'	=> 'select',
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices',
	));
	$wp_customize->add_control('tour_travel_agent_slider_category',array(
		'type'    => 'select',
		'choices' => $cat_posts,
		'label' => __('Select Location Category','tour-travel-agent'),
		'section' => 'tour_travel_agent_slidersettings',
	));

	$wp_customize->add_setting('tour_travel_agent_slider_image_overlay',array(
        'default' => true,
        'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	));
	$wp_customize->add_control('tour_travel_agent_slider_image_overlay',array(
     	'type' => 'checkbox',
      	'label' => __('Show / Hide Slider Image Overlay','tour-travel-agent'),
      	'section' => 'tour_travel_agent_slidersettings',
	));

	$wp_customize->add_setting( 'tour_travel_agent_slider_overlay_color', array(
	    'default' => '#000',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_slider_overlay_color', array(
	    'label' => __('Slider Overlay Color', 'tour-travel-agent'),
	    'section' => 'tour_travel_agent_slidersettings',
  	)));
	  $wp_customize->add_setting('tour_travel_agent_slider_opacity_color',array(
		'default'              => 0.7,
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	  ));
	  $wp_customize->add_control( 'tour_travel_agent_slider_opacity_color', array(
		  'label'       => esc_html__( 'Slider Image Opacity','tour-travel-agent' ),
		  'section'     => 'tour_travel_agent_slidersettings',
		  'type'        => 'select',
		  'settings'    => 'tour_travel_agent_slider_opacity_color',
		  'choices' => array(
			'0' =>  esc_attr('0','tour-travel-agent'),
			'0.1' =>  esc_attr('0.1','tour-travel-agent'),
			'0.2' =>  esc_attr('0.2','tour-travel-agent'),
			'0.3' =>  esc_attr('0.3','tour-travel-agent'),
			'0.4' =>  esc_attr('0.4','tour-travel-agent'),
			'0.5' =>  esc_attr('0.5','tour-travel-agent'),
			'0.6' =>  esc_attr('0.6','tour-travel-agent'),
			'0.7' =>  esc_attr('0.7','tour-travel-agent'),
			'0.8' =>  esc_attr('0.8','tour-travel-agent'),
			'0.9' =>  esc_attr('0.9','tour-travel-agent')
		  ),
	  ));


	//Popular Section
	$wp_customize->add_section('tour_travel_agent_popular_tour_section',array(
		'title'	=> __('Popular Tour Section','tour-travel-agent'),
		'panel' => 'tour_travel_agent_panel_id',
	));

	$wp_customize->add_setting( 'tour_travel_agent_tour_settings_premium_features',array(
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_tour_settings_premium_features', array(
    	'type'=> 'hidden',
        'description' => "<h3>". esc_html('More Features in the Premium Version!','tour-travel-agent') ."</h3>
        	<ul>
        		<li>". esc_html('Section Background Color Option','tour-travel-agent') ."</li>
        		<li>". esc_html('Title Font Settings','tour-travel-agent') ."</li>
        		<li>". esc_html('... and Other Premium Features','tour-travel-agent') ."</li>
        	</ul>
        	<a target='_blank' href='". esc_url('https://www.themescaliber.com/products/travel-agent-wordpress-theme') ." '>". esc_html('Upgrade Now','tour-travel-agent') ."</a>",
        'section' => 'tour_travel_agent_popular_tour_section'
        )
    );

	$wp_customize->add_setting('tour_travel_agent_popular_tour_hide_show',array(
		'default' => false,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	 ));
	 $wp_customize->add_control('tour_travel_agent_popular_tour_hide_show',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Popular Tour Section','tour-travel-agent'),
		'section' => 'tour_travel_agent_popular_tour_section',
	 ));

	$wp_customize->add_setting('tour_travel_agent_section_title',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('tour_travel_agent_section_title',array(
		'label'	=> esc_html__('Section Title','tour-travel-agent'),
		'section'=> 'tour_travel_agent_popular_tour_section',
		'type'=> 'text'
	));

	$wp_customize->add_setting('tour_travel_agent_section_bg_title',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('tour_travel_agent_section_bg_title',array(
		'label'	=> esc_html__('Section Background Title','tour-travel-agent'),
		'section'=> 'tour_travel_agent_popular_tour_section',
		'type'=> 'text'
	));

	$categories = get_categories();
	$cat_posts = array();
	$i = 0;
	$cat_posts[]='Select';
	foreach($categories as $category){
		if($i==0){
			$default = $category->slug;
			$i++;
		}
		$cat_posts[$category->slug] = $category->name;
	}

	$wp_customize->add_setting('tour_travel_agent_popular_tour_category',array(
		'default'	=> 'select',
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices',
	));
	$wp_customize->add_control('tour_travel_agent_popular_tour_category',array(
		'type'    => 'select',
		'choices' => $cat_posts,
		'label' => __('Select Popular Tour Category','tour-travel-agent'),
		'section' => 'tour_travel_agent_popular_tour_section',
	));

	//Blog Post
	$wp_customize->add_section('tour_travel_agent_blog_post',array(
		'title'	=> __('Post Settings','tour-travel-agent'),
		'panel' => 'tour_travel_agent_panel_id',
	));	

	$wp_customize->add_setting( 'tour_travel_agent_post_settings_premium_features',array(
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_post_settings_premium_features', array(
    	'type'=> 'hidden',
        'description' => "<h3>". esc_html('More Features in the Premium Version!','tour-travel-agent') ."</h3>
        	<ul>
        		<li>". esc_html('Section Heading Option','tour-travel-agent') ."</li>
        		<li>". esc_html('Animated Elements Colors','tour-travel-agent') ."</li>
        		<li>". esc_html('... and Other Premium Features','tour-travel-agent') ."</li>
        	</ul>
        	<a target='_blank' href='". esc_url('https://www.themescaliber.com/products/travel-agent-wordpress-theme') ." '>". esc_html('Upgrade Now','tour-travel-agent') ."</a>",
        'section' => 'tour_travel_agent_blog_post'
        )
    );

	$wp_customize->add_setting('tour_travel_agent_blog_post_alignment',array(
        'default' => 'left',
        'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
    ));
	$wp_customize->add_control('tour_travel_agent_blog_post_alignment', array(
        'type' => 'select',
        'label' => __( 'Blog Post Alignment', 'tour-travel-agent' ),
        'section' => 'tour_travel_agent_blog_post',
        'choices' => array(
            'left' => __('Left Align','tour-travel-agent'),
            'right' => __('Right Align','tour-travel-agent'),
            'center' => __('Center Align','tour-travel-agent')
        ),
    ));

	$wp_customize->add_setting('tour_travel_agent_initial_caps_enable',
	array(
		'default' => false,
		'sanitize_callback' => 'tour_travel_agent_sanitize_checkbox',
	)); 
	$wp_customize->add_control( 'tour_travel_agent_initial_caps_enable', 
	array(
		'label' => esc_html__('Initial Letter Capital', 'tour-travel-agent'),
		'type' => 'checkbox',
		'section' => 'tour_travel_agent_blog_post',
	));

	$wp_customize->add_setting('tour_travel_agent_date_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_date_hide',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Post Date','tour-travel-agent'),
       'section' => 'tour_travel_agent_blog_post'
    ));

    $wp_customize->add_setting('tour_travel_agent_postdate_icon',array(
		'default'	=> 'fas fa-calendar-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize,'tour_travel_agent_postdate_icon',array(
		'label'	=> __('Add Post Date Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_blog_post',
		'setting'	=> 'tour_travel_agent_postdate_icon',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('tour_travel_agent_author_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_author_hide',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Post Author','tour-travel-agent'),
       'section' => 'tour_travel_agent_blog_post'
    ));

    $wp_customize->add_setting('tour_travel_agent_author_icon',array(
		'default'	=> 'fas fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize,'tour_travel_agent_author_icon',array(
		'label'	=> __('Add Post Author Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_blog_post',
		'setting'	=> 'tour_travel_agent_author_icon',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('tour_travel_agent_comment_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_comment_hide',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Post Comments','tour-travel-agent'),
       'section' => 'tour_travel_agent_blog_post'
    ));

    $wp_customize->add_setting('tour_travel_agent_comment_icon',array(
		'default'	=> 'fa fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize,'tour_travel_agent_comment_icon',array(
		'label'	=> __('Add Post Comment Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_blog_post',
		'setting'	=> 'tour_travel_agent_comment_icon',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('tour_travel_agent_time_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_time_hide',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Post Time','tour-travel-agent'),
       'section' => 'tour_travel_agent_blog_post'
    ));

    $wp_customize->add_setting('tour_travel_agent_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize,'tour_travel_agent_time_icon',array(
		'label'	=> __('Add Post Time Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_blog_post',
		'setting'	=> 'tour_travel_agent_time_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('tour_travel_agent_show_hide_post_categories',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_show_hide_post_categories',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable post category','tour-travel-agent'),
       'section' => 'tour_travel_agent_blog_post'
    ));

    $wp_customize->add_setting('tour_travel_agent_feature_image_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_feature_image_hide',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Featured Image','tour-travel-agent'),
       'section' => 'tour_travel_agent_blog_post'
    ));

    $wp_customize->add_setting( 'tour_travel_agent_featured_image_border_radius', array(
		'default' => 0,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_float'
	) );
	$wp_customize->add_control( 'tour_travel_agent_featured_image_border_radius', array(
		'label' => __( 'Featured image border radius','tour-travel-agent' ),
		'section' => 'tour_travel_agent_blog_post',
		'type'  => 'number',
		'input_attrs' => array(
			'step' => 1,
			'min'  => 0,
			'max'  => 50,
		),
	) );

    $wp_customize->add_setting( 'tour_travel_agent_featured_image_box_shadow', array(
		'default' => 0,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_float'
	) );
	$wp_customize->add_control( 'tour_travel_agent_featured_image_box_shadow', array(
		'label' => __( 'Featured image box shadow','tour-travel-agent' ),
		'section' => 'tour_travel_agent_blog_post',
		'type'  => 'number',
		'input_attrs' => array(
			'step' => 1,
			'min'  => 0,
			'max'  => 50,
		),
	) );

	//Featured Image Dimension
	$wp_customize->add_setting('tour_travel_agent_blog_post_featured_image_dimension',array(
		'default' => 'default',
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_blog_post_featured_image_dimension',array(
		'type' => 'select',
		'label'	=> __('Featured Image Dimension','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_blog_post',
		'choices' => array(
		'default' => __('Default','tour-travel-agent'),
		'custom' => __('Custom Image Size','tour-travel-agent'),
	),
	));

	$wp_customize->add_setting('tour_travel_agent_blog_post_featured_image_custom_width',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_blog_post_featured_image_custom_width',array(
		'label'	=> __('Featured Image Custom Width','tour-travel-agent'),
		'description'	=> __('Enter a value in pixels. Example:20px','tour-travel-agent'),
		'input_attrs' => array(
    	'placeholder' => __( '10px', 'tour-travel-agent' ),),
		'section'=> 'tour_travel_agent_blog_post',
		'type'=> 'text',
		'active_callback' => 'tour_travel_agent_blog_post_featured_image_dimension'
	));

	$wp_customize->add_setting('tour_travel_agent_blog_post_featured_image_custom_height',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_blog_post_featured_image_custom_height',array(
		'label'	=> __('Featured Image Custom Height','tour-travel-agent'),
		'description'	=> __('Enter a value in pixels. Example:20px','tour-travel-agent'),
		'input_attrs' => array(
    	'placeholder' => __( '10px', 'tour-travel-agent' ),),
		'section'=> 'tour_travel_agent_blog_post',
		'type'=> 'text',
		'active_callback' => 'tour_travel_agent_blog_post_featured_image_dimension'
	));

	$wp_customize->add_setting('tour_travel_agent_metabox_seperator',array(
       'default' => '|',
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_metabox_seperator',array(
       'type' => 'text',
       'label' => __('Metabox Seperator','tour-travel-agent'),
       'description' => __('Ex: "/", "|", "-", ...','tour-travel-agent'),
       'section' => 'tour_travel_agent_blog_post'
    ));

    $wp_customize->add_setting('tour_travel_agent_post_content',array(
    	'default' => 'Excerpt Content',
        'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_post_content',array(
        'type' => 'radio',
        'label' => __('Post Content Type','tour-travel-agent'),
        'section' => 'tour_travel_agent_blog_post',
        'choices' => array(
            'No Content' => __('No Content','tour-travel-agent'),
            'Full Content' => __('Full Content','tour-travel-agent'),
            'Excerpt Content' => __('Excerpt Content','tour-travel-agent'),
        ),
	) );

    $wp_customize->add_setting( 'tour_travel_agent_post_excerpt_length', array(
		'default'              => 20,
		'sanitize_callback'	=> 'absint'
	) );
	$wp_customize->add_control( 'tour_travel_agent_post_excerpt_length', array(
		'label' => esc_html__( 'Post Excerpt Length','tour-travel-agent' ),
		'section'  => 'tour_travel_agent_blog_post',
		'type'  => 'number',
		'settings' => 'tour_travel_agent_post_excerpt_length',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting( 'tour_travel_agent_button_excerpt_suffix', array(
		'default'   => __('[...]','tour-travel-agent' ),
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'tour_travel_agent_button_excerpt_suffix', array(
		'label'       => esc_html__( 'Excerpt Suffix','tour-travel-agent' ),
		'section'     => 'tour_travel_agent_blog_post',
		'type'        => 'text',
		'settings' => 'tour_travel_agent_button_excerpt_suffix'
	) );

    $wp_customize->add_setting( 'tour_travel_agent_post_blocks', array(
        'default'			=> 'Without box',
        'sanitize_callback'	=> 'tour_travel_agent_sanitize_choices'
    ));
    $wp_customize->add_control( 'tour_travel_agent_post_blocks', array(
        'section' => 'tour_travel_agent_blog_post',
        'type' => 'select',
        'label' => __( 'Post blocks', 'tour-travel-agent' ),
        'choices' => array(
            'Within box'  => __( 'Within box', 'tour-travel-agent' ),
            'Without box' => __( 'Without box', 'tour-travel-agent' ),
    )));

    $wp_customize->add_setting('tour_travel_agent_navigation_hide',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_navigation_hide',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Post Navigation','tour-travel-agent'),
       'section' => 'tour_travel_agent_blog_post'
    ));

    $wp_customize->add_setting( 'tour_travel_agent_post_navigation_type', array(
        'default'			=> 'numbers',
        'sanitize_callback'	=> 'tour_travel_agent_sanitize_choices'
    ));
    $wp_customize->add_control( 'tour_travel_agent_post_navigation_type', array(
        'section' => 'tour_travel_agent_blog_post',
        'type' => 'select',
        'label' => __( 'Post Navigation Type', 'tour-travel-agent' ),
        'choices' => array(
            'numbers'  => __( 'Number', 'tour-travel-agent' ),
            'next-prev' => __( 'Next/Prev Button', 'tour-travel-agent' ),
    )));

    $wp_customize->add_setting( 'tour_travel_agent_post_navigation_position', array(
        'default'			=> 'bottom',
        'sanitize_callback'	=> 'tour_travel_agent_sanitize_choices'
    ));
    $wp_customize->add_control( 'tour_travel_agent_post_navigation_position', array(
        'section' => 'tour_travel_agent_blog_post',
        'type' => 'select',
        'label' => __( 'Post Navigation Position', 'tour-travel-agent' ),
        'choices' => array(
            'top'  => __( 'Top', 'tour-travel-agent' ),
            'bottom' => __( 'Bottom', 'tour-travel-agent' ),
            'both' => __( 'Both', 'tour-travel-agent' ),
    )));

	// Button Settings
	$wp_customize->add_section( 'tour_travel_agent_button_option', array(
		'title' => __('Post Button Settings','tour-travel-agent'),
		'panel' => 'tour_travel_agent_panel_id',
	));

	$wp_customize->add_setting( 'tour_travel_agent_post_button_text', array(
		'default'   => esc_html__('READ MORE','tour-travel-agent' ),
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'tour_travel_agent_post_button_text', array(
		'label' => esc_html__('Post Button Text','tour-travel-agent' ),
		'section'     => 'tour_travel_agent_button_option',
		'type'        => 'text',
		'settings'    => 'tour_travel_agent_post_button_text'
	) );

	$wp_customize->add_setting( 'tour_travel_agent_button_font_size', array(
		'default'           => 14,
		'sanitize_callback' => 'tour_travel_agent_sanitize_float',
	) );
	$wp_customize->add_control( 'tour_travel_agent_button_font_size', array(
		'label' => __( 'Button Font Size','tour-travel-agent' ),
		'section'     => 'tour_travel_agent_button_option',
		'type'        => 'number',
		'input_attrs' => array(
			'step' => 1,
			'min' => 0,
			'max' => 50,
		),
	) );

	// text trasform
	$wp_customize->add_setting('tour_travel_agent_button_text_transform',array(
		'default'=> 'Capitalize',
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_button_text_transform',array(
		'type' => 'radio',
		'label'	=> __('Button Text Transform','tour-travel-agent'),
		'choices' => array(
            'Uppercase' => __('Uppercase','tour-travel-agent'),
            'Capitalize' => __('Capitalize','tour-travel-agent'),
            'Lowercase' => __('Lowercase','tour-travel-agent'),
        ),
		'section'=> 'tour_travel_agent_button_option',
	));

	$wp_customize->add_setting('tour_travel_agent_top_button_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control('tour_travel_agent_top_button_padding',array(
		'label'	=> __('Top Bottom Button Padding','tour-travel-agent'),
		'input_attrs' => array(
            'step' => 1,
			'min'  => 0,
			'max'  => 50,
        ),
		'section'=> 'tour_travel_agent_button_option',
		'type'=> 'number',
	));

	$wp_customize->add_setting('tour_travel_agent_left_button_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control('tour_travel_agent_left_button_padding',array(
		'label'	=> __('Left Right Button Padding','tour-travel-agent'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'tour_travel_agent_button_option',
		'type'=> 'number',
	));

	$wp_customize->add_setting( 'tour_travel_agent_button_border_radius', array(
		'default'=> '0',
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_float'
	) );
	$wp_customize->add_control('tour_travel_agent_button_border_radius', array(
        'label'  => __('Button Border Radius','tour-travel-agent'),
        'type'=> 'number',
        'section'  => 'tour_travel_agent_button_option',
        'input_attrs' => array(
        	'step' => 1,
            'min' => 0,
            'max' => 50,
        ),
    ));

	$wp_customize->add_setting('tour_travel_agent_btn_font_weight',array(
		'default'=> '',
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_choices',
	));
	$wp_customize->add_control('tour_travel_agent_btn_font_weight',array(
		'label'	=> __('Button Font Weight','tour-travel-agent'),
		'section'=> 'tour_travel_agent_button_option',
		'type' => 'select',
		'choices' => array(
            '100' => __('100','tour-travel-agent'),
            '200' => __('200','tour-travel-agent'),
            '300' => __('300','tour-travel-agent'),
            '400' => __('400','tour-travel-agent'),
            '500' => __('500','tour-travel-agent'),
            '600' => __('600','tour-travel-agent'),
            '700' => __('700','tour-travel-agent'),
            '800' => __('800','tour-travel-agent'),
            '900' => __('900','tour-travel-agent'),
        ),
	));	

	// button letter spacing
	$wp_customize->add_setting( 'tour_travel_agent_button_letter_spacing',array(
		'default' => '',
		'sanitize_callback' => 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control('tour_travel_agent_button_letter_spacing', array(
		'label'  =>  esc_html__('Button Letter Spacing','tour-travel-agent'),
		'type'=> 'number',
		'section'  => 'tour_travel_agent_button_option',
		'input_attrs' => array(
			'step' => 1,
            'min' => 0,
            'max' => 50,
		)
 	));		

	//Button Shape
	$wp_customize->add_setting('tour_travel_agent_btn_shape',array(
		'default'=> 'Round',
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_choices',
	));
	$wp_customize->add_control('tour_travel_agent_btn_shape',array(
		'label'	=> __('Button Shape','tour-travel-agent'),
		'section'=> 'tour_travel_agent_button_option',
		'type' => 'select',
		'choices' => array(
			'Square' => __('Square','tour-travel-agent'),
			'Round' => __('Round','tour-travel-agent'),
			'Pill' => __('Pill','tour-travel-agent'),
		),
	));	

	// Button Hover Effect
	$wp_customize->add_setting('tour_travel_agent_button_hover_effect',array(
		'default' => '',
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_button_hover_effect', array(
		'label' => __( 'Button Hover Effect', 'tour-travel-agent' ),
		'section' => 'tour_travel_agent_button_option',
		'type' => 'select',
		'choices' => array(
			'pulse'     => __( 'Pulse', 'tour-travel-agent' ),
			'rubberBand'=> __( 'RubberBand', 'tour-travel-agent' ),
			'swing'     => __( 'Swing', 'tour-travel-agent' ),
			'tada'      => __( 'Tada', 'tour-travel-agent' ),
			'jello'     => __( 'Jello', 'tour-travel-agent' ),
			'disable'   => __( 'Disabled', 'tour-travel-agent' )
		),
	));

    //Single Post Settings
	$wp_customize->add_section('tour_travel_agent_single_post',array(
		'title'	=> __('Single Post Settings','tour-travel-agent'),
		'panel' => 'tour_travel_agent_panel_id',
	));	

	$wp_customize->add_setting( 'tour_travel_agent_single_post_breadcrumb',array(
		'default' => true,
		'transport' => 'refresh',
      	'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ) );
    $wp_customize->add_control('tour_travel_agent_single_post_breadcrumb',array(
    	'type' => 'checkbox',
        'label' => __( 'Show / Hide Single Post Breadcrumb','tour-travel-agent' ),
        'section' => 'tour_travel_agent_single_post'
    ));

	$wp_customize->add_setting('tour_travel_agent_single_post_date',array(
       'default' => 'true',
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_single_post_date',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Date','tour-travel-agent'),
       'section' => 'tour_travel_agent_single_post'
    ));

    $wp_customize->add_setting('tour_travel_agent_single_postdate_icon',array(
		'default'	=> 'fas fa-calendar-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize,'tour_travel_agent_single_postdate_icon',array(
		'label'	=> __('Add Sigle Post Date Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_single_post',
		'setting'	=> 'tour_travel_agent_single_postdate_icon',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('tour_travel_agent_single_post_author',array(
       'default' => 'true',
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_single_post_author',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Author','tour-travel-agent'),
       'section' => 'tour_travel_agent_single_post'
    ));

    $wp_customize->add_setting('tour_travel_agent_single_postauthor_icon',array(
		'default'	=> 'fas fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize,'tour_travel_agent_single_postauthor_icon',array(
		'label'	=> __('Add Sigle Post Author Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_single_post',
		'setting'	=> 'tour_travel_agent_single_postauthor_icon',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('tour_travel_agent_single_post_comment_no',array(
       'default' => 'true',
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_single_post_comment_no',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Comment Number','tour-travel-agent'),
       'section' => 'tour_travel_agent_single_post'
    ));

    $wp_customize->add_setting('tour_travel_agent_single_postcomment_icon',array(
		'default'	=> 'fa fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize,'tour_travel_agent_single_postcomment_icon',array(
		'label'	=> __('Add Sigle Post Comment Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_single_post',
		'setting'	=> 'tour_travel_agent_single_postcomment_icon',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('tour_travel_agent_single_post_time',array(
       'default' => 'true',
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_single_post_time',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Time','tour-travel-agent'),
       'section' => 'tour_travel_agent_single_post'
    ));

    $wp_customize->add_setting('tour_travel_agent_single_posttime_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize,'tour_travel_agent_single_posttime_icon',array(
		'label'	=> __('Add Sigle Post Time Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_single_post',
		'setting'	=> 'tour_travel_agent_single_posttime_icon',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('tour_travel_agent_feature_image',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_feature_image',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Feature Image','tour-travel-agent'),
       'section' => 'tour_travel_agent_single_post'
    ));

    $wp_customize->add_setting( 'tour_travel_agent_single_post_img_border_radius', array(
		'default'=> 0,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_float',
	) );
	$wp_customize->add_control( 'tour_travel_agent_single_post_img_border_radius', array(
		'label'       => esc_html__( 'Single Post Image Border Radius','tour-travel-agent' ),
		'section'     => 'tour_travel_agent_single_post',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 100,
		),
	) );

	$wp_customize->add_setting( 'tour_travel_agent_single_post_img_box_shadow',array(
		'default' => 0,
		'sanitize_callback'    => 'tour_travel_agent_sanitize_float',
	));
	$wp_customize->add_control('tour_travel_agent_single_post_img_box_shadow',array(
		'label' => esc_html__( 'Single Post Image Shadow','tour-travel-agent' ),
		'section' => 'tour_travel_agent_single_post',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type' => 'number'
	));

	$wp_customize->add_setting('tour_travel_agent_single_post_featured_image_dimension',array(
		'default' => 'default',
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_choices'
	));
	
	$wp_customize->add_control('tour_travel_agent_single_post_featured_image_dimension',array(
		'type' => 'select',
		'label'	=> __('Single Post Image Dimension','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_single_post',
		'choices' => array(
		'default' => __('Default','tour-travel-agent'),
		'custom' => __('Custom Image Size','tour-travel-agent'),
		),
	));

	$wp_customize->add_setting('tour_travel_agent_single_post_featured_image_custom_width',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_single_post_featured_image_custom_width',array(
		'label'	=> __('Custom Width','tour-travel-agent'),
		'description'	=> __('Enter a value in pixels. Example:20px','tour-travel-agent'),
		'input_attrs' => array(
    	'placeholder' => __( '10px', 'tour-travel-agent' ),),
		'section'=> 'tour_travel_agent_single_post',
		'type'=> 'text',
		'active_callback' => 'tour_travel_agent_single_post_featured_image_dimension'
	));

	$wp_customize->add_setting('tour_travel_agent_single_post_featured_image_custom_height',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_single_post_featured_image_custom_height',array(
		'label'	=> __('Custom Height','tour-travel-agent'),
		'description'	=> __('Enter a value in pixels. Example:20px','tour-travel-agent'),
		'input_attrs' => array(
    	'placeholder' => __( '10px', 'tour-travel-agent' ),),
		'section'=> 'tour_travel_agent_single_post',
		'type'=> 'text',
		'active_callback' => 'tour_travel_agent_single_post_featured_image_dimension'
	));

	$wp_customize->add_setting('tour_travel_agent_single_post_metabox_seperator',array(
       'default' => '|',
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_single_post_metabox_seperator',array(
       'type' => 'text',
       'label' => __('Metabox Seperator','tour-travel-agent'),
       'description' => __('Ex: "/", "|", "-", ...','tour-travel-agent'),
       'section' => 'tour_travel_agent_single_post'
    ));

	 $wp_customize->add_setting('tour_travel_agent_show_hide_single_post_categories',array(
		'default' => true,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
 	));
 	$wp_customize->add_control('tour_travel_agent_show_hide_single_post_categories',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Single Post Categories','tour-travel-agent'),
		'section' => 'tour_travel_agent_single_post'
	));

	$wp_customize->add_setting('tour_travel_agent_category_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'tour_travel_agent_category_color', array(
		'label'    => __('Category Color', 'tour-travel-agent'),
		'section'  => 'tour_travel_agent_single_post',
	)));

	$wp_customize->add_setting('tour_travel_agent_category_background_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'tour_travel_agent_category_background_color', array(
		'label'    => __('Category Background Color', 'tour-travel-agent'),
		'section'  => 'tour_travel_agent_single_post',
	)));

    $wp_customize->add_setting('tour_travel_agent_tags',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_tags',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Tags','tour-travel-agent'),
       'section' => 'tour_travel_agent_single_post'
    ));

    $wp_customize->add_setting('tour_travel_agent_comment',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_comment',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Comment','tour-travel-agent'),
       'section' => 'tour_travel_agent_single_post'
    ));

    $wp_customize->add_setting( 'tour_travel_agent_comment_width', array(
		'default' => 100,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_float'
	) );
	$wp_customize->add_control( 'tour_travel_agent_comment_width', array(
		'label' => __( 'Comment Textarea Width', 'tour-travel-agent'),
		'section' => 'tour_travel_agent_single_post',
		'type' => 'number',
		'settings' => 'tour_travel_agent_comment_width',
		'input_attrs' => array(
			'step' => 1,
			'min' => 0,
			'max' => 100,
		),
	) );

    $wp_customize->add_setting('tour_travel_agent_comment_title',array(
       'default' => __('Leave a Reply','tour-travel-agent'),
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_comment_title',array(
       'type' => 'text',
       'label' => __('Comment form Title','tour-travel-agent'),
       'section' => 'tour_travel_agent_single_post'
    ));

    $wp_customize->add_setting('tour_travel_agent_comment_submit_text',array(
       'default' => __('Post Comment','tour-travel-agent'),
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_comment_submit_text',array(
       'type' => 'text',
       'label' => __('Comment Button Text','tour-travel-agent'),
       'section' => 'tour_travel_agent_single_post'
    ));

    $wp_customize->add_setting('tour_travel_agent_nav_links',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_nav_links',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Nav Links','tour-travel-agent'),
       'section' => 'tour_travel_agent_single_post'
    ));

    $wp_customize->add_setting('tour_travel_agent_prev_text',array(
       'default' => '',
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_prev_text',array(
       'type' => 'text',
       'label' => __('Previous Navigation Text','tour-travel-agent'),
       'section' => 'tour_travel_agent_single_post'
    ));

    $wp_customize->add_setting('tour_travel_agent_next_text',array(
       'default' => '',
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_next_text',array(
       'type' => 'text',
       'label' => __('Next Navigation Text','tour-travel-agent'),
       'section' => 'tour_travel_agent_single_post'
    ));
    
	// Related posts
	$wp_customize->add_section('tour_travel_agent_related_post',array(
		'title'	=> __('Related Post Settings','tour-travel-agent'),
		'panel' => 'tour_travel_agent_panel_id',
	));	

    $wp_customize->add_setting('tour_travel_agent_related_posts',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_related_posts',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Related Posts','tour-travel-agent'),
       'section' => 'tour_travel_agent_related_post'
    ));
    
	$wp_customize->add_setting('tour_travel_agent_related_post_image_hide',array(
		'default' => true,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	));
	$wp_customize->add_control('tour_travel_agent_related_post_image_hide',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Related Post Featured Image','tour-travel-agent'),
		'section' => 'tour_travel_agent_related_post'
	));

    $wp_customize->add_setting('tour_travel_agent_related_posts_title',array(
       'default' => '',
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_related_posts_title',array(
       'type' => 'text',
       'label' => __('Related Posts Title','tour-travel-agent'),
       'section' => 'tour_travel_agent_related_post'
    ));

	$wp_customize->add_setting('tour_travel_agent_related_metafields_date',array(
		'default' => true,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	));
	$wp_customize->add_control('tour_travel_agent_related_metafields_date',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Date','tour-travel-agent'),
		'section' => 'tour_travel_agent_related_post'
	));

    $wp_customize->add_setting('tour_travel_agent_related_metafields_author',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_related_metafields_author',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Author','tour-travel-agent'),
       'section' => 'tour_travel_agent_related_post'
    ));

    $wp_customize->add_setting('tour_travel_agent_related_metafields_comment',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_related_metafields_comment',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Comments','tour-travel-agent'),
       'section' => 'tour_travel_agent_related_post'
    ));

    $wp_customize->add_setting('tour_travel_agent_related_metafields_time',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_related_metafields_time',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Time','tour-travel-agent'),
       'section' => 'tour_travel_agent_related_post'
    ));

	$wp_customize->add_setting('tour_travel_agent_related_post_metabox_seperator',array(
       'default' => '|',
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_related_post_metabox_seperator',array(
       'type' => 'text',
       'label' => __('Metabox Seperator','tour-travel-agent'),
       'description' => __('Ex: "/", "|", "-", ...','tour-travel-agent'),
       'section' => 'tour_travel_agent_related_post'
    ));

    $wp_customize->add_setting( 'tour_travel_agent_related_post_count', array(
		'default' => 3,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_float'
	) );
	$wp_customize->add_control( 'tour_travel_agent_related_post_count', array(
		'label' => esc_html__( 'Related Posts Count','tour-travel-agent' ),
		'section' => 'tour_travel_agent_related_post',
		'type' => 'number',
		'settings' => 'tour_travel_agent_related_post_count',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 6,
		),
	) );

    $wp_customize->add_setting( 'tour_travel_agent_post_order', array(
        'default' => 'categories',
        'sanitize_callback'	=> 'tour_travel_agent_sanitize_choices'
    ));
    $wp_customize->add_control( 'tour_travel_agent_post_order', array(
        'section' => 'tour_travel_agent_related_post',
        'type' => 'radio',
        'label' => __( 'Related Posts Order By', 'tour-travel-agent' ),
        'choices' => array(
            'categories' => __('Categories', 'tour-travel-agent'),
            'tags' => __( 'Tags', 'tour-travel-agent' ),
    )));

    $wp_customize->add_setting( 'tour_travel_agent_related_post_excerpt_number',array(
	    'default' => 20,
	     'sanitize_callback'    => 'absint',
	));
	$wp_customize->add_control('tour_travel_agent_related_post_excerpt_number',  array(
	    'label' => esc_html__( 'Related Posts Content Limit','tour-travel-agent' ),
	    'section' => 'tour_travel_agent_related_post',
	    'type'    => 'number',
	    'settings' => 'tour_travel_agent_related_post_excerpt_number',
	    'input_attrs' => array(
	    'min' => 0,
	    'max' => 50,
	    'step' => 1,
	),
	));

	$wp_customize->add_setting( 'tour_travel_agent_related_post_excerpt_suffix', array(
		'default'   => __('[...]','tour-travel-agent' ),
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'tour_travel_agent_related_post_excerpt_suffix', array(
		'label'       => esc_html__( 'Excerpt Suffix','tour-travel-agent' ),
		'section'     => 'tour_travel_agent_related_post',
		'type'        => 'text',
		'settings' => 'tour_travel_agent_related_post_excerpt_suffix'
	) );

	//Grid Post Settings
	$wp_customize->add_section('tour_travel_agent_grid_post',array(
		'title'	=> __('Grid Post Settings','tour-travel-agent'),
		'panel' => 'tour_travel_agent_panel_id',
	));	

	$wp_customize->add_setting('tour_travel_agent_grid_columns', array(
		'default'           => '3',
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices',
		'transport'         => 'refresh',
	));
	$wp_customize->add_control('tour_travel_agent_grid_columns', array(
		'label'    => __('Grid Columns', 'tour-travel-agent'),
		'section'  => 'tour_travel_agent_grid_post', 
		'type'     => 'select',
		'choices'  => array(
			'3' => __('3 Columns', 'tour-travel-agent'),
			'4' => __('4 Columns', 'tour-travel-agent'),
		),
	));

	$wp_customize->add_setting('tour_travel_agent_grid_post_image_hide',array(
		'default' => true,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	));
	$wp_customize->add_control('tour_travel_agent_grid_post_image_hide',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Grid Post Featured Image','tour-travel-agent'),
		'section' => 'tour_travel_agent_grid_post'
	));

	$wp_customize->add_setting('tour_travel_agent_grid_post_date_hide',array(
		'default' => true,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	));
	$wp_customize->add_control('tour_travel_agent_grid_post_date_hide',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Post Date','tour-travel-agent'),
		'section' => 'tour_travel_agent_grid_post'
	));

	$wp_customize->add_setting('tour_travel_agent_grid_post_date_icon',array(
		'default'	=> 'fas fa-calendar-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize,'tour_travel_agent_grid_post_date_icon',array(
		'label'	=> __('Add Grid Post Date Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_grid_post',
		'setting'	=> 'tour_travel_agent_grid_post_date_icon',
		'type'		=> 'icon'
	)));
 
	$wp_customize->add_setting('tour_travel_agent_grid_post_author_hide',array(
		'default' => true,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	));
	$wp_customize->add_control('tour_travel_agent_grid_post_author_hide',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Post Author','tour-travel-agent'),
		'section' => 'tour_travel_agent_grid_post'
	));

	$wp_customize->add_setting('tour_travel_agent_grid_post_author_icon',array(
		'default'	=> 'fas fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize,'tour_travel_agent_grid_post_author_icon',array(
		'label'	=> __('Add Grid Post Author Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_grid_post',
		'setting'	=> 'tour_travel_agent_grid_post_author_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('tour_travel_agent_grid_post_comment_hide',array(
		'default' => true,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	));
	$wp_customize->add_control('tour_travel_agent_grid_post_comment_hide',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Post Comments','tour-travel-agent'),
		'section' => 'tour_travel_agent_grid_post'
	));

	$wp_customize->add_setting('tour_travel_agent_grid_post_comment_icon',array(
		'default'	=> 'fa fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize,'tour_travel_agent_grid_post_comment_icon',array(
		'label'	=> __('Add Grid Post Comment Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_grid_post',
		'setting'	=> 'tour_travel_agent_grid_post_comment_icon',
		'type'		=> 'icon'
	)));
 
	$wp_customize->add_setting('tour_travel_agent_grid_post_time_hide',array(
		'default' => true,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	));
	$wp_customize->add_control('tour_travel_agent_grid_post_time_hide',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Post Time','tour-travel-agent'),
		'section' => 'tour_travel_agent_grid_post'
	)); 
	 
    $wp_customize->add_setting('tour_travel_agent_grid_post_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize,'tour_travel_agent_grid_post_time_icon',array(
		'label'	=> __('Add Grid Post Time Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_grid_post',
		'setting'	=> 'tour_travel_agent_grid_post_time_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('tour_travel_agent_grid_post_metabox_seperator',array(
		'default' => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_grid_post_metabox_seperator',array(
		'type' => 'text',
		'label' => __('Metabox Seperator','tour-travel-agent'),
		'description' => __('Ex: "/", "|", "-", ...','tour-travel-agent'),
		'section' => 'tour_travel_agent_grid_post'
	));

	$wp_customize->add_setting('tour_travel_agent_grid_post_content',array(
		'default' => 'Excerpt Content',
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_grid_post_content',array(
		'type' => 'radio',
		'label' => __('Grid Post Content Type','tour-travel-agent'),
		'section' => 'tour_travel_agent_grid_post',
		'choices' => array(
			'No Content' => __('No Content','tour-travel-agent'),
			'Full Content' => __('Full Content','tour-travel-agent'),
			'Excerpt Content' => __('Excerpt Content','tour-travel-agent'),
		),
	) );

	$wp_customize->add_setting( 'tour_travel_agent_grid_post_excerpt_length', array(
		'default'              => 20,
		'sanitize_callback'	=> 'absint'
	) );
	$wp_customize->add_control( 'tour_travel_agent_grid_post_excerpt_length', array(
		'label' => esc_html__( 'Grid Post Excerpt Length','tour-travel-agent' ),
		'section'  => 'tour_travel_agent_grid_post',
		'type'  => 'number',
		'settings' => 'tour_travel_agent_grid_post_excerpt_length',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 50,
		),
		'active_callback' => 'tour_travel_agent_grid_excerpt_enabled'
	) );

	$wp_customize->add_setting( 'tour_travel_agent_grid_post_button_excerpt_suffix', array(
		'default'   => __('[...]','tour-travel-agent' ),
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'tour_travel_agent_grid_post_button_excerpt_suffix', array(
		'label'       => esc_html__( 'Grid Post Excerpt Suffix','tour-travel-agent' ),
		'section'     => 'tour_travel_agent_grid_post',
		'type'        => 'text',
		'settings' => 'tour_travel_agent_grid_post_button_excerpt_suffix',
		'active_callback' => 'tour_travel_agent_grid_excerpt_enabled'
	) );

	$wp_customize->add_setting( 'tour_travel_agent_grid_post_blocks', array(
		'default'			=> 'Without box',
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control( 'tour_travel_agent_grid_post_blocks', array(
		'section' => 'tour_travel_agent_grid_post',
		'type' => 'select',
		'label' => __( 'Post blocks', 'tour-travel-agent' ),
		'choices' => array(
			'Within box'  => __( 'Within box', 'tour-travel-agent' ),
			'Without box' => __( 'Without box', 'tour-travel-agent' ),
	)));

	$wp_customize->add_setting( 'tour_travel_agent_grid_post_featured_image_border_radius', array(
		'default' => 0,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control( 'tour_travel_agent_grid_post_featured_image_border_radius', array(
		'label' => __( 'Featured image border radius','tour-travel-agent' ),
		'section' => 'tour_travel_agent_grid_post',
		'type'  => 'number',
		'input_attrs' => array(
			'step' => 1,
			'min'  => 0,
			'max'  => 50,
		),
	));

    //404 page settings
	$wp_customize->add_section('tour_travel_agent_404_page',array(
		'title'	=> __('404 & No Result Page Settings','tour-travel-agent'),
		'priority'	=> null,
		'panel' => 'tour_travel_agent_panel_id',
	));

	$wp_customize->add_setting('tour_travel_agent_404_title',array(
       'default' => '',
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_404_title',array(
       'type' => 'text',
       'label' => __('404 Page Title','tour-travel-agent'),
       'section' => 'tour_travel_agent_404_page'
    ));

    $wp_customize->add_setting('tour_travel_agent_404_text',array(
       'default' => '',
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_404_text',array(
       'type' => 'text',
       'label' => __('404 Page Text','tour-travel-agent'),
       'section' => 'tour_travel_agent_404_page'
    ));

    $wp_customize->add_setting('tour_travel_agent_404_button_text',array(
       'default' => '',
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_404_button_text',array(
       'type' => 'text',
       'label' => __('404 Page Button Text','tour-travel-agent'),
       'section' => 'tour_travel_agent_404_page'
    ));

    $wp_customize->add_setting('tour_travel_agent_no_result_title',array(
       'default' => '',
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_no_result_title',array(
       'type' => 'text',
       'label' => __('No Result Page Title','tour-travel-agent'),
       'section' => 'tour_travel_agent_404_page'
    ));

    $wp_customize->add_setting('tour_travel_agent_no_result_text',array(
       'default' => '',
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_no_result_text',array(
       'type' => 'text',
       'label' => __('No Result Page Text','tour-travel-agent'),
       'section' => 'tour_travel_agent_404_page'
    ));

    $wp_customize->add_setting('tour_travel_agent_show_search_form',array(
        'default' => true,
        'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	));
	$wp_customize->add_control('tour_travel_agent_show_search_form',array(
     	'type' => 'checkbox',
      	'label' => __('Show/Hide Search Form','tour-travel-agent'),
      	'section' => 'tour_travel_agent_404_page',
	));

	//Footer
	
	$wp_customize->add_section('tour_travel_agent_footer_section',array(
		'title'	=> __('Footer Section','tour-travel-agent'),
		'priority'	=> null,
		'panel' => 'tour_travel_agent_panel_id',
	));

	$wp_customize->selective_refresh->add_partial(
		'tour_travel_agent_show_back_to_top',
		array(
			'selector'        => '.scrollup',
			'render_callback' => 'tour_travel_agent_customize_partial_tour_travel_agent_show_back_to_top',
		)
	);

	$wp_customize->add_setting('tour_travel_agent_show_back_to_top',array(
        'default' => 'true',
        'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	));
	$wp_customize->add_control('tour_travel_agent_show_back_to_top',array(
     	'type' => 'checkbox',
      	'label' => __('Show/Hide Back to Top Button','tour-travel-agent'),
      	'section' => 'tour_travel_agent_footer_section',
	));

	$wp_customize->add_setting('tour_travel_agent_back_to_top_icon',array(
		'default'	=> 'fas fa-arrow-up',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize, 'tour_travel_agent_back_to_top_icon',array(
		'label'	=> __('Back to Top Icon','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_footer_section',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('tour_travel_agent_scroll_icon_font_size',array(
		'default'=> 18,
		'sanitize_callback' => 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control('tour_travel_agent_scroll_icon_font_size',array(
		'label'	=> __('Back To Top Font Size','tour-travel-agent'),
		'section'=> 'tour_travel_agent_footer_section',
        'type'		=> 'number'
	));

	$wp_customize->add_setting('tour_travel_agent_scroll_icon_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'tour_travel_agent_scroll_icon_color', array(
		'label'    => __('Back To Top Icon Color', 'tour-travel-agent'),
		'section'  => 'tour_travel_agent_footer_section',
	)));

	$wp_customize->add_setting('tour_travel_agent_scroll_icon_hover_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'tour_travel_agent_scroll_icon_hover_color', array(
		'label'    => __('Back To Top Icon Hover Color', 'tour-travel-agent'),
		'section'  => 'tour_travel_agent_footer_section',
	)));	

	$wp_customize->add_setting('tour_travel_agent_back_to_top_text',array(
		'default'	=> __('Back To Top','tour-travel-agent'),
		'sanitize_callback'	=> 'sanitize_text_field',
	));	
	$wp_customize->add_control('tour_travel_agent_back_to_top_text',array(
		'label'	=> __('Back to Top Button Text','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_footer_section',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('tour_travel_agent_back_to_top_alignment',array(
        'default' => 'Right',
        'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_back_to_top_alignment',array(
        'type' => 'select',
        'label' => __('Back to Top Button Alignment','tour-travel-agent'),
        'section' => 'tour_travel_agent_footer_section',
        'choices' => array(
            'Left' => __('Left','tour-travel-agent'),
            'Right' => __('Right','tour-travel-agent'),
            'Center' => __('Center','tour-travel-agent'),
        ),
	) );

	$wp_customize->add_setting('tour_travel_agent_scroll_text_transform',array(
		'default'=> 'Capitalize',
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_scroll_text_transform',array(
		'type' => 'radio',
		'label'	=> __('Back to Top Text Transform','tour-travel-agent'),
		'choices' => array(
            'Uppercase' => __('Uppercase','tour-travel-agent'),
            'Capitalize' => __('Capitalize','tour-travel-agent'),
            'Lowercase' => __('Lowercase','tour-travel-agent'),
        ),
		'section'=> 'tour_travel_agent_footer_section',
	));	

	$wp_customize->add_setting( 'tour_travel_agent_footer_hide_show',array(
      'default' => 'true',
      'sanitize_callback' => 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_footer_hide_show',array(
    	'type' => 'checkbox',
      'label' => esc_html__( 'Show / Hide Footer','tour-travel-agent' ),
      'section' => 'tour_travel_agent_footer_section'
    ));

	$wp_customize->add_setting('tour_travel_agent_footer_background_color', array(
		'default'           => '#000',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'tour_travel_agent_footer_background_color', array(
		'label'    => __('Footer Background Color', 'tour-travel-agent'),
		'section'  => 'tour_travel_agent_footer_section',
	)));

	$wp_customize->add_setting('tour_travel_agent_footer_background_img',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'tour_travel_agent_footer_background_img',array(
        'label' => __('Footer Background Image','tour-travel-agent'),
        'section' => 'tour_travel_agent_footer_section'
	)));

	$wp_customize->add_setting('tour_travel_agent_footer_img_position',array(
		'default' => 'center center',
		'transport' => 'refresh',
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	  ));
	  $wp_customize->add_control('tour_travel_agent_footer_img_position',array(
		  'type' => 'select',
		  'label' => __('Footer Image Position','tour-travel-agent'),
		  'section' => 'tour_travel_agent_footer_section',
		  'choices' 	=> array(
			  'left top' 		=> esc_html__( 'Top Left', 'tour-travel-agent' ),
			  'center top'   => esc_html__( 'Top', 'tour-travel-agent' ),
			  'right top'   => esc_html__( 'Top Right', 'tour-travel-agent' ),
			  'left center'   => esc_html__( 'Left', 'tour-travel-agent' ),
			  'center center'   => esc_html__( 'Center', 'tour-travel-agent' ),
			  'right center'   => esc_html__( 'Right', 'tour-travel-agent' ),
			  'left bottom'   => esc_html__( 'Bottom Left', 'tour-travel-agent' ),
			  'center bottom'   => esc_html__( 'Bottom', 'tour-travel-agent' ),
			  'right bottom'   => esc_html__( 'Bottom Right', 'tour-travel-agent' ),
		  ),
	  ));
  
	$wp_customize->add_setting('tour_travel_agent_img_footer',array(
	  'default'=> 'scroll',
	  'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_img_footer',array(
	  'type' => 'select',
	  'label' => __('Footer Background Attatchment','tour-travel-agent'),
	  'choices' => array(
		'fixed' => __('fixed','tour-travel-agent'),
		'scroll' => __('scroll','tour-travel-agent'),
	  ),
	  'section'=> 'tour_travel_agent_footer_section',
	));

	$wp_customize->add_setting('tour_travel_agent_footer_widget_layout',array(
        'default'           => '4',
        'sanitize_callback' => 'tour_travel_agent_sanitize_choices',
    ));
    $wp_customize->add_control('tour_travel_agent_footer_widget_layout',array(
        'type' => 'radio',
        'label'  => __('Footer widget layout', 'tour-travel-agent'),
        'section'     => 'tour_travel_agent_footer_section',
        'description' => __('Select the number of widget areas you want in the footer. After that, go to Appearance > Widgets and add your widgets.', 'tour-travel-agent'),
        'choices' => array(
            '1'     => __('One', 'tour-travel-agent'),
            '2'     => __('Two', 'tour-travel-agent'),
            '3'     => __('Three', 'tour-travel-agent'),
            '4'     => __('Four', 'tour-travel-agent')
        ),
    ));

    // text trasform
	$wp_customize->add_setting('tour_travel_agent_footer_text_transform',array(
		'default'=> 'Capitalize',
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_footer_text_transform',array(
		'type' => 'radio',
		'label'	=> __('Heading Text Transform','tour-travel-agent'),
		'section'=> 'tour_travel_agent_footer_section',
		'choices' => array(
	      'Uppercase' => __('Uppercase','tour-travel-agent'),
	      'Capitalize' => __('Capitalize','tour-travel-agent'),
	      'Lowercase' => __('Lowercase','tour-travel-agent'),
    	),
	));

    $wp_customize->add_setting('tour_travel_agent_widgets_heading_fontsize',array(
		'default'	=> 22,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_float',
	));	
	$wp_customize->add_control('tour_travel_agent_widgets_heading_fontsize',array(
		'label'	=> __('Footer Widgets Heading Font Size','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_footer_section',
		'type'		=> 'number'
	));

	$wp_customize->add_setting('tour_travel_agent_widgets_heading_font_weight',array(
        'default' => '',
        'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
    ));
    $wp_customize->add_control('tour_travel_agent_widgets_heading_font_weight',array(
        'type' => 'select',
        'label' => __('Footer Widgets Heading Font Weight','tour-travel-agent'),
        'section' => 'tour_travel_agent_footer_section',
        'choices' => array(
            '100' => __('100','tour-travel-agent'),
            '200' => __('200','tour-travel-agent'),
            '300' => __('300','tour-travel-agent'),
            '400' => __('400','tour-travel-agent'),
            '500' => __('500','tour-travel-agent'),
            '600' => __('600','tour-travel-agent'),
            '700' => __('700','tour-travel-agent'),
            '800' => __('800','tour-travel-agent'),
            '900' => __('900','tour-travel-agent'),
        ),
	) );

	$wp_customize->add_setting('tour_travel_agent_button_footer_heading_letter_spacing',array(
		'default'=>'',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('tour_travel_agent_button_footer_heading_letter_spacing',array(
		'label'	=> __('Footer Widgets Heading Letter Spacing','tour-travel-agent'),
  		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
		'section'=> 'tour_travel_agent_footer_section',
	));

    $wp_customize->add_setting('tour_travel_agent_footer_widgets_heading',array(
    'default' => 'Left',
    'transport' => 'refresh',
    'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_footer_widgets_heading',array(
    'type' => 'select',
    'label' => __('Footer Widget Heading Alignment','tour-travel-agent'),
    'section' => 'tour_travel_agent_footer_section',
    'choices' => array(
    	'Left' => __('Left','tour-travel-agent'),
        'Center' => __('Center','tour-travel-agent'),
        'Right' => __('Right','tour-travel-agent')
      ),
	) );

	$wp_customize->add_setting('tour_travel_agent_footer_widgets_content',array(
    'default' => 'Left',
    'transport' => 'refresh',
    'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_footer_widgets_content',array(
    'type' => 'select',
    'label' => __('Footer Widget Content Alignment','tour-travel-agent'),
    'section' => 'tour_travel_agent_footer_section',
    'choices' => array(
    	'Left' => __('Left','tour-travel-agent'),
        'Center' => __('Center','tour-travel-agent'),
        'Right' => __('Right','tour-travel-agent')
        ),
	) );

    $wp_customize->add_setting( 'tour_travel_agent_copyright_hide_show',array(
      'default' => 'true',
      'sanitize_callback' => 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_copyright_hide_show',array(
    	'type' => 'checkbox',
      'label' => esc_html__( 'Show / Hide Copyright','tour-travel-agent' ),
      'section' => 'tour_travel_agent_footer_section'
    ));

    $wp_customize->add_setting('tour_travel_agent_copyright_alignment',array(
        'default' => 'Center',
        'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_copyright_alignment',array(
        'type' => 'select',
        'label' => __('Copyright Alignment','tour-travel-agent'),
        'section' => 'tour_travel_agent_footer_section',
        'choices' => array(
            'Left' => __('Left','tour-travel-agent'),
            'Right' => __('Right','tour-travel-agent'),
            'Center' => __('Center','tour-travel-agent'),
        ),
	) );

	$wp_customize->add_setting('tour_travel_agent_copyright_color', array(
		'default'           => '#fff',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'tour_travel_agent_copyright_color', array(
		'label'    => __('Copyright Color', 'tour-travel-agent'),
		'section'  => 'tour_travel_agent_footer_section',
	)));

	$wp_customize->add_setting('tour_travel_agent_copyright__hover_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'tour_travel_agent_copyright__hover_color', array(
		'label'    => __('Copyright Hover Color', 'tour-travel-agent'),
		'section'  => 'tour_travel_agent_footer_section',
	)));

	$wp_customize->add_setting('tour_travel_agent_copyright_fontsize',array(
		'default'	=> 16,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_float',
	));	
	$wp_customize->add_control('tour_travel_agent_copyright_fontsize',array(
		'label'	=> __('Copyright Font Size','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_footer_section',
		'type'		=> 'number'
	));

	$wp_customize->add_setting('tour_travel_agent_copyright_top_bottom_padding',array(
		'default'	=> 15,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_float',
	));	
	$wp_customize->add_control('tour_travel_agent_copyright_top_bottom_padding',array(
		'label'	=> __('Copyright Top Bottom Padding','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_footer_section',
		'type'		=> 'number'
	));

	// sticky copyright
	
	$wp_customize->add_setting( 'tour_travel_agent_copyright_sticky',array(
      	'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ) );
    $wp_customize->add_control('tour_travel_agent_copyright_sticky',array(
    	'type' => 'checkbox',
        'label' => __( 'Show / Hide Sticky Copyright','tour-travel-agent' ),
        'section' => 'tour_travel_agent_footer_section'
    ));

    $wp_customize->selective_refresh->add_partial(
		'tour_travel_agent_footer_copy',
		array(
			'selector'        => '#footer p',
			'render_callback' => 'tour_travel_agent_customize_partial_tour_travel_agent_footer_copy',
		)
	);
	
	$wp_customize->add_setting('tour_travel_agent_footer_copy',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field',
	));	
	$wp_customize->add_control('tour_travel_agent_footer_copy',array(
		'label'	=> __('Copyright Text','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_footer_section',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('tour_travel_agent_copyright_background_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'tour_travel_agent_copyright_background_color', array(
		'label'    => __('Copyright Background Color', 'tour-travel-agent'),
		'section'  => 'tour_travel_agent_footer_section',
	)));

	//Footer Social Icons
	$wp_customize->add_section('tour_travel_agent_social_icons_section',array(
		'title'	=> __('Footer Social Icons','tour-travel-agent'),
		'priority'	=> null,
		'panel' => 'tour_travel_agent_panel_id',
	));
	$wp_customize->selective_refresh->add_partial(
		'tour_travel_agent_facebook_url',
		array(
			'selector'        => '.social-media',
			'render_callback' => 'tour_travel_agent_customize_partial_tour_travel_agent_facebook_url',
		)
	);
	$wp_customize->add_setting('tour_travel_agent_show_footer_social_icon',array(
        'default' => true,
        'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	));
	$wp_customize->add_control('tour_travel_agent_show_footer_social_icon',array(
     	'type' => 'checkbox',
      	'label' => __('Show/Hide Social Icons','tour-travel-agent'),
      	'section' => 'tour_travel_agent_social_icons_section',
	));

	$wp_customize->add_setting('tour_travel_agent_footer_facebook_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('tour_travel_agent_footer_facebook_url',array(
		'label'	=> __('Add Facebook link','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_social_icons_section',
		'setting'	=> 'tour_travel_agent_footer_facebook_url',
		'type'	=> 'url'
	));

	$wp_customize->add_setting('tour_travel_agent_footer_facebook_icon',array(
		'default'	=> 'fab fa-facebook-f',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
		$wp_customize,'tour_travel_agent_footer_facebook_icon',array(
		'label'	=> __('Add Facebook Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_social_icons_section',
		'setting'	=> 'tour_travel_agent_footer_facebook_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('tour_travel_agent_footer_twitter_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('tour_travel_agent_footer_twitter_url',array(
		'label'	=> __('Add Twitter link','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_social_icons_section',
		'setting'	=> 'tour_travel_agent_footer_twitter_url',
		'type'	=> 'url'
	));

	$wp_customize->add_setting('tour_travel_agent_footer_twitter_icon',array(
		'default'	=> 'fab fa-twitter',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
		$wp_customize,'tour_travel_agent_footer_twitter_icon',array(
		'label'	=> __('Add Twitter Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_social_icons_section',
		'setting'	=> 'tour_travel_agent_footer_twitter_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('tour_travel_agent_footer_linkedin_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('tour_travel_agent_footer_linkedin_url',array(
		'label'	=> __('Add Linkedin URL','tour-travel-agent'),
		'section' => 'tour_travel_agent_social_icons_section',
		'type'	=> 'text'
	));

	$wp_customize->add_setting('tour_travel_agent_footer_linkedin_icon',array(
		'default'	=> 'fab fa-linkedin',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize,'tour_travel_agent_footer_linkedin_icon',array(
		'label'	=> __('Add Linkedin Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_social_icons_section',
		'setting'	=> 'tour_travel_agent_linkedin_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('tour_travel_agent_footer_instagram_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('tour_travel_agent_footer_instagram_url',array(
		'label'	=> __('Add Instagram link','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_social_icons_section',
		'setting'	=> 'tour_travel_agent_footer_instagram_url',
		'type'	=> 'url'
	));

	$wp_customize->add_setting('tour_travel_agent_footer_instagram_icon',array(
		'default'	=> 'fab fa-instagram',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
		$wp_customize,'tour_travel_agent_footer_instagram_icon',array(
		'label'	=> __('Add Instagram Icon','tour-travel-agent'),
		'transport' => 'refresh',
		'section'	=> 'tour_travel_agent_social_icons_section',
		'setting'	=> 'tour_travel_agent_footer_instagram_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting( 'tour_travel_agent_footer_icon_font_size', array(
		'default'           => '',
		'sanitize_callback' => 'tour_travel_agent_sanitize_float',
	) );
	$wp_customize->add_control( 'tour_travel_agent_footer_icon_font_size', array(
		'label' => __( 'Icon Font Size','tour-travel-agent' ),
		'section'     => 'tour_travel_agent_social_icons_section',
		'type'        => 'number',
		'input_attrs' => array(
			'step' => 1,
			'min' => 0,
			'max' => 50,
		),
	) );

	$wp_customize->add_setting('tour_travel_agent_footer_icon_alignment',array(
        'default' => 'Center',
        'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_footer_icon_alignment',array(
        'type' => 'select',
        'label' => __('Icon Alignment','tour-travel-agent'),
        'section' => 'tour_travel_agent_social_icons_section',
        'choices' => array(
            'Left' => __('Left','tour-travel-agent'),
            'Right' => __('Right','tour-travel-agent'),
            'Center' => __('Center','tour-travel-agent'),
        ),
	) );

	$wp_customize->add_setting( 'tour_travel_agent_footer_icon_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_footer_icon_color', array(
		'label' => __('Icon Color', 'tour-travel-agent'),
		'section' => 'tour_travel_agent_social_icons_section',
		'settings' => 'tour_travel_agent_footer_icon_color',
	)));	

	//Mobile Media Section
	$wp_customize->add_section( 'tour_travel_agent_mobile_media_options' , array(
    	'title'      => __( 'Mobile Media Options', 'tour-travel-agent' ),
		'priority'   => null,
		'panel' => 'tour_travel_agent_panel_id'
	) );

	$wp_customize->add_setting('tour_travel_agent_responsive_open_menu_icon',array(
		'default'	=> 'fas fa-bars',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize, 'tour_travel_agent_responsive_open_menu_icon',array(
		'label'	=> __('Open Menu Icon','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_mobile_media_options',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('tour_travel_agent_open_menu_label',array(
       'default' => __('Open Menu','tour-travel-agent'),
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_open_menu_label',array(
       'type' => 'text',
       'label' => __('Open Menu Label','tour-travel-agent'),
       'section' => 'tour_travel_agent_mobile_media_options'
    ));

	$wp_customize->add_setting( 'tour_travel_agent_menu_color_setting', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tour_travel_agent_menu_color_setting', array(
  		'label' => __('Menu Icon Color Option', 'tour-travel-agent'),
		'section' => 'tour_travel_agent_mobile_media_options',
		'settings' => 'tour_travel_agent_menu_color_setting',
  	)));

	$wp_customize->add_setting('tour_travel_agent_responsive_close_menu_icon',array(
		'default'	=> 'fas fa-times',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Tour_Travel_Agent_Icon_Changer(
        $wp_customize, 'tour_travel_agent_responsive_close_menu_icon',array(
		'label'	=> __('Close Menu Icon','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_mobile_media_options',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('tour_travel_agent_close_menu_label',array(
       'default' => __('Close Menu','tour-travel-agent'),
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('tour_travel_agent_close_menu_label',array(
       'type' => 'text',
       'label' => __('Close Menu Label','tour-travel-agent'),
       'section' => 'tour_travel_agent_mobile_media_options'
    ));

	$wp_customize->add_setting('tour_travel_agent_hide_topbar_responsive',array(
		'default' => false,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	));
	$wp_customize->add_control('tour_travel_agent_hide_topbar_responsive',array(
     	'type' => 'checkbox',
		'label' => __('Show / Hide Topbar','tour-travel-agent'),
		'section' => 'tour_travel_agent_mobile_media_options',
	));

	$wp_customize->add_setting('tour_travel_agent_slider_responsive',array(
        'default' => true,
        'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	));
	$wp_customize->add_control('tour_travel_agent_slider_responsive',array(
     	'type' => 'checkbox',
      	'label' => __('Show / Hide Slider','tour-travel-agent'),
      	'section' => 'tour_travel_agent_mobile_media_options',
	));

	$wp_customize->add_setting('tour_travel_agent_responsive_sticky_header',array(
        'default' => false,
        'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	));
	$wp_customize->add_control('tour_travel_agent_responsive_sticky_header',array(
     	'type' => 'checkbox',
      	'label' => __('Show / Hide Sticky Header','tour-travel-agent'),
      	'section' => 'tour_travel_agent_mobile_media_options',
	));

    $wp_customize->add_setting('tour_travel_agent_responsive_show_back_to_top',array(
        'default' => true,
        'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
	));
	$wp_customize->add_control('tour_travel_agent_responsive_show_back_to_top',array(
     	'type' => 'checkbox',
      	'label' => __('Show / Hide Back to Top Button','tour-travel-agent'),
      	'section' => 'tour_travel_agent_mobile_media_options',
	));

	$wp_customize->add_setting( 'tour_travel_agent_responsive_preloader_hide',array(
		'default' => false,
      	'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ) );
    $wp_customize->add_control('tour_travel_agent_responsive_preloader_hide',array(
    	'type' => 'checkbox',
        'label' => __( 'Show / Hide Preloader','tour-travel-agent' ),
        'section' => 'tour_travel_agent_mobile_media_options'
    ));

    $wp_customize->add_setting( 'tour_travel_agent_sidebar_hide_show',array(
      'default' => true,
      'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_sidebar_hide_show',array(
      'type' => 'checkbox',
      'label' => esc_html__( 'Enable Sidebar','tour-travel-agent' ),
      'section' => 'tour_travel_agent_mobile_media_options'
    ));

	$wp_customize->add_setting('tour_travel_agent_menu_toggle_btn_bg_color', array(
		'default'           => 'var(--primary-color)',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'tour_travel_agent_menu_toggle_btn_bg_color', array(
		'label'    => __('Toggle Button Bg Color', 'tour-travel-agent'),
		'section'  => 'tour_travel_agent_mobile_media_options',
	)));		

	//Woocommerce Section
	$wp_customize->add_section( 'tour_travel_agent_woocommerce_options' , array(
    	'title'      => __( 'Additional WooCommerce Options', 'tour-travel-agent' ),
		'priority'   => null,
		'panel' => 'tour_travel_agent_panel_id'
	) );

	// Product Columns
	$wp_customize->add_setting( 'tour_travel_agent_products_per_row' , array(
		'default'           => '3',
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices',
	) );

	$wp_customize->add_control('tour_travel_agent_products_per_row', array(
		'label' => __( 'Product per row', 'tour-travel-agent' ),
		'section'  => 'tour_travel_agent_woocommerce_options',
		'type'     => 'select',
		'choices'  => array(
			'2' => '2',
			'3' => '3',
			'4' => '4',
		),
	) );

	$wp_customize->add_setting('tour_travel_agent_product_per_page',array(
		'default'	=> '9',
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_float'
	));	
	$wp_customize->add_control('tour_travel_agent_product_per_page',array(
		'label'	=> __('Product per page','tour-travel-agent'),
		'section'	=> 'tour_travel_agent_woocommerce_options',
		'type'		=> 'number'
	));

	$wp_customize->add_setting('tour_travel_agent_shop_sidebar',array(
       'default' => false,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_shop_sidebar',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Shop page sidebar','tour-travel-agent'),
       'section' => 'tour_travel_agent_woocommerce_options',
    ));

    // shop page sidebar alignment
    $wp_customize->add_setting('tour_travel_agent_shop_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices',
	));
	$wp_customize->add_control('tour_travel_agent_shop_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Shop Page layout', 'tour-travel-agent'),
		'section'        => 'tour_travel_agent_woocommerce_options',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'tour-travel-agent'),
			'Right Sidebar' => __('Right Sidebar', 'tour-travel-agent'),
		),
	));

	$wp_customize->add_setting( 'tour_travel_agent_wocommerce_single_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ) );
    $wp_customize->add_control('tour_travel_agent_wocommerce_single_page_sidebar',array(
    	'type' => 'checkbox',
       	'label' => __('Enable / Disable Single Product Page Sidebar','tour-travel-agent'),
		'section' => 'tour_travel_agent_woocommerce_options'
    ));

    // single product page sidebar alignment
    $wp_customize->add_setting('tour_travel_agent_single_product_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'tour_travel_agent_sanitize_choices',
	));
	$wp_customize->add_control('tour_travel_agent_single_product_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Single product Page layout', 'tour-travel-agent'),
		'section'        => 'tour_travel_agent_woocommerce_options',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'tour-travel-agent'),
			'Right Sidebar' => __('Right Sidebar', 'tour-travel-agent'),
		),
	));

	// sticky sidebar

	$wp_customize->add_setting( 'tour_travel_agent_sticky_sidebar', array(
		'default'           => false,
		'sanitize_callback' => 'tour_travel_agent_sanitize_checkbox',
	) );
	
	$wp_customize->add_control( 'tour_travel_agent_sticky_sidebar', array(
		'type'     => 'checkbox',
		'label'    => __( 'Enable Sticky Sidebar', 'tour-travel-agent' ),
		'section'  => 'tour_travel_agent_left_right',
	) );


	// animation 
	$wp_customize->add_setting( 'tour_travel_agent_sidebar_animation',array(
	    'default' => true,
    	'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
  	) );
	$wp_customize->add_control('tour_travel_agent_sidebar_animation',array(
	    	'type' => 'checkbox',
	       'label' => __( 'Show / Hide Animations','tour-travel-agent' ),
	       'section' => 'tour_travel_agent_left_right'
	));

	$wp_customize->add_setting('tour_travel_agent_shop_page_pagination',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_shop_page_pagination',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Shop page pagination','tour-travel-agent'),
       'section' => 'tour_travel_agent_woocommerce_options',
    ));

    $wp_customize->add_setting('tour_travel_agent_related_product',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_related_product',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Related product','tour-travel-agent'),
       'section' => 'tour_travel_agent_woocommerce_options',
    ));

	$wp_customize->add_setting( 'tour_travel_agent_woocommerce_button_padding_top',array(
		'default' => 10,
		'sanitize_callback' => 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control( 'tour_travel_agent_woocommerce_button_padding_top',	array(
		'label' => esc_html__( 'Button Top Bottom Padding','tour-travel-agent' ),
		'type' => 'number',
		'section' => 'tour_travel_agent_woocommerce_options',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting( 'tour_travel_agent_woocommerce_button_padding_right',array(
	 	'default' => 20,
	 	'sanitize_callback' => 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control('tour_travel_agent_woocommerce_button_padding_right',	array(
	 	'label' => esc_html__( 'Button Right Left Padding','tour-travel-agent' ),
		'type' => 'number',
		'section' => 'tour_travel_agent_woocommerce_options',
	 	'input_attrs' => array(
			'min' => 0,
			'max' => 50,
	 		'step' => 1,
		),
	));

	$wp_customize->add_setting( 'tour_travel_agent_woocommerce_button_border_radius',array(
		'default' => 0,
		'sanitize_callback' => 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control('tour_travel_agent_woocommerce_button_border_radius',array(
		'label' => esc_html__( 'Button Border Radius','tour-travel-agent' ),
		'type' => 'number',
		'section' => 'tour_travel_agent_woocommerce_options',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

    $wp_customize->add_setting('tour_travel_agent_woocommerce_product_border',array(
       'default' => true,
       'sanitize_callback'	=> 'tour_travel_agent_sanitize_checkbox'
    ));
    $wp_customize->add_control('tour_travel_agent_woocommerce_product_border',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable product border','tour-travel-agent'),
       'section' => 'tour_travel_agent_woocommerce_options',
    ));

	$wp_customize->add_setting( 'tour_travel_agent_woocommerce_product_padding_top',array(
		'default' => 10,
		'sanitize_callback' => 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control('tour_travel_agent_woocommerce_product_padding_top', array(
		'label' => esc_html__( 'Product Top Bottom Padding','tour-travel-agent' ),
		'type' => 'number',
		'section' => 'tour_travel_agent_woocommerce_options',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting( 'tour_travel_agent_woocommerce_product_padding_right',array(
		'default' => 10,
		'sanitize_callback' => 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control('tour_travel_agent_woocommerce_product_padding_right', array(
		'label' => esc_html__( 'Product Right Left Padding','tour-travel-agent' ),
		'type' => 'number',
		'section' => 'tour_travel_agent_woocommerce_options',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting( 'tour_travel_agent_woocommerce_product_border_radius',array(
		'default' => 0,
		'sanitize_callback' => 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control('tour_travel_agent_woocommerce_product_border_radius',array(
		'label' => esc_html__( 'Product Border Radius','tour-travel-agent' ),
		'type' => 'number',
		'section' => 'tour_travel_agent_woocommerce_options',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting( 'tour_travel_agent_woocommerce_product_box_shadow',array(
		'default' => 0,
		'sanitize_callback' => 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control( 'tour_travel_agent_woocommerce_product_box_shadow',array(
		'label' => esc_html__( 'Product Box Shadow','tour-travel-agent' ),
		'type' => 'number',
		'section' => 'tour_travel_agent_woocommerce_options',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting('tour_travel_agent_sale_position',array(
        'default' => 'right',
        'sanitize_callback' => 'tour_travel_agent_sanitize_choices'
	));
	$wp_customize->add_control('tour_travel_agent_sale_position',array(
        'type' => 'select',
        'label' => __('Sale badge Position','tour-travel-agent'),
        'section' => 'tour_travel_agent_woocommerce_options',
        'choices' => array(
            'left' => __('Left','tour-travel-agent'),
            'right' => __('Right','tour-travel-agent'),
        ),
	) );

	$wp_customize->add_setting( 'tour_travel_agent_woocommerce_sale_top_padding',array(
		'default' => 0,
		'sanitize_callback' => 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control( 'tour_travel_agent_woocommerce_sale_top_padding',	array(
		'label' => esc_html__( 'Sale Top Bottom Padding','tour-travel-agent' ),
		'type' => 'number',
		'section' => 'tour_travel_agent_woocommerce_options',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting( 'tour_travel_agent_woocommerce_sale_left_padding',array(
	 	'default' => 0,
	 	'sanitize_callback' => 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control('tour_travel_agent_woocommerce_sale_left_padding',	array(
	 	'label' => esc_html__( 'Sale Right Left Padding','tour-travel-agent' ),
		'type' => 'number',
		'section' => 'tour_travel_agent_woocommerce_options',
	 	'input_attrs' => array(
			'min' => 0,
			'max' => 50,
	 		'step' => 1,
		),
	));

	$wp_customize->add_setting( 'tour_travel_agent_woocommerce_sale_border_radius',array(
		'default' => 0,
		'sanitize_callback' => 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control('tour_travel_agent_woocommerce_sale_border_radius',array(
		'label' => esc_html__( 'Sale Border Radius','tour-travel-agent' ),
		'type' => 'number',
		'section' => 'tour_travel_agent_woocommerce_options',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting( 'tour_travel_agent_product_sale_font_size',array(
		'default' => '',
		'sanitize_callback' => 'tour_travel_agent_sanitize_float'
	));
	$wp_customize->add_control('tour_travel_agent_product_sale_font_size',array(
		'label' => esc_html__( 'Sale Font Size','tour-travel-agent' ),
		'type' => 'number',
		'section' => 'tour_travel_agent_woocommerce_options',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));
}
add_action( 'customize_register', 'tour_travel_agent_customize_register' );

// logo resize
load_template( trailingslashit( get_template_directory() ) . '/inc/logo/logo-width.php' );


/**
 * Singleton class for handling the theme's customizer integration.
 *
 * @since  1.0.0
 * @access public
 */
final class Tour_Travel_Agent_Customize {

	/**
	 * Returns the instance.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return object
	 */
	public static function get_instance() {

		static $instance = null;

		if ( is_null( $instance ) ) {
			$instance = new self;
			$instance->setup_actions();
		}

		return $instance;
	}

	/**
	 * Constructor method.
	 *
	 * @since  1.0.0
	 * @access private
	 * @return void
	 */
	private function __construct() {}

	/**
	 * Sets up initial actions.
	 *
	 * @since  1.0.0
	 * @access private
	 * @return void
	 */
	private function setup_actions() {

		// Register panels, sections, settings, controls, and partials.
		add_action( 'customize_register', array( $this, 'sections' ) );

		// Register scripts and styles for the controls.
		add_action( 'customize_controls_enqueue_scripts', array( $this, 'enqueue_control_scripts' ), 0 );
	}

	/**
	 * Sets up the customizer sections.
	 *
	 * @since  1.0.0
	 * @access public
	 * @param  object  $manager
	 * @return void
	 */
	public function sections( $manager ) {

		// Load custom sections.
		load_template( trailingslashit( get_template_directory() ) . '/inc/section-pro.php' );
		load_template( trailingslashit( get_template_directory() ) . 'inc/tour-customize-upsell-section.php' );
		
		// Register custom section types.
		$manager->register_section_type( 'Tour_Travel_Agent_Customize_Section_Pro' );

		// Register sections.
		$manager->add_section(
			new Tour_Travel_Agent_Customize_Section_Pro(
				$manager,
				'tour_travel_agent_example_1',
				array(
					'priority' => 9,
					'title'    => esc_html__( 'Travel Pro Theme', 'tour-travel-agent' ),
					'pro_text' => esc_html__( 'Get Pro','tour-travel-agent' ),
					'pro_url'  => esc_url( 'https://themescaliber.com/products/travel-agent-wordpress-theme/' ),
				)
			)
		);

			// Frontpage Sections Upsell.
			$manager->add_section(
				new Tour_Travel_Agent_Customizer_Upsell_Section(
					$manager, 'tour-travel-agent-upsell-frontpage-sections', array(
						'panel'       => 'tour_travel_agent_panel_id',
						'priority'    => 500,
						'options'     => array(
							esc_html__( 'Search Tour Section', 'tour-travel-agent' ),
							esc_html__( 'About Section', 'tour-travel-agent' ),
							esc_html__( 'Perfection Section', 'tour-travel-agent' ),
							esc_html__( 'Most Popular Section', 'tour-travel-agent' ),
							esc_html__( 'Top Destination Section', 'tour-travel-agent' ),
							esc_html__( 'Tour Place Section', 'tour-travel-agent' ),
							esc_html__( 'Exclusive Offer Section', 'tour-travel-agent' ),
							esc_html__( 'Testimonials Section', 'tour-travel-agent' ),
							esc_html__( 'Blog Section', 'tour-travel-agent' ),
							esc_html__( 'Our Newsletter Section', 'tour-travel-agent' ),
						),
						'button_url'  => esc_url( 'https://www.themescaliber.com/products/travel-agent-wordpress-theme' ),
						'button_text' => esc_html__( 'View PRO version', 'tour-travel-agent' ),
					)
				)
			);
	}

	/**
	 * Loads theme customizer CSS.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return void
	 */
	public function enqueue_control_scripts() {

		wp_enqueue_script( 'tour-travel-agent-customize-controls', trailingslashit( esc_url(get_template_directory_uri()) ) . '/js/customize-controls.js', array( 'customize-controls' ) );

		wp_enqueue_style( 'tour-travel-agent-customize-controls', trailingslashit( esc_url(get_template_directory_uri()) ) . '/css/customize-controls.css' );
	}
}

// Doing this customizer thang!
Tour_Travel_Agent_Customize::get_instance();