<?php
/**
 * Driving School Lite Theme Customizer
 * @package Driving School Lite
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 */

function driving_school_lite_customize_register( $wp_customize ) {	

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

	class Driving_School_Lite_WP_Customize_Range_Control extends WP_Customize_Control{
	    public $type = 'custom_range';
	    public function enqueue(){
	        wp_enqueue_script(
	            'cs-range-control',
	            false,
	            true
	        );
	    }
	    public function render_content(){?>
	        <label>
	            <?php if ( ! empty( $this->label )) : ?>
	                <span class="customize-control-title"><?php echo esc_html($this->label); ?></span>
	            <?php endif; ?>
	            <div class="cs-range-value"><?php echo esc_html($this->value()); ?></div>
	            <input data-input-type="range" type="range" <?php $this->input_attrs(); ?> value="<?php echo esc_attr($this->value()); ?>" <?php $this->link(); ?> />
	            <?php if ( ! empty( $this->description )) : ?>
	                <span class="description customize-control-description"><?php echo esc_html($this->description); ?></span>
	            <?php endif; ?>
	        </label>
        <?php }
	}	

	//add home page setting pannel
	$wp_customize->add_panel( 'driving_school_lite_panel_id', array(
	    'priority' => 10,
	    'capability' => 'edit_theme_options',
	    'theme_supports' => '',
	    'title' => __( 'Theme Settings', 'driving-school-lite' ),
	    'description' => __( 'Description of what this panel does.', 'driving-school-lite' ),
	) );

	// Add the Theme Color Option section.
	$wp_customize->add_section( 'driving_school_lite_theme_color_option', array( 
		'panel' => 'driving_school_lite_panel_id', 
		'title' => esc_html__( 'Global Color Settings', 'driving-school-lite' ) 
	) );

  	$wp_customize->add_setting( 'driving_school_lite_first_theme_color', array(
	    'default' => '#ffc61a',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'driving_school_lite_first_theme_color', array(
  		'label' => 'Color Option 1',
	    'description' => __('One can change complete theme global color settings on just one click.', 'driving-school-lite'),
	    'section' => 'driving_school_lite_theme_color_option',
	    'settings' => 'driving_school_lite_first_theme_color',
  	)));

	// font array
	$driving_school_lite_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', 
        'Yanone Kaffeesatz' => 'Yanone Kaffeesatz',
    );

	//Typography
	$wp_customize->add_section( 'driving_school_lite_typography', array(
    	'title'      => __( 'Typography', 'driving-school-lite' ),
		'priority'   => 30,
		'panel' => 'driving_school_lite_panel_id'
	) );
	
	// This is Paragraph Color picker setting
	$wp_customize->add_setting( 'driving_school_lite_paragraph_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'driving_school_lite_paragraph_color', array(
		'label' => __('Paragraph Color', 'driving-school-lite'),
		'section' => 'driving_school_lite_typography',
		'settings' => 'driving_school_lite_paragraph_color',
	)));

	//This is Paragraph FontFamily picker setting
	$wp_customize->add_setting('driving_school_lite_paragraph_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control(
	    'driving_school_lite_paragraph_font_family', array(
	    'section'  => 'driving_school_lite_typography',
	    'label'    => __( 'Paragraph Fonts','driving-school-lite'),
	    'type'     => 'select',
	    'choices'  => $driving_school_lite_font_array,
	));

	$wp_customize->add_setting('driving_school_lite_paragraph_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('driving_school_lite_paragraph_font_size',array(
		'label'	=> __('Paragraph Font Size','driving-school-lite'),
		'section'	=> 'driving_school_lite_typography',
		'setting'	=> 'driving_school_lite_paragraph_font_size',
		'type'	=> 'text'
	));

	// This is "a" Tag Color picker setting
	$wp_customize->add_setting( 'driving_school_lite_atag_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'driving_school_lite_atag_color', array(
		'label' => __('"a" Tag Color', 'driving-school-lite'),
		'section' => 'driving_school_lite_typography',
		'settings' => 'driving_school_lite_atag_color',
	)));

	//This is "a" Tag FontFamily picker setting
	$wp_customize->add_setting('driving_school_lite_atag_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control(
	    'driving_school_lite_atag_font_family', array(
	    'section'  => 'driving_school_lite_typography',
	    'label'    => __( '"a" Tag Fonts','driving-school-lite'),
	    'type'     => 'select',
	    'choices'  => $driving_school_lite_font_array,
	));

	// This is "a" Tag Color picker setting
	$wp_customize->add_setting( 'driving_school_lite_li_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'driving_school_lite_li_color', array(
		'label' => __('"li" Tag Color', 'driving-school-lite'),
		'section' => 'driving_school_lite_typography',
		'settings' => 'driving_school_lite_li_color',
	)));

	//This is "li" Tag FontFamily picker setting
	$wp_customize->add_setting('driving_school_lite_li_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control(
	    'driving_school_lite_li_font_family', array(
	    'section'  => 'driving_school_lite_typography',
	    'label'    => __( '"li" Tag Fonts','driving-school-lite'),
	    'type'     => 'select',
	    'choices'  => $driving_school_lite_font_array,
	));

	// This is H1 Color picker setting
	$wp_customize->add_setting( 'driving_school_lite_h1_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'driving_school_lite_h1_color', array(
		'label' => __('H1 Color', 'driving-school-lite'),
		'section' => 'driving_school_lite_typography',
		'settings' => 'driving_school_lite_h1_color',
	)));

	//This is H1 FontFamily picker setting
	$wp_customize->add_setting('driving_school_lite_h1_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control(
	    'driving_school_lite_h1_font_family', array(
	    'section'  => 'driving_school_lite_typography',
	    'label'    => __( 'H1 Fonts','driving-school-lite'),
	    'type'     => 'select',
	    'choices'  => $driving_school_lite_font_array,
	));

	//This is H1 FontSize setting
	$wp_customize->add_setting('driving_school_lite_h1_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('driving_school_lite_h1_font_size',array(
		'label'	=> __('H1 Font Size','driving-school-lite'),
		'section'	=> 'driving_school_lite_typography',
		'setting'	=> 'driving_school_lite_h1_font_size',
		'type'	=> 'text'
	));

	// This is H2 Color picker setting
	$wp_customize->add_setting( 'driving_school_lite_h2_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'driving_school_lite_h2_color', array(
		'label' => __('h2 Color', 'driving-school-lite'),
		'section' => 'driving_school_lite_typography',
		'settings' => 'driving_school_lite_h2_color',
	)));

	//This is H2 FontFamily picker setting
	$wp_customize->add_setting('driving_school_lite_h2_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control(
	    'driving_school_lite_h2_font_family', array(
	    'section'  => 'driving_school_lite_typography',
	    'label'    => __( 'h2 Fonts','driving-school-lite'),
	    'type'     => 'select',
	    'choices'  => $driving_school_lite_font_array,
	));

	//This is H2 FontSize setting
	$wp_customize->add_setting('driving_school_lite_h2_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('driving_school_lite_h2_font_size',array(
		'label'	=> __('h2 Font Size','driving-school-lite'),
		'section'	=> 'driving_school_lite_typography',
		'setting'	=> 'driving_school_lite_h2_font_size',
		'type'	=> 'text'
	));

	// This is H3 Color picker setting
	$wp_customize->add_setting( 'driving_school_lite_h3_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'driving_school_lite_h3_color', array(
		'label' => __('h3 Color', 'driving-school-lite'),
		'section' => 'driving_school_lite_typography',
		'settings' => 'driving_school_lite_h3_color',
	)));

	//This is H3 FontFamily picker setting
	$wp_customize->add_setting('driving_school_lite_h3_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control(
	    'driving_school_lite_h3_font_family', array(
	    'section'  => 'driving_school_lite_typography',
	    'label'    => __( 'h3 Fonts','driving-school-lite'),
	    'type'     => 'select',
	    'choices'  => $driving_school_lite_font_array,
	));

	//This is H3 FontSize setting
	$wp_customize->add_setting('driving_school_lite_h3_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('driving_school_lite_h3_font_size',array(
		'label'	=> __('h3 Font Size','driving-school-lite'),
		'section'	=> 'driving_school_lite_typography',
		'setting'	=> 'driving_school_lite_h3_font_size',
		'type'	=> 'text'
	));

	// This is H4 Color picker setting
	$wp_customize->add_setting( 'driving_school_lite_h4_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'driving_school_lite_h4_color', array(
		'label' => __('h4 Color', 'driving-school-lite'),
		'section' => 'driving_school_lite_typography',
		'settings' => 'driving_school_lite_h4_color',
	)));

	//This is H4 FontFamily picker setting
	$wp_customize->add_setting('driving_school_lite_h4_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control(
	    'driving_school_lite_h4_font_family', array(
	    'section'  => 'driving_school_lite_typography',
	    'label'    => __( 'h4 Fonts','driving-school-lite'),
	    'type'     => 'select',
	    'choices'  => $driving_school_lite_font_array,
	));

	//This is H4 FontSize setting
	$wp_customize->add_setting('driving_school_lite_h4_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('driving_school_lite_h4_font_size',array(
		'label'	=> __('h4 Font Size','driving-school-lite'),
		'section'	=> 'driving_school_lite_typography',
		'setting'	=> 'driving_school_lite_h4_font_size',
		'type'	=> 'text'
	));

	// This is H5 Color picker setting
	$wp_customize->add_setting( 'driving_school_lite_h5_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'driving_school_lite_h5_color', array(
		'label' => __('h5 Color', 'driving-school-lite'),
		'section' => 'driving_school_lite_typography',
		'settings' => 'driving_school_lite_h5_color',
	)));

	//This is H5 FontFamily picker setting
	$wp_customize->add_setting('driving_school_lite_h5_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control(
	    'driving_school_lite_h5_font_family', array(
	    'section'  => 'driving_school_lite_typography',
	    'label'    => __( 'h5 Fonts','driving-school-lite'),
	    'type'     => 'select',
	    'choices'  => $driving_school_lite_font_array,
	));

	//This is H5 FontSize setting
	$wp_customize->add_setting('driving_school_lite_h5_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('driving_school_lite_h5_font_size',array(
		'label'	=> __('h5 Font Size','driving-school-lite'),
		'section'	=> 'driving_school_lite_typography',
		'setting'	=> 'driving_school_lite_h5_font_size',
		'type'	=> 'text'
	));

	// This is H6 Color picker setting
	$wp_customize->add_setting( 'driving_school_lite_h6_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'driving_school_lite_h6_color', array(
		'label' => __('h6 Color', 'driving-school-lite'),
		'section' => 'driving_school_lite_typography',
		'settings' => 'driving_school_lite_h6_color',
	)));

	//This is H6 FontFamily picker setting
	$wp_customize->add_setting('driving_school_lite_h6_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control(
	    'driving_school_lite_h6_font_family', array(
	    'section'  => 'driving_school_lite_typography',
	    'label'    => __( 'h6 Fonts','driving-school-lite'),
	    'type'     => 'select',
	    'choices'  => $driving_school_lite_font_array,
	));

	//This is H6 FontSize setting
	$wp_customize->add_setting('driving_school_lite_h6_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('driving_school_lite_h6_font_size',array(
		'label'	=> __('h6 Font Size','driving-school-lite'),
		'section'	=> 'driving_school_lite_typography',
		'setting'	=> 'driving_school_lite_h6_font_size',
		'type'	=> 'text'
	));

	//Topbar section
	$wp_customize->add_section('driving_school_lite_topbar_icon',array(
		'title'	=> __('Topbar Section','driving-school-lite'),
		'description'	=> __('Add Header Content here','driving-school-lite'),
		'priority'	=> null,
		'panel' => 'driving_school_lite_panel_id',
	));

	$wp_customize->add_setting('driving_school_lite_top_header',array(
       'default' => true,
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_top_header',array(
       'type' => 'checkbox',
       'label' => __('Enable Top Header','driving-school-lite'),
       'section' => 'driving_school_lite_topbar_icon'
    ));

    $wp_customize->add_setting('driving_school_lite_topbar_padding',array(
		'sanitize_callback'	=> 'esc_html'
	));
	$wp_customize->add_control('driving_school_lite_topbar_padding',array(
		'label'	=> esc_html__('Topbar Padding','driving-school-lite'),
		'section'=> 'driving_school_lite_topbar_icon',
	));

    $wp_customize->add_setting('driving_school_lite_top_topbar_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_top_topbar_padding',array(
		'description'	=> __('Top','driving-school-lite'),
		'input_attrs' => array(
            'step' => 1,
			'min' => 0,
			'max' => 50,
        ),
		'section'=> 'driving_school_lite_topbar_icon',
		'type'=> 'number',
	));

	$wp_customize->add_setting('driving_school_lite_bottom_topbar_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_bottom_topbar_padding',array(
		'description'	=> __('Bottom','driving-school-lite'),
		'input_attrs' => array(
            'step' => 1,
			'min' => 0,
			'max' => 50,
        ),
		'section'=> 'driving_school_lite_topbar_icon',
		'type'=> 'number',
	));

    $wp_customize->add_setting('driving_school_lite_sticky_header',array(
       'default' => '',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_sticky_header',array(
       'type' => 'checkbox',
       'label' => __('Stick header on Desktop','driving-school-lite'),
       'section' => 'driving_school_lite_topbar_icon'
    ));

    $wp_customize->add_setting('driving_school_lite_sticky_header_padding',array(
		'sanitize_callback'	=> 'esc_html'
	));
	$wp_customize->add_control('driving_school_lite_sticky_header_padding',array(
		'label'	=> esc_html__('Sticky Header Padding','driving-school-lite'),
		'section'=> 'driving_school_lite_topbar_icon',
		'type' => 'hidden',
	));

    $wp_customize->add_setting('driving_school_lite_top_sticky_header_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_top_sticky_header_padding',array(
		'description'	=> __('Top','driving-school-lite'),
		'input_attrs' => array(
            'step' => 1,
			'min' => 0,
			'max' => 50,
        ),
		'section'=> 'driving_school_lite_topbar_icon',
		'type'=> 'number'
	));

	$wp_customize->add_setting('driving_school_lite_bottom_sticky_header_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_bottom_sticky_header_padding',array(
		'description'	=> __('Bottom','driving-school-lite'),
		'input_attrs' => array(
            'step' => 1,
			'min' => 0,
			'max' => 50,
        ),
		'section'=> 'driving_school_lite_topbar_icon',
		'type'=> 'number'
	));

	$wp_customize->add_setting('driving_school_lite_show_search',array(
       'default' => 'true',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_show_search',array(
       'type' => 'checkbox',
       'label' => __('Show/Hide Search','driving-school-lite'),
       'section' => 'driving_school_lite_topbar_icon'
    ));

    $wp_customize->add_setting('driving_school_lite_search_placeholder',array(
       'default' => __('Search', 'driving-school-lite' ),
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('driving_school_lite_search_placeholder',array(
       'type' => 'text',
       'label' => __('Search Placeholder text','driving-school-lite'),
       'section' => 'driving_school_lite_topbar_icon'
    ));

	$wp_customize->add_setting('driving_school_lite_location_icon',array(
		'default'	=> 'fas fa-map-marker-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_location_icon',array(
		'label'	=> __('Location Icon','driving-school-lite'),
		'section' => 'driving_school_lite_topbar_icon',
		'type'	  => 'icon',
	)));

	$wp_customize->add_setting('driving_school_lite_location',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('driving_school_lite_location',array(
		'label'	=> __('Add Location','driving-school-lite'),
		'section'	=> 'driving_school_lite_topbar_icon',
		'setting'	=> 'driving_school_lite_location',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('driving_school_lite_facebook_icon',array(
		'default'	=> 'fab fa-facebook-f',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_facebook_icon',array(
		'label'	=> __('Facebook Icon','driving-school-lite'),
		'section' => 'driving_school_lite_topbar_icon',
		'type'	  => 'icon',
	)));

	$wp_customize->add_setting('driving_school_lite_facebook',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('driving_school_lite_facebook',array(
		'label'	=> __('Add Facebook link','driving-school-lite'),
		'section'	=> 'driving_school_lite_topbar_icon',
		'setting'	=> 'driving_school_lite_facebook',
		'type'		=> 'url'
	));

	$wp_customize->add_setting('driving_school_lite_twitter_icon',array(
		'default'	=> 'fab fa-twitter',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_twitter_icon',array(
		'label'	=> __('Twitter Icon','driving-school-lite'),
		'section' => 'driving_school_lite_topbar_icon',
		'type'	  => 'icon',
	)));

	$wp_customize->add_setting('driving_school_lite_twitter',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('driving_school_lite_twitter',array(
		'label'	=> __('Add Twitter link','driving-school-lite'),
		'section'	=> 'driving_school_lite_topbar_icon',
		'setting'	=> 'driving_school_lite_twitter',
		'type'	=> 'url'
	));

	$wp_customize->add_setting('driving_school_lite_youtube_icon',array(
		'default' => 'fab fa-youtube',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_youtube_icon',array(
		'label'	=> __('Youtube Icon','driving-school-lite'),
		'section' => 'driving_school_lite_topbar_icon',
		'type'	  => 'icon',
	)));

	$wp_customize->add_setting('driving_school_lite_youtube',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('driving_school_lite_youtube',array(
		'label'	=> __('Add Youtube link','driving-school-lite'),
		'section'	=> 'driving_school_lite_topbar_icon',
		'setting'	=> 'driving_school_lite_youtube',
		'type'	=> 'url'
	));

	$wp_customize->add_setting('driving_school_lite_linkedin_icon',array(
		'default' => 'fab fa-linkedin-in',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_linkedin_icon',array(
		'label'	=> __('Linkedin Icon','driving-school-lite'),
		'section' => 'driving_school_lite_topbar_icon',
		'type'	  => 'icon',
	)));

	$wp_customize->add_setting('driving_school_lite_linkedin',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('driving_school_lite_linkedin',array(
		'label'	=> __('Add Linkedin link','driving-school-lite'),
		'section'	=> 'driving_school_lite_topbar_icon',
		'setting'	=> 'driving_school_lite_linkedin',
		'type'	=> 'url'
	));

	$wp_customize->add_setting( 'driving_school_lite_social_icons_font_size', array(
		'default'=> '15',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( new Driving_School_Lite_WP_Customize_Range_Control( $wp_customize, 'driving_school_lite_social_icons_font_size', array(
        'label'  => __('Social Icons Font Size','driving-school-lite'),
        'section'  => 'driving_school_lite_topbar_icon',
        'description' => __('Measurement is in pixel.','driving-school-lite'),
        'input_attrs' => array(
            'min' => 0,
            'max' => 50,
        )
    )));

	$wp_customize->add_setting('driving_school_lite_button_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('driving_school_lite_button_text',array(
		'label'	=> __('Button text','driving-school-lite'),
		'section'	=> 'driving_school_lite_topbar_icon',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('driving_school_lite_button_link',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('driving_school_lite_button_link',array(
		'label'	=> __('Add Button Link','driving-school-lite'),
		'section'	=> 'driving_school_lite_topbar_icon',
		'setting'	=> 'driving_school_lite_button_link',
		'type'		=> 'url'
	));

	$wp_customize->add_section('driving_school_lite_header',array(
		'title'	=> __('Header','driving-school-lite'),
		'priority'	=> null,
		'panel' => 'driving_school_lite_panel_id',
	));

	$wp_customize->add_setting('driving_school_lite_menu_case',array(
        'default' => 'uppercase',
        'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control('driving_school_lite_menu_case',array(
        'type' => 'select',
        'label' => __('Menu Case','driving-school-lite'),
        'section' => 'driving_school_lite_header',
        'choices' => array(
            'uppercase' => __('Uppercase','driving-school-lite'),
            'capitalize' => __('Capitalize','driving-school-lite'),
        ),
	) );

	$wp_customize->add_setting( 'driving_school_lite_menu_font_size', array(
		'default'=> '14',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( new Driving_School_Lite_WP_Customize_Range_Control( $wp_customize, 'driving_school_lite_menu_font_size', array(
        'label'  => __('Menu Font Size','driving-school-lite'),
        'section'  => 'driving_school_lite_header',
        'description' => __('Measurement is in pixel.','driving-school-lite'),
        'input_attrs' => array(
            'min' => 0,
            'max' => 50,
        )
    )));

    $wp_customize->add_setting('driving_school_lite_menu_font_weight',array(
        'default' => '',
        'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control('driving_school_lite_menu_font_weight',array(
        'type' => 'select',
        'label' => __('Menu Font Weight','driving-school-lite'),
        'section' => 'driving_school_lite_header',
        'choices' => array(
            '100' => __('100','driving-school-lite'),
            '200' => __('200','driving-school-lite'),
            '300' => __('300','driving-school-lite'),
            '400' => __('400','driving-school-lite'),
            '500' => __('500','driving-school-lite'),
            '600' => __('600','driving-school-lite'),
            '700' => __('700','driving-school-lite'),
            '800' => __('800','driving-school-lite'),
            '900' => __('900','driving-school-lite'),
        ),
	) );

	$wp_customize->add_setting('driving_school_lite_menu_padding',array(
		'default'=> 22,
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Driving_School_Lite_WP_Customize_Range_Control( $wp_customize,'driving_school_lite_menu_padding',array(
		'label'	=> __('Menu Font Padding','driving-school-lite'),
		'section'=> 'driving_school_lite_header',
		'input_attrs' => array(
         'step'  => 1,
			'min'   => 0,
			'max'   => 50,
        ),
	)));

	//Menu Color
	$wp_customize->add_setting('driving_school_lite_menu_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'driving_school_lite_menu_color', array(
		'label'    => __('Menu Color', 'driving-school-lite'),
		'section'  => 'driving_school_lite_header',
		'settings' => 'driving_school_lite_menu_color',
	)));

	$wp_customize->add_setting('driving_school_lite_menu_hover_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'driving_school_lite_menu_hover_color', array(
		'label'    => __('Menu Hover Color', 'driving-school-lite'),
		'section'  => 'driving_school_lite_header',
		'settings' => 'driving_school_lite_menu_hover_color',
	)));

	$wp_customize->add_setting('driving_school_lite_submenu_menu_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'driving_school_lite_submenu_menu_color', array(
		'label'    => __('Submenu Color', 'driving-school-lite'),
		'section'  => 'driving_school_lite_header',
		'settings' => 'driving_school_lite_submenu_menu_color',
	)));

	$wp_customize->add_setting('driving_school_lite_submenu_hover_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'driving_school_lite_submenu_hover_color', array(
		'label'    => __('Submenu Hover Color', 'driving-school-lite'),
		'section'  => 'driving_school_lite_header',
		'settings' => 'driving_school_lite_submenu_hover_color',
	)));

	$wp_customize->add_setting( 'driving_school_lite_menu_settings_premium_features',array(
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('driving_school_lite_menu_settings_premium_features', array(
        'type'=> 'hidden',
        'description' => "<h3>". esc_html('Premium Theme Features!','driving-school-lite') ."</h3>
            <ul>
                <li>". esc_html('Menu DropDown Background Colors','driving-school-lite') ."</li>
                <li>". esc_html('Menu Item Fonts','driving-school-lite') ."</li>
                <li>". esc_html('Active Menu Colors','driving-school-lite') ."</li>
                <li>". esc_html('Header Search Icons Colors','driving-school-lite') ."</li>
                <li>". esc_html('... and Other Premium Features','driving-school-lite') ."</li>
            </ul>
            <a target='_blank' href='". esc_url('https://www.themesglance.com/products/driving-school-wordpress-theme') ." '>". esc_html('Upgrade Now','driving-school-lite') ."</a>",
        'section' => 'driving_school_lite_header'
        )
    );

	//Contact Details
	$wp_customize->add_section( 'driving_school_lite_contact_section' , array(
    	'title'      => __( 'Contact Details', 'driving-school-lite' ),
		'priority'   => null,
		'panel' => 'driving_school_lite_panel_id'
	) );

	$wp_customize->add_setting('driving_school_lite_phone_icon',array(
		'default'	=> 'fas fa-phone-volume',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_phone_icon',array(
		'label'	=> __('Phone Icon','driving-school-lite'),
		'section' => 'driving_school_lite_contact_section',
		'type'	  => 'icon',
	)));

	$wp_customize->add_setting('driving_school_lite_call_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('driving_school_lite_call_text',array(
		'label'	=> __('Call Text','driving-school-lite'),
		'section'	=> 'driving_school_lite_contact_section',
		'setting'	=> 'driving_school_lite_call_text',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('driving_school_lite_call_number',array(
		'default'	=> '',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_phone_number'
	));	
	$wp_customize->add_control('driving_school_lite_call_number',array(
		'label'	=> __('Add Contact Number','driving-school-lite'),
		'section'	=> 'driving_school_lite_contact_section',
		'setting'	=> 'driving_school_lite_call_number',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('driving_school_lite_email_icon',array(
		'default' => 'far fa-envelope',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_email_icon',array(
		'label'	=> __('Email Icon','driving-school-lite'),
		'section' => 'driving_school_lite_contact_section',
		'type'	  => 'icon',
	)));

	$wp_customize->add_setting('driving_school_lite_email_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('driving_school_lite_email_text',array(
		'label'	=> __('Add Email Text','driving-school-lite'),
		'section'	=> 'driving_school_lite_contact_section',
		'setting'	=> 'driving_school_lite_email_text',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('driving_school_lite_email',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_email'
	));	
	$wp_customize->add_control('driving_school_lite_email',array(
		'label'	=> __('Add Email Address','driving-school-lite'),
		'section'	=> 'driving_school_lite_contact_section',
		'setting'	=> 'driving_school_lite_email',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('driving_school_lite_timing_icon',array(
		'default' => 'far fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_timing_icon',array(
		'label'	=> __('Timing Icon','driving-school-lite'),
		'section' => 'driving_school_lite_contact_section',
		'type'	  => 'icon',
	)));

	$wp_customize->add_setting('driving_school_lite_timing_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('driving_school_lite_timing_text',array(
		'label'	=> __('Add Timing Text','driving-school-lite'),
		'section'	=> 'driving_school_lite_contact_section',
		'setting'	=> 'driving_school_lite_timing_text',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('driving_school_lite_timing',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('driving_school_lite_timing',array(
		'label'	=> __('Add Time','driving-school-lite'),
		'section'	=> 'driving_school_lite_contact_section',
		'setting'	=> 'driving_school_lite_timing',
		'type'		=> 'text'
	));

	$wp_customize->add_setting( 'driving_school_lite_contact_settings_premium_features',array(
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('driving_school_lite_contact_settings_premium_features', array(
        'type'=> 'hidden',
        'description' => "<h3>". esc_html('Premium Theme Features!','driving-school-lite') ."</h3>
            <ul>
                <li>". esc_html('Title Font & Color Settings','driving-school-lite') ."</li>
                <li>". esc_html('Background Image Settings','driving-school-lite') ."</li>
                <li>". esc_html('... and Other Premium Features','driving-school-lite') ."</li>
            </ul>
            <a target='_blank' href='". esc_url('https://www.themesglance.com/products/driving-school-wordpress-theme') ." '>". esc_html('Upgrade Now','driving-school-lite') ."</a>",
        'section' => 'driving_school_lite_contact_section'
        )
    );

	//home page slider
	$wp_customize->add_section( 'driving_school_lite_slider_section' , array(
    	'title'      => __( 'Slider Settings', 'driving-school-lite' ),
		'priority'   => null,
		'panel' => 'driving_school_lite_panel_id'
	) );

	$wp_customize->add_setting('driving_school_lite_slider_hide',array(
       'default' => false,
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_slider_hide',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide slider','driving-school-lite'),
       'section' => 'driving_school_lite_slider_section',
    ));

	$wp_customize->add_setting('driving_school_lite_slider_title',array(
        'default' => true,
        'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
	));
	$wp_customize->add_control('driving_school_lite_slider_title',array(
     	'type' => 'checkbox',
      	'label' => __('Show / Hide Slider Title','driving-school-lite'),
      	'section' => 'driving_school_lite_slider_section'
	));

	$wp_customize->add_setting('driving_school_lite_slider_content',array(
        'default' => true,
        'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
	));
	$wp_customize->add_control('driving_school_lite_slider_content',array(
     	'type' => 'checkbox',
      	'label' => __('Show / Hide Slider Content','driving-school-lite'),
      	'section' => 'driving_school_lite_slider_section'
	));

	$wp_customize->add_setting('driving_school_lite_slider_button',array(
        'default' => true,
        'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
	));
	$wp_customize->add_control('driving_school_lite_slider_button',array(
     	'type' => 'checkbox',
      	'label' => __('Show / Hide Slider Button','driving-school-lite'),
      	'section' => 'driving_school_lite_slider_section'
	));

	for ( $count = 1; $count <= 4; $count++ ) {
		$wp_customize->add_setting( 'driving_school_lite_slider_page' . $count, array(
			'default'           => '',
			'sanitize_callback' => 'driving_school_lite_sanitize_dropdown_pages'
		) );
		$wp_customize->add_control( 'driving_school_lite_slider_page' . $count, array(
			'label'    => __( 'Select Slide Image Page', 'driving-school-lite' ),
			'section'  => 'driving_school_lite_slider_section',
			'type'     => 'dropdown-pages'
		) );
	}

	$wp_customize->add_setting( 'driving_school_lite_slider_speed', array(
		'default'              => 3000,
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	) );
	$wp_customize->add_control( 'driving_school_lite_slider_speed', array(
		'label'       => esc_html__( 'Slider Speed','driving-school-lite' ),
		'section'     => 'driving_school_lite_slider_section',
		'type'        => 'number',
		'settings'    => 'driving_school_lite_slider_speed',
		'input_attrs' => array(
			'step'             => 500,
			'min'              => 500,
			'max'              => 5000,
		),
	) );

	$wp_customize->add_setting( 'driving_school_lite_slider_arrow_hide_show',array(
	    'default' => true,   
	    'sanitize_callback' => 'driving_school_lite_sanitize_checkbox'
	));
	$wp_customize->add_control( 'driving_school_lite_slider_arrow_hide_show',array(
		'label' => esc_html__( 'Show / Hide Slider Arrows','driving-school-lite' ),
		'section' => 'driving_school_lite_slider_section',
		'type' => 'checkbox',
	));

	$wp_customize->add_setting('driving_school_lite_slider_prev_icon',array(
		'default'	=> 'fas fa-chevron-left',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new driving_school_lite_Icon_Selector(
        $wp_customize,'driving_school_lite_slider_prev_icon',array(
		'label'	=>__('Add Slider Prev Icon','driving-school-lite'),
		'transport' => 'refresh',
		'section'	=> 'driving_school_lite_slider_section',
		'setting'	=> 'driving_school_lite_slider_prev_icon',
		'type'		=> 'icon',
	)));

	$wp_customize->add_setting('driving_school_lite_slider_next_icon',array(
		'default'	=> 'fas fa-chevron-right',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new driving_school_lite_Icon_Selector(
        $wp_customize,'driving_school_lite_slider_next_icon',array(
		'label'	=> __('Add Slider Next Icon','driving-school-lite'),
		'transport' => 'refresh',
		'section'	=> 'driving_school_lite_slider_section',
		'setting'	=> 'driving_school_lite_slider_next_icon',
		'type'		=> 'icon',
	)));

	 $wp_customize->add_setting('driving_school_lite_slider_arrows_hover_color', array(
		'default'           => '#000',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'driving_school_lite_slider_arrows_hover_color', array(
		'label'    => __('Slider Arrows hover Color', 'driving-school-lite'),
		'section'  => 'driving_school_lite_slider_section',
		'settings' => 'driving_school_lite_slider_arrows_hover_color',
	)));

	//content Alignment
    $wp_customize->add_setting('driving_school_lite_slider_alignment_option',array(
    'default' => 'Left Align',
        'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control('driving_school_lite_slider_alignment_option',array(
        'type' => 'radio',
        'label' => __('Slider Content Alignment','driving-school-lite'),
        'section' => 'driving_school_lite_slider_section',
        'choices' => array(
            'Center Align' => __('Center Align','driving-school-lite'),
            'Left Align' => __('Left Align','driving-school-lite'),
            'Right Align' => __('Right Align','driving-school-lite'),
        ),
	) );

	$wp_customize->add_setting('driving_school_lite_content_position',array(
		'sanitize_callback'	=> 'esc_html'
	));
	$wp_customize->add_control('driving_school_lite_content_position',array(
		'label'	=> esc_html__('Slider Content Position','driving-school-lite'),
		'section'=> 'driving_school_lite_slider_section',
	));

	$wp_customize->add_setting( 'driving_school_lite_slider_top_position', array(
		'default'  => '',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	) );
	$wp_customize->add_control( 'driving_school_lite_slider_top_position', array(
		'label' => esc_html__( 'Top','driving-school-lite' ),
		'section' => 'driving_school_lite_slider_section',
		'type'  => 'number',
		'input_attrs' => array(
			'step' => 1,
			'min' => 0,
			'max' => 100,
		),
	) );

	$wp_customize->add_setting( 'driving_school_lite_slider_bottom_position', array(
		'default'  => '',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	) );
	$wp_customize->add_control( 'driving_school_lite_slider_bottom_position', array(
		'label' => esc_html__( 'Bottom','driving-school-lite' ),
		'section' => 'driving_school_lite_slider_section',
		'type'  => 'number',
		'input_attrs' => array(
			'step' => 1,
			'min' => 0,
			'max' => 100,
		),
	) );

	$wp_customize->add_setting( 'driving_school_lite_slider_left_position', array(
		'default'  => '',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	) );
	$wp_customize->add_control( 'driving_school_lite_slider_left_position', array(
		'label' => esc_html__( 'Left','driving-school-lite'),
		'section' => 'driving_school_lite_slider_section',
		'type'  => 'number',
		'input_attrs' => array(
			'step' => 1,
			'min' => 0,
			'max' => 100,
		),
	) );

	$wp_customize->add_setting( 'driving_school_lite_slider_right_position', array(
		'default'  => '',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	) );
	$wp_customize->add_control( 'driving_school_lite_slider_right_position', array(
		'label' => esc_html__('Right','driving-school-lite'),
		'section' => 'driving_school_lite_slider_section',
		'type'  => 'number',
		'input_attrs' => array(
			'step' => 1,
			'min' => 0,
			'max' => 100,
		),
	) );

    //Slider excerpt
	$wp_customize->add_setting( 'driving_school_lite_slider_excerpt_number', array(
		'default'              => 25,
		'sanitize_callback'    => 'absint',
	) );
	$wp_customize->add_control( 'driving_school_lite_slider_excerpt_number', array(
		'label'       => esc_html__( 'Slider Excerpt length','driving-school-lite' ),
		'section'     => 'driving_school_lite_slider_section',
		'type'        => 'number',
		'settings'    => 'driving_school_lite_slider_excerpt_number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting( 'driving_school_lite_slider_button_label', array(
		'default' => __('BOOK LESSON','driving-school-lite' ),
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'driving_school_lite_slider_button_label', array(
		'label' => esc_html__( 'Slider Button Label','driving-school-lite' ),
		'section'     => 'driving_school_lite_slider_section',
		'type'        => 'text',
		'settings'    => 'driving_school_lite_slider_button_label'
	) );

	$wp_customize->add_setting('driving_school_lite_slider_button_link',array(
        'default'=> '',
        'sanitize_callback' => 'esc_url_raw'
    ));
    $wp_customize->add_control('driving_school_lite_slider_button_link',array(
        'label' => esc_html__('Add Button Link','driving-school-lite'),
        'section'=> 'driving_school_lite_slider_section',
        'type'=> 'url'
    ));

	$wp_customize->add_setting('driving_school_lite_slider_btn_color', array(
		'default'           => '#fff',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'driving_school_lite_slider_btn_color', array(
		'label'    => __('Slider Button Lable Color', 'driving-school-lite'),
		'section'  => 'driving_school_lite_slider_section',
		'settings' => 'driving_school_lite_slider_btn_color',
	)));

	$wp_customize->add_setting('driving_school_lite_slider_btn_bg_color', array(
		'default'           => '#000',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'driving_school_lite_slider_btn_bg_color', array(
		'label'    => __('Slider Button Bg Color', 'driving-school-lite'),
		'section'  => 'driving_school_lite_slider_section',
		'settings' => 'driving_school_lite_slider_btn_bg_color',
	)));

	//Opacity
	$wp_customize->add_setting('driving_school_lite_slider_image_opacity',array(
		'default'              => '0.9',
		'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control( 'driving_school_lite_slider_image_opacity', array(
	'label'       => esc_html__( 'Slider Image Opacity','driving-school-lite' ),
	'section'     => 'driving_school_lite_slider_section',
	'type'        => 'select',
	'settings'    => 'driving_school_lite_slider_image_opacity',
	'choices' => array(
		'0' =>  esc_attr('0','driving-school-lite'),
		'0.1' =>  esc_attr('0.1','driving-school-lite'),
		'0.2' =>  esc_attr('0.2','driving-school-lite'),
		'0.3' =>  esc_attr('0.3','driving-school-lite'),
		'0.4' =>  esc_attr('0.4','driving-school-lite'),
		'0.5' =>  esc_attr('0.5','driving-school-lite'),
		'0.6' =>  esc_attr('0.6','driving-school-lite'),
		'0.7' =>  esc_attr('0.7','driving-school-lite'),
		'0.8' =>  esc_attr('0.8','driving-school-lite'),
		'0.9' =>  esc_attr('0.9','driving-school-lite')
	),
	));

	$wp_customize->add_setting( 'driving_school_lite_slider_height', array(
		'default'          => '',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	) );
	$wp_customize->add_control( 'driving_school_lite_slider_height', array(
		'label'       => esc_html__( 'Slider Height','driving-school-lite' ),
		'section'     => 'driving_school_lite_slider_section',
		'type'        => 'number',
		'description' => __('Measurement is in pixel.','driving-school-lite'),
		'input_attrs' => array(
			'step' => 1,
			'min'  => 500,
			'max'  => 1000,
		),
	) );

	//Our Features Section
	$wp_customize->add_section('driving_school_lite_features',array(
		'title'	=> __('Our Features','driving-school-lite'),
		'description'	=> __('Add our features sections below.','driving-school-lite'),
		'panel' => 'driving_school_lite_panel_id',
	));

	$wp_customize->add_setting('driving_school_lite_page_title',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('driving_school_lite_page_title',array(
		'label'	=> __('Section Title','driving-school-lite'),
		'section'	=> 'driving_school_lite_features',
		'type'		=> 'text'
	));

	// category left
	$categories = get_categories();
	$cats = array();
	$i = 0;
	$cat_post[]= 'select';
	foreach($categories as $category){
		if($i==0){
			$default = $category->slug;
			$i++;
		}
		$cat_post[$category->slug] = $category->name;
	}

    $wp_customize->add_setting( 'driving_school_lite_category', array(
      'default'           => '',
      'sanitize_callback' => 'driving_school_lite_sanitize_choices'
    ));
    $wp_customize->add_control('driving_school_lite_category',array(
		'type'    => 'select',
		'choices' => $cat_post,
		'label' => __('Select Category to display Latest Post','driving-school-lite'),
		'section' => 'driving_school_lite_features',
	));

	//layout setting
	$wp_customize->add_section( 'driving_school_lite_theme_layout', array(
    	'title'      => __( 'Blog Settings', 'driving-school-lite' ),
		'priority'   => null,
		'panel' => 'driving_school_lite_panel_id'
	) );

	// Add Settings and Controls for Layout
	$wp_customize->add_setting('driving_school_lite_layout',array(
        'default' => 'Right Sidebar',
        'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	) );
	$wp_customize->add_control('driving_school_lite_layout',array(
        'type' => 'radio',
        'label' => __( 'Blog Layout', 'driving-school-lite' ),
        'section' => 'driving_school_lite_theme_layout',
        'choices' => array(
            'Left Sidebar' => __('Left Sidebar','driving-school-lite'),
            'Right Sidebar' => __('Right Sidebar','driving-school-lite'),
            'One Column' => __('One Column','driving-school-lite'),
            'Three Columns' => __('Three Columns','driving-school-lite'),
            'Four Columns' => __('Four Columns','driving-school-lite'),
            'Grid Layout' => __('Grid Layout','driving-school-lite')
        ),
	));

    $wp_customize->add_setting('driving_school_lite_blog_post_display_type',array(
        'default' => 'blocks',
        'sanitize_callback' => 'driving_school_lite_sanitize_choices'
    ));
	$wp_customize->add_control('driving_school_lite_blog_post_display_type', array(
        'type' => 'select',
        'label' => __( 'Blog Page Display Type', 'driving-school-lite' ),
        'section' => 'driving_school_lite_theme_layout',
        'choices' => array(
            'blocks' => __('Blocks','driving-school-lite'),
            'without blocks' => __('Without Blocks','driving-school-lite'),
        ),
    ));

    $wp_customize->add_setting('driving_school_lite_featured_image',array(
       'default' => 'true',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_featured_image',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Featured Image','driving-school-lite'),
       'section' => 'driving_school_lite_theme_layout'
    ));

    $wp_customize->add_setting('driving_school_lite_metafields_date',array(
       'default' => 'true',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_metafields_date',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Date ','driving-school-lite'),
       'section' => 'driving_school_lite_theme_layout'
    ));

    $wp_customize->add_setting('driving_school_lite_postdate_icon',array(
		'default'	=> 'fas fa-calendar-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_postdate_icon',array(
		'label'	=> __('Add Post Date Icon','driving-school-lite'),
		'transport' => 'refresh',
		'section'	=> 'driving_school_lite_theme_layout',
		'setting'	=> 'driving_school_lite_postdate_icon',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('driving_school_lite_metafields_author',array(
       'default' => 'true',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_metafields_author',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Author','driving-school-lite'),
       'section' => 'driving_school_lite_theme_layout'
    ));

    $wp_customize->add_setting('driving_school_lite_postauthor_icon',array(
		'default'	=> 'fa fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_postauthor_icon',array(
		'label'	=> __('Add Post Author Icon','driving-school-lite'),
		'transport' => 'refresh',
		'section'	=> 'driving_school_lite_theme_layout',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('driving_school_lite_metafields_comment',array(
       'default' => 'true',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_metafields_comment',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Comments','driving-school-lite'),
       'section' => 'driving_school_lite_theme_layout'
    ));

    $wp_customize->add_setting('driving_school_lite_postcomment_icon',array(
		'default'	=> 'fas fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_postcomment_icon',array(
		'label'	=> __('Add Post Comments Icon','driving-school-lite'),
		'transport' => 'refresh',
		'section'	=> 'driving_school_lite_theme_layout',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('driving_school_lite_metafields_time',array(
       'default' => 'true',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_metafields_time',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Time','driving-school-lite'),
       'section' => 'driving_school_lite_theme_layout'
    ));

    $wp_customize->add_setting('driving_school_lite_posttime_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_posttime_icon',array(
		'label'	=> __('Add Post Time Icon','driving-school-lite'),
		'transport' => 'refresh',
		'section'	=> 'driving_school_lite_theme_layout',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('driving_school_lite_post_navigation',array(
       'default' => 'true',
       'sanitize_callback' => 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_post_navigation',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Post Navigation','driving-school-lite'),
       'section' => 'driving_school_lite_theme_layout'
    ));

    $wp_customize->add_setting('driving_school_lite_metabox_seperator',array(
       'default' => '|',
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('driving_school_lite_metabox_seperator',array(
       'type' => 'text',
       'label' => __('Metabox Seperator','driving-school-lite'),
       'description' => __('Ex: "/", "|", "-", ...','driving-school-lite'),
       'section' => 'driving_school_lite_theme_layout'
    ));

    $wp_customize->add_setting('driving_school_lite_blog_post_content',array(
    	'default' => 'Excerpt Content',
        'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control('driving_school_lite_blog_post_content',array(
        'type' => 'radio',
        'label' => __('Blog Post Content Type','driving-school-lite'),
        'section' => 'driving_school_lite_theme_layout',
        'choices' => array(
            'No Content' => __('No Content','driving-school-lite'),
            'Full Content' => __('Full Content','driving-school-lite'),
            'Excerpt Content' => __('Excerpt Content','driving-school-lite'),
        ),
	) );

    $wp_customize->add_setting( 'driving_school_lite_post_excerpt_number', array(
		'default'              => 20,
		'sanitize_callback'	=> 'absint'
	) );
	$wp_customize->add_control( 'driving_school_lite_post_excerpt_number', array(
		'label'       => esc_html__( 'Blog Post Excerpt Number (Max 50)','driving-school-lite' ),
		'section'     => 'driving_school_lite_theme_layout',
		'type'        => 'number',
		'settings'    => 'driving_school_lite_post_excerpt_number',
		'input_attrs' => array(
			'step'             => 2,
			'min'              => 0,
			'max'              => 50,
		),
		'active_callback' => 'driving_school_lite_excerpt_enabled'
	) );

	$wp_customize->add_setting( 'driving_school_lite_button_excerpt_suffix', array(
		'default'   => '...',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'driving_school_lite_button_excerpt_suffix', array(
		'label'       => esc_html__( 'Post Excerpt Suffix','driving-school-lite' ),
		'section'     => 'driving_school_lite_theme_layout',
		'type'        => 'text',
		'settings'    => 'driving_school_lite_button_excerpt_suffix',
		'active_callback' => 'driving_school_lite_excerpt_enabled'
	) );

	//Featured Image
	$wp_customize->add_setting('driving_school_lite_blog_image_dimension',array(
       'default' => 'default',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_choices'
    ));
    $wp_customize->add_control('driving_school_lite_blog_image_dimension',array(
       'type' => 'radio',
       'label'	=> __('Blog Post Featured Image Dimension','driving-school-lite'),
       'choices' => array(
            'default' => __('Default','driving-school-lite'),
            'custom' => __('Custom Image Size','driving-school-lite'),
        ),
      	'section'	=> 'driving_school_lite_theme_layout',
    ));

    $wp_customize->add_setting( 'driving_school_lite_feature_image_custom_width', array(
		'default'=> '250',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( new Driving_School_Lite_WP_Customize_Range_Control( $wp_customize, 'driving_school_lite_feature_image_custom_width', array(
        'label'  => __('Featured Image Custom Width','driving-school-lite'),
        'section'  => 'driving_school_lite_theme_layout',
        'description' => __('Measurement is in pixel.','driving-school-lite'),
        'input_attrs' => array(
            'min' => 0,
            'max' => 400,
        ),
		'active_callback' => 'driving_school_lite_blog_image_dimension'
    )));

    $wp_customize->add_setting( 'driving_school_lite_feature_image_custom_height', array(
		'default'=> '250',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( new Driving_School_Lite_WP_Customize_Range_Control( $wp_customize, 'driving_school_lite_feature_image_custom_height', array(
        'label'  => __('Featured Image Custom Height','driving-school-lite'),
        'section'  => 'driving_school_lite_theme_layout',
        'description' => __('Measurement is in pixel.','driving-school-lite'),
        'input_attrs' => array(
            'min' => 0,
            'max' => 400,
        ),
		'active_callback' => 'driving_school_lite_blog_image_dimension'
    )));

	$wp_customize->add_setting( 'driving_school_lite_feature_image_border_radius', array(
		'default'=> '0',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( new Driving_School_Lite_WP_Customize_Range_Control( $wp_customize, 'driving_school_lite_feature_image_border_radius', array(
        'label'  => __('Featured Image Border Radius','driving-school-lite'),
        'section'  => 'driving_school_lite_theme_layout',
        'description' => __('Measurement is in pixel.','driving-school-lite'),
        'input_attrs' => array(
            'min' => 0,
            'max' => 50,
        ),
    )));

    $wp_customize->add_setting( 'driving_school_lite_feature_image_shadow', array(
		'default'=> '0',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( new Driving_School_Lite_WP_Customize_Range_Control( $wp_customize, 'driving_school_lite_feature_image_shadow', array(
        'label'  => __('Featured Image Shadow','driving-school-lite'),
        'section'  => 'driving_school_lite_theme_layout',
        'description' => __('Measurement is in pixel.','driving-school-lite'),
        'input_attrs' => array(
            'min' => 0,
            'max' => 50,
        ),
    )));

    $wp_customize->add_setting( 'driving_school_lite_pagination_type', array(
        'default'			=> 'page-numbers',
        'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control( 'driving_school_lite_pagination_type', array(
        'section' => 'driving_school_lite_theme_layout',
        'type' => 'select',
        'label' => __( 'Blog Pagination Style', 'driving-school-lite' ),
        'choices'		=> array(
            'page-numbers'  => __( 'Number', 'driving-school-lite' ),
            'next-prev' => __( 'Next/Prev', 'driving-school-lite' ),
    )));

    $wp_customize->add_setting('driving_school_lite_blog_nav_position',array(
        'default' => 'bottom',
        'sanitize_callback' => 'driving_school_lite_sanitize_choices'
    ));
	$wp_customize->add_control('driving_school_lite_blog_nav_position', array(
        'type' => 'select',
        'label' => __( 'Blog Post Navigation Position', 'driving-school-lite' ),
        'section' => 'driving_school_lite_theme_layout',
        'choices' => array(
            'top' => __('Top','driving-school-lite'),
            'bottom' => __('Bottom','driving-school-lite'),
            'both' => __('Both','driving-school-lite')
        ),
    ));

    $wp_customize->add_setting( 'driving_school_lite_post_settings_premium_features',array(
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('driving_school_lite_post_settings_premium_features', array(
        'type'=> 'hidden',
        'description' => "<h3>". esc_html('Premium Theme Features!','driving-school-lite') ."</h3>
            <ul>
                <li>". esc_html('Post Share Facebook,Linkedin,Twitter Setting','driving-school-lite') ."</li>
                <li>". esc_html('... and Other Premium Features','driving-school-lite') ."</li>
            </ul>
            <a target='_blank' href='". esc_url('https://www.themesglance.com/products/driving-school-wordpress-theme') ." '>". esc_html('Upgrade Now','driving-school-lite') ."</a>",
        'section' => 'driving_school_lite_theme_layout'
        )
    );

	$wp_customize->add_section( 'driving_school_lite_single_post_settings', array(
		'title' => __( 'Single Post Options', 'driving-school-lite' ),
		'panel' => 'driving_school_lite_panel_id',
	));

	$wp_customize->add_setting('driving_school_lite_single_post_breadcrumb',array(
       'default' => 'true',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_single_post_breadcrumb',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Breadcrumb','driving-school-lite'),
       'section' => 'driving_school_lite_single_post_settings'
    ));

	$wp_customize->add_setting('driving_school_lite_single_post_date',array(
       'default' => 'true',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_single_post_date',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Date','driving-school-lite'),
       'section' => 'driving_school_lite_single_post_settings'
    ));

    $wp_customize->add_setting('driving_school_lite_singlepost_date_icon',array(
		'default'	=> 'fas fa-calendar-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_singlepost_date_icon',array(
		'label'	=> __('Add Single Post Date Icon','driving-school-lite'),
		'transport' => 'refresh',
		'section'	=> 'driving_school_lite_single_post_settings',
		'setting'	=> 'driving_school_lite_singlepost_date_icon',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('driving_school_lite_single_post_author',array(
       'default' => 'true',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_single_post_author',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Author','driving-school-lite'),
       'section' => 'driving_school_lite_single_post_settings'
    ));

    $wp_customize->add_setting('driving_school_lite_singlepost_author_icon',array(
		'default'	=> 'fa fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_singlepost_author_icon',array(
		'label'	=> __('Add Single Post Author Icon','driving-school-lite'),
		'transport' => 'refresh',
		'section'	=> 'driving_school_lite_single_post_settings',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('driving_school_lite_single_post_comment_no',array(
       'default' => 'true',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_single_post_comment_no',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Comment Number','driving-school-lite'),
       'section' => 'driving_school_lite_single_post_settings'
    ));

    $wp_customize->add_setting('driving_school_lite_single_post_comment_icon',array(
		'default'	=> 'fas fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_single_post_comment_icon',array(
		'label'	=> __('Add Single Post Comments Icon','driving-school-lite'),
		'transport' => 'refresh',
		'section'	=> 'driving_school_lite_single_post_settings',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('driving_school_lite_single_post_time',array(
       'default' => 'true',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_single_post_time',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Time','driving-school-lite'),
       'section' => 'driving_school_lite_single_post_settings'
    ));

    $wp_customize->add_setting('driving_school_lite_single_post_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_single_post_time_icon',array(
		'label'	=> __('Add Single Post Time Icon','driving-school-lite'),
		'transport' => 'refresh',
		'section'	=> 'driving_school_lite_single_post_settings',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('driving_school_lite_single_post_metabox_seperator',array(
       'default' => '|',
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('driving_school_lite_single_post_metabox_seperator',array(
       'type' => 'text',
       'label' => __('Metabox Seperator','driving-school-lite'),
       'description' => __('Ex: "/", "|", "-", ...','driving-school-lite'),
       'section' => 'driving_school_lite_single_post_settings'
    ));

    $wp_customize->add_setting('driving_school_lite_single_post_image',array(
       'default' => 'true',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_single_post_image',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Featured Image','driving-school-lite'),
       'section' => 'driving_school_lite_single_post_settings'
    ));

    $wp_customize->add_setting('driving_school_lite_single_post_category',array(
       'default' => 'true',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_single_post_category',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Category','driving-school-lite'),
       'section' => 'driving_school_lite_single_post_settings'
    ));

	$wp_customize->add_setting('driving_school_lite_metafields_tags',array(
       'default' => 'true',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_metafields_tags',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Tags','driving-school-lite'),
       'section' => 'driving_school_lite_single_post_settings'
    ));

    $wp_customize->add_setting( 'driving_school_lite_post_featured_image', array(
        'default' => 'in-content',
        'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control( 'driving_school_lite_post_featured_image', array(
        'section' => 'driving_school_lite_single_post_settings',
        'type' => 'radio',
        'label' => __( 'Featured Image Display Type', 'driving-school-lite' ),
        'choices'		=> array(
            'banner'  => __('as Banner Image', 'driving-school-lite'),
            'in-content' => __( 'as Featured Image', 'driving-school-lite' ),
    )));

    $wp_customize->add_setting( 'driving_school_lite_single_post_img_border_radius', array(
		'default'=> 0,
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float',
	) );
	$wp_customize->add_control( 'driving_school_lite_single_post_img_border_radius', array(
		'label'       => esc_html__( 'Single Post Image Border Radius','driving-school-lite' ),
		'section'     => 'driving_school_lite_single_post_settings',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 100,
		),
	) );

	$wp_customize->add_setting( 'driving_school_lite_single_post_img_box_shadow',array(
		'default' => 0,
		'sanitize_callback'    => 'driving_school_lite_sanitize_float',
	));
	$wp_customize->add_control('driving_school_lite_single_post_img_box_shadow',array(
		'label' => esc_html__( 'Single Post Image Shadow','driving-school-lite' ),
		'section' => 'driving_school_lite_single_post_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type' => 'number'
	));

    $wp_customize->add_setting('driving_school_lite_single_post_nav',array(
       'default' => 'true',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_single_post_nav',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post Navigation','driving-school-lite'),
       'section' => 'driving_school_lite_single_post_settings'
    ));

    $wp_customize->add_setting( 'driving_school_lite_single_post_prev_nav_text', array(
		'default' => __('Previous','driving-school-lite' ),
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'driving_school_lite_single_post_prev_nav_text', array(
		'label' => esc_html__( 'Single Post Previous Nav text','driving-school-lite' ),
		'section'     => 'driving_school_lite_single_post_settings',
		'type'        => 'text',
		'settings'    => 'driving_school_lite_single_post_prev_nav_text'
	) );

	$wp_customize->add_setting( 'driving_school_lite_single_post_next_nav_text', array(
		'default' => __('Next','driving-school-lite' ),
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'driving_school_lite_single_post_next_nav_text', array(
		'label' => esc_html__( 'Single Post Next Nav text','driving-school-lite' ),
		'section'     => 'driving_school_lite_single_post_settings',
		'type'        => 'text',
		'settings'    => 'driving_school_lite_single_post_next_nav_text'
	) );

    $wp_customize->add_setting('driving_school_lite_single_post_comment',array(
       'default' => 'true',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_single_post_comment',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Single Post comment','driving-school-lite'),
       'section' => 'driving_school_lite_single_post_settings'
    ));

	$wp_customize->add_setting( 'driving_school_lite_comment_width', array(
		'default'=> '100',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( new Driving_School_Lite_WP_Customize_Range_Control( $wp_customize, 'driving_school_lite_comment_width', array(
        'label'  => __('Comment textarea width','driving-school-lite'),
        'section'  => 'driving_school_lite_single_post_settings',
        'description' => __('Measurement is in %.','driving-school-lite'),
        'input_attrs' => array(
            'min' => 0,
            'max' => 100,
        ),
    )));

    $wp_customize->add_setting('driving_school_lite_comment_title',array(
       'default' => __('Leave a Reply','driving-school-lite'),
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('driving_school_lite_comment_title',array(
       'type' => 'text',
       'label' => __('Comment form Title','driving-school-lite'),
       'section' => 'driving_school_lite_single_post_settings'
    ));

    $wp_customize->add_setting('driving_school_lite_comment_submit_text',array(
       'default' => __('Post Comment','driving-school-lite'),
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('driving_school_lite_comment_submit_text',array(
       'type' => 'text',
       'label' => __('Comment Submit Button Label','driving-school-lite'),
       'section' => 'driving_school_lite_single_post_settings'
    ));

	$wp_customize->add_setting('driving_school_lite_related_posts',array(
       'default' => true,
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_related_posts',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Related Posts','driving-school-lite'),
       'section' => 'driving_school_lite_single_post_settings'
    ));

    $wp_customize->add_setting('driving_school_lite_related_posts_title',array(
       'default' => __('You May Also Like','driving-school-lite'),
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('driving_school_lite_related_posts_title',array(
       'type' => 'text',
       'label' => __('Related Posts Title','driving-school-lite'),
       'section' => 'driving_school_lite_single_post_settings'
    ));

    $wp_customize->add_setting( 'driving_school_lite_related_post_count', array(
		'default' => 3,
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	) );
	$wp_customize->add_control( 'driving_school_lite_related_post_count', array(
		'label' => esc_html__( 'Related Posts Count','driving-school-lite' ),
		'section' => 'driving_school_lite_single_post_settings',
		'type' => 'number',
		'settings' => 'driving_school_lite_related_post_count',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 6,
		),
	) );

    $wp_customize->add_setting( 'driving_school_lite_post_shown_by', array(
        'default' => 'categories',
        'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control( 'driving_school_lite_post_shown_by', array(
        'section' => 'driving_school_lite_single_post_settings',
        'type' => 'radio',
        'label' => __( 'Related Posts must be shown:', 'driving-school-lite' ),
        'choices'		=> array(
            'categories' => __('By Categories', 'driving-school-lite'),
            'tags' => __( 'By Tags', 'driving-school-lite' ),
    )));

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

	$wp_customize->add_control('driving_school_lite_related_post_excerpt_number',	array(
		'label' => esc_html__( 'Related Posts Content Limit','driving-school-lite' ),
		'section' => 'driving_school_lite_single_post_settings',
		'type'    => 'number',
	 	'settings' => 'driving_school_lite_related_post_excerpt_number',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	// Grid layout setting
	$wp_customize->add_section( 'driving_school_lite_grid_layout_settings', array(
		'title' => __( 'Grid Layout Settings', 'driving-school-lite' ),
		'panel' => 'driving_school_lite_panel_id',
	));

	$wp_customize->add_setting('driving_school_lite_grid_button_text',array(
		'default'=> esc_html__('Read Full','driving-school-lite'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('driving_school_lite_grid_button_text',array(
		'label'	=> esc_html__('Add Button Text','driving-school-lite'),
		'input_attrs' => array(
        'placeholder' => esc_html__( 'Read Full', 'driving-school-lite' ),
      ),
		'section'=> 'driving_school_lite_grid_layout_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('driving_school_lite_grid_excerpt_suffix',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('driving_school_lite_grid_excerpt_suffix',array(
		'label'	=> __('Add Excerpt Suffix','driving-school-lite'),
		'input_attrs' => array(
            'placeholder' => __( '[...]', 'driving-school-lite' ),
        ),
		'section'=> 'driving_school_lite_grid_layout_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('driving_school_lite_grid_post_metabox_seperator',array(
       'default' => '|',
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('driving_school_lite_grid_post_metabox_seperator',array(
       'type' => 'text',
       'label' => __('Metabox Seperator','driving-school-lite'),
       'description' => __('Ex: "/", "|", "-", ...','driving-school-lite'),
       'section' => 'driving_school_lite_grid_layout_settings'
    ));

    $wp_customize->add_setting('driving_school_lite_grid_post_date',array(
		'default' => 'true',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
	));
	$wp_customize->add_control('driving_school_lite_grid_post_date',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Date ','driving-school-lite'),
		'section' => 'driving_school_lite_grid_layout_settings'
	));

	$wp_customize->add_setting('driving_school_lite_grid_post_author',array(
		'default' => 'true',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
	));
	$wp_customize->add_control('driving_school_lite_grid_post_author',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Author','driving-school-lite'),
		'section' => 'driving_school_lite_grid_layout_settings'
	));

	$wp_customize->add_setting('driving_school_lite_grid_post_comment',array(
		'default' => 'true',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
	));
	$wp_customize->add_control('driving_school_lite_grid_post_comment',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Comments','driving-school-lite'),
		'section' => 'driving_school_lite_grid_layout_settings'
	));

	$wp_customize->add_setting('driving_school_lite_grid_post_time',array(
		'default' => 'true',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
	));
	$wp_customize->add_control('driving_school_lite_grid_post_time',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Time','driving-school-lite'),
		'section' => 'driving_school_lite_grid_layout_settings'
	));

	$wp_customize->add_setting('driving_school_lite_grid_post_featured_image',array(
       'default' => 'true',
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_grid_post_featured_image',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Featured Image','driving-school-lite'),
       'section' => 'driving_school_lite_grid_layout_settings'
    ));

	$wp_customize->add_setting('driving_school_lite_grid_post_display_type',array(
		'default' => 'blocks',
		'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control('driving_school_lite_grid_post_display_type', array(
		'type' => 'select',
		'label' => __( 'Grid Post Display Type', 'driving-school-lite' ),
		'section' => 'driving_school_lite_grid_layout_settings',
		'choices' => array(
		   'blocks' => __('Blocks','driving-school-lite'),
		   'without blocks' => __('Without Blocks','driving-school-lite'),
		),
    ));

	// Button option
	$wp_customize->add_section( 'driving_school_lite_button_options', array(
		'title' =>  __( 'Button Options', 'driving-school-lite' ),
		'panel' => 'driving_school_lite_panel_id',
	));

    $wp_customize->add_setting( 'driving_school_lite_blog_button_text', array(
		'default' => __('Read Full', 'driving-school-lite' ),
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'driving_school_lite_blog_button_text', array(
		'label'       => esc_html__( 'Blog Post Button Label','driving-school-lite' ),
		'section'     => 'driving_school_lite_button_options',
		'type'        => 'text',
		'settings'    => 'driving_school_lite_blog_button_text'
	) );

	$wp_customize->add_setting('driving_school_lite_button_padding',array(
		'sanitize_callback'	=> 'esc_html'
	));
	$wp_customize->add_control('driving_school_lite_button_padding',array(
		'label'	=> __('Button Padding','driving-school-lite'),
		'section'=> 'driving_school_lite_button_options',
		'active_callback' => 'driving_school_lite_button_enabled'
	));

	$wp_customize->add_setting('driving_school_lite_top_button_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_top_button_padding',array(
		'label'	=> __('Top','driving-school-lite'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'driving_school_lite_button_options',
		'type'=> 'number',
		'active_callback' => 'driving_school_lite_button_enabled'
	));

	$wp_customize->add_setting('driving_school_lite_bottom_button_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_bottom_button_padding',array(
		'label'	=> __('Bottom','driving-school-lite'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'driving_school_lite_button_options',
		'type'=> 'number',
		'active_callback' => 'driving_school_lite_button_enabled'
	));

	$wp_customize->add_setting('driving_school_lite_left_button_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_left_button_padding',array(
		'label'	=> __('Left','driving-school-lite'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'driving_school_lite_button_options',
		'type'=> 'number',
		'active_callback' => 'driving_school_lite_button_enabled'
	));

	$wp_customize->add_setting('driving_school_lite_right_button_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_right_button_padding',array(
		'label'	=> __('Right','driving-school-lite'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'driving_school_lite_button_options',
		'type'=> 'number',
		'active_callback' => 'driving_school_lite_button_enabled'
	));

	$wp_customize->add_setting( 'driving_school_lite_button_border_radius', array(
		'default'=> 0,
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( new Driving_School_Lite_WP_Customize_Range_Control( $wp_customize, 'driving_school_lite_button_border_radius', array(
            'label'  => __('Border Radius','driving-school-lite'),
            'section'  => 'driving_school_lite_button_options',
            'description' => __('Measurement is in pixel.','driving-school-lite'),
            'input_attrs' => array(
                'min' => 0,
                'max' => 50,
            ),
			'active_callback' => 'driving_school_lite_button_enabled'
    )));

	// letter spacing button
	$wp_customize->add_setting( 'driving_school_lite_button_letter_spacing',array(
		'default' => '0',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control( new driving_school_lite_WP_Customize_Range_Control( $wp_customize, 'driving_school_lite_button_letter_spacing', array(
		'label'  => __('Button Letter Spacing','driving-school-lite'),
		'section'  => 'driving_school_lite_button_options',
		'description' => __('Measurement is in pixel.','driving-school-lite'),
		'input_attrs' => array(
		   'min' => 0,
		   'max' => 50,
		)
 	)));

    // font size button
 	$wp_customize->add_setting( 'driving_school_lite_button_font_size',array(
		'default' => '16',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control( new driving_school_lite_WP_Customize_Range_Control( $wp_customize, 'driving_school_lite_button_font_size', array(
		'label'  => __('Button Font Size','driving-school-lite'),
		'section'  => 'driving_school_lite_button_options',
		'description' => __('Measurement is in pixel.','driving-school-lite'),
		'input_attrs' => array(
		   'min' => 0,
		   'max' => 50,
		)
 	)));

 	$wp_customize->add_setting('driving_school_lite_button_font_weight',array(
    'default' => '',
    'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control('driving_school_lite_button_font_weight',array(
	    'type' => 'select',
	    'label' => __('Button Font Weight','driving-school-lite'),
	    'section' => 'driving_school_lite_button_options',
	    'choices' => array(
	       '100' => __('100','driving-school-lite'),
	       '200' => __('200','driving-school-lite'),
	       '300' => __('300','driving-school-lite'),
	       '400' => __('400','driving-school-lite'),
	       '500' => __('500','driving-school-lite'),
	       '600' => __('600','driving-school-lite'),
	       '700' => __('700','driving-school-lite'),
	       '800' => __('800','driving-school-lite'),
	       '900' => __('900','driving-school-lite'),
	    ),
	) );

	$wp_customize->add_setting('driving_school_lite_button_text_transform',array(
        'default' => '',
        'sanitize_callback' => 'driving_school_lite_sanitize_choices'
  	));
  	$wp_customize->add_control('driving_school_lite_button_text_transform',array(
        'type' => 'select',
        'label' => __('Button Text transform','driving-school-lite'),
        'section' => 'driving_school_lite_button_options',
        'choices' => array(
            'uppercase' => __('Uppercase','driving-school-lite'),
            'capitalize' => __('Capitalize','driving-school-lite'),
            'lowercase' => __('lowercase','driving-school-lite'),
        ),
  	) );

    //Sidebar setting
	$wp_customize->add_section( 'driving_school_lite_sidebar_options', array(
    	'title'   => __( 'Sidebar options', 'driving-school-lite' ),
		'priority'   => null,
		'panel' => 'driving_school_lite_panel_id'
	) );

	$wp_customize->add_setting('driving_school_lite_single_page_layout',array(
        'default' => 'One Column',
        'sanitize_callback' => 'driving_school_lite_sanitize_choices'
    ));
	$wp_customize->add_control('driving_school_lite_single_page_layout', array(
        'type' => 'select',
        'label' => __( 'Single Page Layout', 'driving-school-lite' ),
        'section' => 'driving_school_lite_sidebar_options',
        'choices' => array(
            'Left Sidebar' => __('Left Sidebar','driving-school-lite'),
            'Right Sidebar' => __('Right Sidebar','driving-school-lite'),
            'One Column' => __('One Column','driving-school-lite')
        ),
    ));

    $wp_customize->add_setting('driving_school_lite_single_post_layout',array(
        'default' => 'Right Sidebar',
        'sanitize_callback' => 'driving_school_lite_sanitize_choices'
    ));
	$wp_customize->add_control('driving_school_lite_single_post_layout', array(
        'type' => 'select',
        'label' => __( 'Single Post Layout', 'driving-school-lite' ),
        'section' => 'driving_school_lite_sidebar_options',
        'choices' => array(
            'Left Sidebar' => __('Left Sidebar','driving-school-lite'),
            'Right Sidebar' => __('Right Sidebar','driving-school-lite'),
            'One Column' => __('One Column','driving-school-lite')
        ),
    ));

    //Advance Options
	$wp_customize->add_section( 'driving_school_lite_advance_options', array(
    	'title' => __( 'Advance Options', 'driving-school-lite' ),
		'priority'   => null,
		'panel' => 'driving_school_lite_panel_id'
	) );

	$wp_customize->add_setting('driving_school_lite_preloader',array(
       'default' => false,
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_preloader',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Preloader','driving-school-lite'),
       'section' => 'driving_school_lite_advance_options'
    ));

    $wp_customize->add_setting( 'driving_school_lite_preloader_color', array(
	    'default' => '#333333',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'driving_school_lite_preloader_color', array(
  		'label' => __('Preloader Color', 'driving-school-lite'),
	    'section' => 'driving_school_lite_advance_options',
	    'settings' => 'driving_school_lite_preloader_color',
  	)));

  	$wp_customize->add_setting( 'driving_school_lite_preloader_bg_color', array(
	    'default' => '#ffffff',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'driving_school_lite_preloader_bg_color', array(
  		'label' => __('Preloader Background Color', 'driving-school-lite'),
	    'section' => 'driving_school_lite_advance_options',
	    'settings' => 'driving_school_lite_preloader_bg_color',
  	)));

  	$wp_customize->add_setting('driving_school_lite_preloader_bg_img',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'driving_school_lite_preloader_bg_img',array(
        'label' => __('Preloader Background Image','driving-school-lite'),
        'section' => 'driving_school_lite_advance_options'
	)));

  	$wp_customize->add_setting('driving_school_lite_preloader_type',array(
        'default' => 'Square',
        'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control('driving_school_lite_preloader_type',array(
        'type' => 'radio',
        'label' => __('Preloader Type','driving-school-lite'),
        'section' => 'driving_school_lite_advance_options',
        'choices' => array(
            'Square' => __('Square','driving-school-lite'),
            'Circle' => __('Circle','driving-school-lite'),
        ),
	) );

	$wp_customize->add_setting('driving_school_lite_theme_layout_options',array(
        'default' => 'Default Theme',
        'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control('driving_school_lite_theme_layout_options',array(
        'type' => 'radio',
        'label' => __('Theme Layout','driving-school-lite'),
        'section' => 'driving_school_lite_advance_options',
        'choices' => array(
            'Default Theme' => __('Default Theme','driving-school-lite'),
            'Container Theme' => __('Container Theme','driving-school-lite'),
            'Box Container Theme' => __('Box Container Theme','driving-school-lite'),
        ),
	) );

	$wp_customize->add_setting( 'driving_school_lite_single_page_breadcrumb',array(
		'default' => true,
      	'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ) );
    $wp_customize->add_control('driving_school_lite_single_page_breadcrumb',array(
    	'type' => 'checkbox',
        'label' => __( 'Show / Hide Single Page Breadcrumb','driving-school-lite' ),
        'section' => 'driving_school_lite_advance_options'
    ));

    $wp_customize->add_setting('driving_school_lite_breadcrumb_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'driving_school_lite_breadcrumb_color', array(
		'label'    => __('Breadcrumb Color', 'driving-school-lite'),
		'section'  => 'driving_school_lite_advance_options',
	)));

	$wp_customize->add_setting('driving_school_lite_breadcrumb_background_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'driving_school_lite_breadcrumb_background_color', array(
		'label'    => __('Breadcrumb Background Color', 'driving-school-lite'),
		'section'  => 'driving_school_lite_advance_options',
	)));

	$wp_customize->add_setting('driving_school_lite_breadcrumb_hover_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'driving_school_lite_breadcrumb_hover_color', array(
		'label'    => __('Breadcrumb Hover Color', 'driving-school-lite'),
		'section'  => 'driving_school_lite_advance_options',
	)));

	$wp_customize->add_setting('driving_school_lite_breadcrumb_hover_bg_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'driving_school_lite_breadcrumb_hover_bg_color', array(
		'label'    => __('Breadcrumb Hover Background Color', 'driving-school-lite'),
		'section'  => 'driving_school_lite_advance_options',
	)));

	//404 Page Option
	$wp_customize->add_section('driving_school_lite_404_settings',array(
		'title'	=> __('404 Page & Search Result Settings','driving-school-lite'),
		'priority'	=> null,
		'panel' => 'driving_school_lite_panel_id',
	));

	$wp_customize->add_setting('driving_school_lite_404_title',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('driving_school_lite_404_title',array(
		'label'	=> __('404 Title','driving-school-lite'),
		'section'	=> 'driving_school_lite_404_settings',
		'type'		=> 'text'
	));	

	$wp_customize->add_setting('driving_school_lite_404_button_label',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('driving_school_lite_404_button_label',array(
		'label'	=> __('404 button Label','driving-school-lite'),
		'section'	=> 'driving_school_lite_404_settings',
		'type'		=> 'text'
	));	

	$wp_customize->add_setting('driving_school_lite_search_result_title',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('driving_school_lite_search_result_title',array(
		'label'	=> __('No Search Result Title','driving-school-lite'),
		'section'	=> 'driving_school_lite_404_settings',
		'type'		=> 'text'
	));	

	$wp_customize->add_setting('driving_school_lite_search_result_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('driving_school_lite_search_result_text',array(
		'label'	=> __('No Search Result Text','driving-school-lite'),
		'section'	=> 'driving_school_lite_404_settings',
		'type'		=> 'text'
	));	

	//Responsive Settings
	$wp_customize->add_section('driving_school_lite_responsive_options',array(
		'title'	=> __('Responsive Options','driving-school-lite'),
		'panel' => 'driving_school_lite_panel_id'
	));

	$wp_customize->add_setting('driving_school_lite_menu_open_icon',array(
		'default' => 'fas fa-bars',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_menu_open_icon',array(
		'label'	=> __('Menu Open Icon','driving-school-lite'),
		'section' => 'driving_school_lite_responsive_options',
		'type'	  => 'icon',
	)));

	$wp_customize->add_setting('driving_school_lite_mobile_menu_label',array(
       'default' => __('Menu','driving-school-lite'),
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('driving_school_lite_mobile_menu_label',array(
       'type' => 'text',
       'label' => __('Mobile Menu Label','driving-school-lite'),
       'section' => 'driving_school_lite_responsive_options'
    ));

	$wp_customize->add_setting('driving_school_lite_menu_close_icon',array(
		'default'	=> 'fas fa-times-circle',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Driving_School_Lite_Icon_Selector(
        $wp_customize,'driving_school_lite_menu_close_icon',array(
		'label'	=> __('Menu Close Icon','driving-school-lite'),
		'section' => 'driving_school_lite_responsive_options',
		'type'	  => 'icon',
	)));

	$wp_customize->add_setting('driving_school_lite_close_menu_label',array(
       'default' => __('Close Menu','driving-school-lite'),
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('driving_school_lite_close_menu_label',array(
       'type' => 'text',
       'label' => __('Close Menu Label','driving-school-lite'),
       'section' => 'driving_school_lite_responsive_options'
    ));

    //toggle button bg-color
    $wp_customize->add_setting( 'driving_school_lite_toggle_button_bg_color_settings', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
  	));
  	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'driving_school_lite_toggle_button_bg_color_settings', array(
  		'label' => __('Toggle Button Bg Color', 'driving-school-lite'),
	    'section' => 'driving_school_lite_responsive_options',
	    'settings' => 'driving_school_lite_toggle_button_bg_color_settings',
  	)));

    $wp_customize->add_setting('driving_school_lite_sticky_header_responsive',array(
        'default' => false,
        'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
	));
	$wp_customize->add_control('driving_school_lite_sticky_header_responsive',array(
     	'type' => 'checkbox',
      	'label' => __('Enable Sticky Header','driving-school-lite'),
      	'section' => 'driving_school_lite_responsive_options',
	));

	$wp_customize->add_setting('driving_school_lite_hide_topbar_responsive',array(
        'default' => true,
        'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
	));
	$wp_customize->add_control('driving_school_lite_hide_topbar_responsive',array(
     	'type' => 'checkbox',
      	'label' => __('Enable Top Header','driving-school-lite'),
      	'section' => 'driving_school_lite_responsive_options',
	));

	$wp_customize->add_setting('driving_school_lite_slider_responsive',array(
        'default' => true,
        'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
	));
	$wp_customize->add_control('driving_school_lite_slider_responsive',array(
     	'type' => 'checkbox',
      	'label' => __('Enable Slider','driving-school-lite'),
      	'section' => 'driving_school_lite_responsive_options',
	));

	$wp_customize->add_setting('driving_school_lite_slider_button_responsive',array(
        'default' => true,
        'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
	));
	$wp_customize->add_control('driving_school_lite_slider_button_responsive',array(
     	'type' => 'checkbox',
      	'label' => __('Enable Slider Button','driving-school-lite'),
      	'section' => 'driving_school_lite_responsive_options',
	));

	$wp_customize->add_setting('driving_school_lite_preloader_responsive',array(
        'default' => false,
        'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
	));
	$wp_customize->add_control('driving_school_lite_preloader_responsive',array(
     	'type' => 'checkbox',
      	'label' => __('Enable Preloader','driving-school-lite'),
      	'section' => 'driving_school_lite_responsive_options',
	));

	$wp_customize->add_setting('driving_school_lite_backtotop_responsive',array(
        'default' => true,
        'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
	));
	$wp_customize->add_control('driving_school_lite_backtotop_responsive',array(
     	'type' => 'checkbox',
      	'label' => __('Enable Back to Top','driving-school-lite'),
      	'section' => 'driving_school_lite_responsive_options',
	));

	$wp_customize->add_setting( 'driving_school_lite_sidebar_hide_show',array(
      'default' => true,
      'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_sidebar_hide_show',array(
      'type' => 'checkbox',
      'label' => esc_html__( 'Enable Sidebar','driving-school-lite' ),
      'section' => 'driving_school_lite_responsive_options'
    ));

	//Woocommerce Options
	$wp_customize->add_section('driving_school_lite_woocommerce',array(
		'title'	=> __('WooCommerce Options','driving-school-lite'),
		'panel' => 'driving_school_lite_panel_id',
	));

	$wp_customize->add_setting('driving_school_lite_shop_page_sidebar',array(
       'default' => false,
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_shop_page_sidebar',array(
       'type' => 'checkbox',
       'label' => __('Enable Shop Page Sidebar','driving-school-lite'),
       'section' => 'driving_school_lite_woocommerce'
    ));

    // shop page sidebar alignment
    $wp_customize->add_setting('driving_school_lite_shop_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'driving_school_lite_sanitize_choices',
	));
	$wp_customize->add_control('driving_school_lite_shop_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Shop Page layout', 'driving-school-lite'),
		'section'        => 'driving_school_lite_woocommerce',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'driving-school-lite'),
			'Right Sidebar' => __('Right Sidebar', 'driving-school-lite'),
		),
	));


    $wp_customize->add_setting('driving_school_lite_shop_page_navigation',array(
       'default' => true,
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_shop_page_navigation',array(
       'type' => 'checkbox',
       'label' => __('Enable Shop Page Pagination','driving-school-lite'),
       'section' => 'driving_school_lite_woocommerce'
    ));

    $wp_customize->add_setting('driving_school_lite_single_product_sidebar',array(
       'default' => false,
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_single_product_sidebar',array(
       'type' => 'checkbox',
       'label' => __('Enable Single Product Page Sidebar','driving-school-lite'),
       'section' => 'driving_school_lite_woocommerce'
    ));

    // Single product Page sidebar alignment
    $wp_customize->add_setting('driving_school_lite_single_product_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'driving_school_lite_sanitize_choices',
	));
	$wp_customize->add_control('driving_school_lite_single_product_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Single Product Page Layout', 'driving-school-lite'),
		'section'        => 'driving_school_lite_woocommerce',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'driving-school-lite'),
			'Right Sidebar' => __('Right Sidebar', 'driving-school-lite'),
		),
	));

    $wp_customize->add_setting('driving_school_lite_single_related_products',array(
       'default' => true,
       'sanitize_callback' => 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_single_related_products',array(
       'type' => 'checkbox',
       'label' => __('Enable related Products','driving-school-lite'),
       'section' => 'driving_school_lite_woocommerce'
    ));

    $wp_customize->add_setting('driving_school_lite_products_per_page',array(
		'default'=> '9',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_products_per_page',array(
		'label'	=> __('Products Per Page','driving-school-lite'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'driving_school_lite_woocommerce',
		'type'=> 'number',
	));

	$wp_customize->add_setting('driving_school_lite_products_per_row',array(
		'default'=> '3',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control('driving_school_lite_products_per_row',array(
		'label'	=> __('Products Per Row','driving-school-lite'),
		'choices' => array(
            '2' => '2',
			'3' => '3',
			'4' => '4',
        ),
		'section'=> 'driving_school_lite_woocommerce',
		'type'=> 'select',
	));

	$wp_customize->add_setting('driving_school_lite_product_border',array(
       'default' => false,
       'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_product_border',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide product border','driving-school-lite'),
       'section' => 'driving_school_lite_woocommerce',
    ));

    $wp_customize->add_setting('driving_school_lite_product_padding',array(
		'sanitize_callback'	=> 'esc_html'
	));
	$wp_customize->add_control('driving_school_lite_product_padding',array(
		'label'	=> esc_html__('Product Padding','driving-school-lite'),
		'section'=> 'driving_school_lite_woocommerce',
	));

	$wp_customize->add_setting( 'driving_school_lite_product_top_padding',array(
		'default' => 0,
		'sanitize_callback' => 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_product_top_padding', array(
		'label' => esc_html__( 'Top','driving-school-lite' ),
		'type' => 'number',
		'section' => 'driving_school_lite_woocommerce',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting('driving_school_lite_product_bottom_padding',array(
		'default' => 0,
		'sanitize_callback' => 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_product_bottom_padding', array(
		'label' => esc_html__( 'Bottom','driving-school-lite' ),
		'type' => 'number',
		'section' => 'driving_school_lite_woocommerce',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting('driving_school_lite_product_left_padding',array(
		'default' => 0,
		'sanitize_callback' => 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_product_left_padding', array(
		'label' => esc_html__( 'Left','driving-school-lite' ),
		'type' => 'number',
		'section' => 'driving_school_lite_woocommerce',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting( 'driving_school_lite_product_right_padding',array(
		'default' => 0,
		'sanitize_callback' => 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_product_right_padding', array(
		'label' => esc_html__( 'Right','driving-school-lite' ),
		'type' => 'number',
		'section' => 'driving_school_lite_woocommerce',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting( 'driving_school_lite_product_border_radius',array(
		'default' => '0',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control( new Driving_School_Lite_WP_Customize_Range_Control( $wp_customize, 'driving_school_lite_product_border_radius', array(
        'label'  => __('Product Border Radius','driving-school-lite'),
        'section'  => 'driving_school_lite_woocommerce',
        'description' => __('Measurement is in pixel.','driving-school-lite'),
        'input_attrs' => array(
            'min' => 0,
            'max' => 50,
        )
    )));

	$wp_customize->add_setting( 'driving_school_lite_product_box_shadow',array(
		'default' => '0',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control( new Driving_School_Lite_WP_Customize_Range_Control( $wp_customize, 'driving_school_lite_product_box_shadow', array(
		'label'  => __('Product Box Shadow','driving-school-lite'),
		'section'  => 'driving_school_lite_woocommerce',
		'description' => __('Measurement is in pixel.','driving-school-lite'),
		'input_attrs' => array(
		   'min' => 0,
		   'max' => 50,
		)
    )));		

	$wp_customize->add_setting('driving_school_lite_product_button_padding',array(
		'sanitize_callback'	=> 'esc_html'
	));
	$wp_customize->add_control('driving_school_lite_product_button_padding',array(
		'label'	=> esc_html__('Product Button Padding','driving-school-lite'),
		'section'=> 'driving_school_lite_woocommerce',
	));

	$wp_customize->add_setting( 'driving_school_lite_product_button_top_padding',array(
		'default' => 10,
		'sanitize_callback' => 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_product_button_top_padding', array(
		'label' => esc_html__( 'Top','driving-school-lite' ),
		'type' => 'number',
		'section' => 'driving_school_lite_woocommerce',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting('driving_school_lite_product_button_bottom_padding',array(
		'default' => 10,
		'sanitize_callback' => 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_product_button_bottom_padding', array(
		'label' => esc_html__( 'Bottom','driving-school-lite' ),
		'type' => 'number',
		'section' => 'driving_school_lite_woocommerce',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting('driving_school_lite_product_button_left_padding',array(
		'default' => 15,
		'sanitize_callback' => 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_product_button_left_padding', array(
		'label' => esc_html__( 'Left','driving-school-lite' ),
		'type' => 'number',
		'section' => 'driving_school_lite_woocommerce',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting( 'driving_school_lite_product_button_right_padding',array(
		'default' => 15,
		'sanitize_callback' => 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_product_button_right_padding', array(
		'label' => esc_html__( 'Right','driving-school-lite' ),
		'type' => 'number',
		'section' => 'driving_school_lite_woocommerce',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting( 'driving_school_lite_product_button_border_radius',array(
		'default' => '0',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control( new Driving_School_Lite_WP_Customize_Range_Control( $wp_customize, 'driving_school_lite_product_button_border_radius', array(
        'label'  => __('Product Button Border Radius','driving-school-lite'),
        'section'  => 'driving_school_lite_woocommerce',
        'description' => __('Measurement is in pixel.','driving-school-lite'),
        'input_attrs' => array(
            'min' => 0,
            'max' => 50,
        )
    )));

    $wp_customize->add_setting('driving_school_lite_product_sale_position',array(
        'default' => 'Right',
        'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control('driving_school_lite_product_sale_position',array(
        'type' => 'radio',
        'label' => __('Product Sale Position','driving-school-lite'),
        'section' => 'driving_school_lite_woocommerce',
        'choices' => array(
            'Left' => __('Left','driving-school-lite'),
            'Right' => __('Right','driving-school-lite'),
        ),
	) );

	$wp_customize->add_setting( 'driving_school_lite_product_sale_font_size',array(
		'default' => '13',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control( new Driving_School_Lite_WP_Customize_Range_Control( $wp_customize, 'driving_school_lite_product_sale_font_size', array(
        'label'  => __('Product Sale Font Size','driving-school-lite'),
        'section'  => 'driving_school_lite_woocommerce',
        'description' => __('Measurement is in pixel.','driving-school-lite'),
        'input_attrs' => array(
            'min' => 0,
            'max' => 50,
        )
    )));

    $wp_customize->add_setting('driving_school_lite_product_sale_padding',array(
		'sanitize_callback'	=> 'esc_html'
	));
	$wp_customize->add_control('driving_school_lite_product_sale_padding',array(
		'label'	=> esc_html__('Product Sale Padding','driving-school-lite'),
		'section'=> 'driving_school_lite_woocommerce',
	));

	$wp_customize->add_setting( 'driving_school_lite_product_sale_top_padding',array(
		'default' => 0,
		'sanitize_callback' => 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_product_sale_top_padding', array(
		'label' => esc_html__( 'Top','driving-school-lite' ),
		'type' => 'number',
		'section' => 'driving_school_lite_woocommerce',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting('driving_school_lite_product_sale_bottom_padding',array(
		'default' => 0,
		'sanitize_callback' => 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_product_sale_bottom_padding', array(
		'label' => esc_html__( 'Bottom','driving-school-lite' ),
		'type' => 'number',
		'section' => 'driving_school_lite_woocommerce',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting('driving_school_lite_product_sale_left_padding',array(
		'default' => 0,
		'sanitize_callback' => 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_product_sale_left_padding', array(
		'label' => esc_html__( 'Left','driving-school-lite' ),
		'type' => 'number',
		'section' => 'driving_school_lite_woocommerce',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting('driving_school_lite_product_sale_right_padding',array(
		'default' => 0,
		'sanitize_callback' => 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_product_sale_right_padding', array(
		'label' => esc_html__( 'Right','driving-school-lite' ),
		'type' => 'number',
		'section' => 'driving_school_lite_woocommerce',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	));

	$wp_customize->add_setting( 'driving_school_lite_product_sale_border_radius',array(
		'default' => '50',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control( new Driving_School_Lite_WP_Customize_Range_Control( $wp_customize, 'driving_school_lite_product_sale_border_radius', array(
        'label'  => __('Product Sale Border Radius','driving-school-lite'),
        'section'  => 'driving_school_lite_woocommerce',
        'description' => __('Measurement is in pixel.','driving-school-lite'),
        'input_attrs' => array(
            'min' => 0,
            'max' => 50,
        )
    )));

	//footer text
	$wp_customize->add_section('driving_school_lite_footer_section',array(
		'title'	=> __('Footer Section','driving-school-lite'),
		'panel' => 'driving_school_lite_panel_id'
	));

	$wp_customize->add_setting('driving_school_lite_hide_scroll',array(
        'default' => 'true',
        'sanitize_callback'	=> 'driving_school_lite_sanitize_checkbox'
	));
	$wp_customize->add_control('driving_school_lite_hide_scroll',array(
     	'type' => 'checkbox',
      	'label' => __('Show / Hide Back To Top','driving-school-lite'),
      	'section' => 'driving_school_lite_footer_section',
	));

	$wp_customize->add_setting('driving_school_lite_back_to_top',array(
        'default' => 'Right',
        'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control('driving_school_lite_back_to_top',array(
        'type' => 'radio',
        'label' => __('Back to Top Alignment','driving-school-lite'),
        'section' => 'driving_school_lite_footer_section',
        'choices' => array(
            'Left' => __('Left','driving-school-lite'),
            'Right' => __('Right','driving-school-lite'),
            'Center' => __('Center','driving-school-lite'),
        ),
	) );

	$wp_customize->add_setting('driving_school_lite_back_to_top_text_color', array(
		'default'           => '#fff',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'driving_school_lite_back_to_top_text_color', array(
		'label'    => __('Back To Top Text Color', 'driving-school-lite'),
		'section'  => 'driving_school_lite_footer_section',
	)));		

	$wp_customize->add_setting('driving_school_lite_back_to_top_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'driving_school_lite_back_to_top_color', array(
		'label'    => __('Back To Top Color', 'driving-school-lite'),
		'section'  => 'driving_school_lite_footer_section',
	)));

	$wp_customize->add_setting( 'driving_school_lite_footer_hide_show',array(
      'default' => 'true',
      'sanitize_callback' => 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_footer_hide_show',array(
    	'type' => 'checkbox',
      'label' => esc_html__( 'Show / Hide Footer','driving-school-lite' ),
      'section' => 'driving_school_lite_footer_section'
    ));

	$wp_customize->add_setting('driving_school_lite_footer_template',array(
		'default'	=> esc_html('driving_school_lite-footer-one'),
		'sanitize_callback'	=> 'driving_school_lite_sanitize_choices'	
	));
	$wp_customize->add_control('driving_school_lite_footer_template',array(
		'label'	=> esc_html__('Footer style','driving-school-lite'),
		'section'	=> 'driving_school_lite_footer_section',
		'setting'	=> 'driving_school_lite_footer_template',
		'type' => 'select',
		'choices' => array(
			'driving_school_lite-footer-one' => esc_html__('Style 1', 'driving-school-lite'),
			'driving_school_lite-footer-two' => esc_html__('Style 2', 'driving-school-lite'),
			'driving_school_lite-footer-three' => esc_html__('Style 3', 'driving-school-lite'),
			'driving_school_lite-footer-four' => esc_html__('Style 4', 'driving-school-lite'),
			'driving_school_lite-footer-five' => esc_html__('Style 5', 'driving-school-lite'),
			)
	));		

	$wp_customize->add_setting('driving_school_lite_footer_bg_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'driving_school_lite_footer_bg_color', array(
		'label'    => __('Footer Background Color', 'driving-school-lite'),
		'section'  => 'driving_school_lite_footer_section',
	)));

	$wp_customize->add_setting('driving_school_lite_footer_bg_image',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'driving_school_lite_footer_bg_image',array(
        'label' => __('Footer Background Image','driving-school-lite'),
        'section' => 'driving_school_lite_footer_section'
	)));

	$wp_customize->add_setting('driving_school_lite_footer_img_position',array(
		'default' => 'center center',
		'transport' => 'refresh',
		'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control('driving_school_lite_footer_img_position',array(
		  'type' => 'select',
		  'label' => __('Footer Image Position','driving-school-lite'),
		  'section' => 'driving_school_lite_footer_section',
		  'choices' 	=> array(
			  'left top' 		=> esc_html__( 'Top Left', 'driving-school-lite' ),
			  'center top'   => esc_html__( 'Top', 'driving-school-lite' ),
			  'right top'   => esc_html__( 'Top Right', 'driving-school-lite' ),
			  'left center'   => esc_html__( 'Left', 'driving-school-lite' ),
			  'center center'   => esc_html__( 'Center', 'driving-school-lite' ),
			  'right center'   => esc_html__( 'Right', 'driving-school-lite' ),
			  'left bottom'   => esc_html__( 'Bottom Left', 'driving-school-lite' ),
			  'center bottom'   => esc_html__( 'Bottom', 'driving-school-lite' ),
			  'right bottom'   => esc_html__( 'Bottom Right', 'driving-school-lite' ),
		  ),
	));
	$wp_customize->add_setting('driving_school_lite_footer_attatchment',array(
		'default'=> 'scroll',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control('driving_school_lite_footer_attatchment',array(
		'type' => 'select',
		'label'	=> __('Footer Background Attatchment','driving-school-lite'),
		'choices' => array(
            'fixed' => __('fixed','driving-school-lite'),
            'scroll' => __('scroll','driving-school-lite'),
        ),
		'section'=> 'driving_school_lite_footer_section',
	));		

	$wp_customize->add_setting('driving_school_lite_footer_widget',array(
        'default'           => '4',
        'sanitize_callback' => 'driving_school_lite_sanitize_choices',
    ));
    $wp_customize->add_control('driving_school_lite_footer_widget',array(
        'type'        => 'radio',
        'label'       => __('No. of Footer columns', 'driving-school-lite'),
        'section'     => 'driving_school_lite_footer_section',
        'description' => __('Select the number of footer columns and add your widgets in the footer.', 'driving-school-lite'),
        'choices' => array(
            '1' => __('One column', 'driving-school-lite'),
            '2' => __('Two columns', 'driving-school-lite'),
            '3' => __('Three columns', 'driving-school-lite'),
            '4' => __('Four columns', 'driving-school-lite')
        ),
    )); 

    $wp_customize->add_setting('driving_school_lite_widgets_heading_fontsize',array(
		'default'	=> 26,
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float',
	));	
	$wp_customize->add_control('driving_school_lite_widgets_heading_fontsize',array(
		'label'	=> __('Footer Widgets Heading Font Size','driving-school-lite'),
		'section'	=> 'driving_school_lite_footer_section',
		'type'		=> 'number'
	));

	$wp_customize->add_setting('driving_school_lite_widgets_heading_font_weight',array(
        'default' => '600',
        'sanitize_callback' => 'driving_school_lite_sanitize_choices'
    ));
    $wp_customize->add_control('driving_school_lite_widgets_heading_font_weight',array(
        'type' => 'select',
        'label' => __('Footer Widgets Heading Font Weight','driving-school-lite'),
        'section' => 'driving_school_lite_footer_section',
        'choices' => array(
            '100' => __('100','driving-school-lite'),
            '200' => __('200','driving-school-lite'),
            '300' => __('300','driving-school-lite'),
            '400' => __('400','driving-school-lite'),
            '500' => __('500','driving-school-lite'),
            '600' => __('600','driving-school-lite'),
            '700' => __('700','driving-school-lite'),
            '800' => __('800','driving-school-lite'),
            '900' => __('900','driving-school-lite'),
        ),
	) );

    $wp_customize->add_setting('driving_school_lite_footer_widgets_heading',array(
    'default' => 'Left',
    'transport' => 'refresh',
    'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control('driving_school_lite_footer_widgets_heading',array(
    'type' => 'select',
    'label' => __('Footer Widget Heading Alignment','driving-school-lite'),
    'section' => 'driving_school_lite_footer_section',
    'choices' => array(
    	'Left' => __('Left','driving-school-lite'),
        'Center' => __('Center','driving-school-lite'),
        'Right' => __('Right','driving-school-lite')
      ),
	) );

	$wp_customize->add_setting('driving_school_lite_footer_text_tranform',array(
		'default' => 'Capitalize',
		'sanitize_callback' => 'driving_school_lite_sanitize_choices'
 	));
 	$wp_customize->add_control('driving_school_lite_footer_text_tranform',array(
		'type' => 'select',
		'label' => __('Footer Widgets Heading Text Transform','driving-school-lite'),
		'section' => 'driving_school_lite_footer_section',
		'choices' => array(
		   'Uppercase' => __('Uppercase','driving-school-lite'),
		   'Lowercase' => __('Lowercase','driving-school-lite'),
		   'Capitalize' => __('Capitalize','driving-school-lite'),
		),
	) );		

	$wp_customize->add_setting('driving_school_lite_widgets_heading_letter_spacing',array(
		'default'	=> '',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float',
	));	
	$wp_customize->add_control('driving_school_lite_widgets_heading_letter_spacing',array(
		'label'	=> __('Footer Widgets Heading Letter Spacing','driving-school-lite'),
		'section'	=> 'driving_school_lite_footer_section',
		'type'		=> 'number'
	));			

	$wp_customize->add_setting('driving_school_lite_footer_widgets_content',array(
    'default' => 'Left',
    'transport' => 'refresh',
    'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control('driving_school_lite_footer_widgets_content',array(
    'type' => 'select',
    'label' => __('Footer Widget Content Alignment','driving-school-lite'),
    'section' => 'driving_school_lite_footer_section',
    'choices' => array(
    	'Left' => __('Left','driving-school-lite'),
        'Center' => __('Center','driving-school-lite'),
        'Right' => __('Right','driving-school-lite')
        ),
	) );		

    $wp_customize->add_setting( 'driving_school_lite_copyright_hide_show',array(
      'default' => 'true',
      'sanitize_callback' => 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_copyright_hide_show',array(
    	'type' => 'checkbox',
      'label' => esc_html__( 'Show / Hide Copyright','driving-school-lite' ),
      'section' => 'driving_school_lite_footer_section'
    ));

    $wp_customize->add_setting('driving_school_lite_copyright_bg_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'driving_school_lite_copyright_bg_color', array(
		'label'    => __('Copyright Background Color', 'driving-school-lite'),
		'section'  => 'driving_school_lite_footer_section',
	)));

	$wp_customize->add_setting('driving_school_lite_copyright_color', array(
		'default'           => '#fff',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'driving_school_lite_copyright_color', array(
		'label'    => __('Copyright Color', 'driving-school-lite'),
		'section'  => 'driving_school_lite_footer_section',
	)));

    $wp_customize->add_setting('driving_school_lite_copyright_padding',array(
		'sanitize_callback'	=> 'esc_html'
	));
	$wp_customize->add_control('driving_school_lite_copyright_padding',array(
		'label'	=> esc_html__('Copyright Padding','driving-school-lite'),
		'section'=> 'driving_school_lite_footer_section',
	));

    $wp_customize->add_setting('driving_school_lite_top_copyright_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_top_copyright_padding',array(
		'description'	=> __('Top','driving-school-lite'),
		'input_attrs' => array(
            'step' => 1,
			'min' => 0,
			'max' => 50,
        ),
		'section'=> 'driving_school_lite_footer_section',
		'type'=> 'number'
	));

	$wp_customize->add_setting('driving_school_lite_bottom_copyright_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'driving_school_lite_sanitize_float'
	));
	$wp_customize->add_control('driving_school_lite_bottom_copyright_padding',array(
		'description'	=> __('Bottom','driving-school-lite'),
		'input_attrs' => array(
            'step' => 1,
			'min' => 0,
			'max' => 50,
        ),
		'section'=> 'driving_school_lite_footer_section',
		'type'=> 'number'
	));

	$wp_customize->add_setting('driving_school_lite_copyright_alignment',array(
        'default' => 'center',
        'sanitize_callback' => 'driving_school_lite_sanitize_choices'
	));
	$wp_customize->add_control('driving_school_lite_copyright_alignment',array(
        'type' => 'radio',
        'label' => __('Copyright Alignment','driving-school-lite'),
        'section' => 'driving_school_lite_footer_section',
        'choices' => array(
            'left' => __('Left','driving-school-lite'),
            'right' => __('Right','driving-school-lite'),
            'center' => __('Center','driving-school-lite'),
        ),
	) );

	$wp_customize->add_setting( 'driving_school_lite_copyright_font_size', array(
		'default'=> '15',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( new Driving_School_Lite_WP_Customize_Range_Control( $wp_customize, 'driving_school_lite_copyright_font_size', array(
            'label'  => __('Copyright Font Size','driving-school-lite'),
            'section'  => 'driving_school_lite_footer_section',
            'description' => __('Measurement is in pixel.','driving-school-lite'),
            'input_attrs' => array(
                'min' => 0,
                'max' => 50,
            )
    ))); 
	
	$wp_customize->add_setting('driving_school_lite_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('driving_school_lite_text',array(
		'label'	=> __('Copyright Text','driving-school-lite'),
		'description'	=> __('Add some text for footer like copyright etc.','driving-school-lite'),
		'section'	=> 'driving_school_lite_footer_section',
		'type'		=> 'text'
	));	

	//Footer Social Media
	$wp_customize->add_section('driving_school_lite_footer_social_media',array(
		'title'	=> __('Footer Social Media','driving-school-lite'),
		'priority' => null,
		'panel' => 'driving_school_lite_panel_id',
	));

	$wp_customize->add_setting( 'driving_school_lite_footer_social_media_hide_show',array(
		'default' => false,
		'sanitize_callback' => 'driving_school_lite_sanitize_checkbox'
    ));
    $wp_customize->add_control('driving_school_lite_footer_social_media_hide_show',array(
    	'type' => 'checkbox',
		'label' => esc_html__( 'Show / Hide Social Icon','driving-school-lite' ),
		'section' => 'driving_school_lite_footer_social_media'
    ));		

	$wp_customize->add_setting('driving_school_lite_footer_facebook',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('driving_school_lite_footer_facebook',array(
		'label'	=> __('Add Facebook link','driving-school-lite'),
		'section'	=> 'driving_school_lite_footer_social_media',
		'setting'	=> 'driving_school_lite_footer_facebook',
		'type'		=> 'url'
	));

	$wp_customize->add_setting('driving_school_lite_footer_twitter',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('driving_school_lite_footer_twitter',array(
		'label'	=> __('Add Twitter link','driving-school-lite'),
		'section'	=> 'driving_school_lite_footer_social_media',
		'setting'	=> 'driving_school_lite_footer_twitter',
		'type'	=> 'url'
	));

	$wp_customize->add_setting('driving_school_lite_footer_youtube',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('driving_school_lite_footer_youtube',array(
		'label'	=> __('Add Youtube link','driving-school-lite'),
		'section'	=> 'driving_school_lite_footer_social_media',
		'setting'	=> 'driving_school_lite_footer_youtube',
		'type'	=> 'url'
	));

	$wp_customize->add_setting('driving_school_lite_footer_linkedin',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('driving_school_lite_footer_linkedin',array(
		'label'	=> __('Add Linkedin link','driving-school-lite'),
		'section'	=> 'driving_school_lite_footer_social_media',
		'setting'	=> 'driving_school_lite_footer_linkedin',
		'type'	=> 'url'
	));

}
add_action( 'customize_register', 'driving_school_lite_customize_register' );	

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

/**
 * Singleton class for handling the theme's customizer integration.
 *
 * @since  1.0.0
 * @access public
 */
final class Driving_School_Lite_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' );

		// Register custom section types.
		$manager->register_section_type( 'Driving_School_Lite_Customize_Section_Pro' );

		// Register sections.
		$manager->add_section(
			new Driving_School_Lite_Customize_Section_Pro(
			$manager,
			'driving_school_lite_pro_link',
				array(
				'priority'   => 9,
				'title'    => esc_html__( 'Driving School Pro', 'driving-school-lite' ),
				'pro_text' => esc_html__( 'Get Pro', 'driving-school-lite' ),
				'pro_url'  => esc_url('https://www.themesglance.com/products/driving-school-wordpress-theme')
				)
			)
		);
		// Register sections.
		$manager->add_section(
			new Driving_School_Lite_Customize_Section_Pro(
			$manager,
			'driving_school_lite_doc_link',
				array(
				'priority'   => 9,
				'title'    => esc_html__( 'Driving School Doc', 'driving-school-lite' ),
				'pro_text' => esc_html__( 'Help Doc', 'driving-school-lite' ),
				'pro_url'  => esc_url(DRIVING_SCHOOL_LITE_THEMESGLANCE_FREE_THEME_DOC)
				)
			)
		);

		// Register sections.
		$manager->add_section(
			new Driving_School_Lite_Customize_Section_Pro(
			$manager,
			'driving_school_lite_demo_link',
				array(
				'priority'   => 9,
				'title'    => esc_html__( 'Driving School Demo', 'driving-school-lite' ),
				'pro_text' => esc_html__( 'Live Demo', 'driving-school-lite' ),
				'pro_url'  => esc_url(DRIVING_SCHOOL_LITE_THEMESGLANCE_LIVE_DEMO)
				)
			)
		);

	}

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

		wp_enqueue_script( 'driving-school-lite-customize-controls', trailingslashit( esc_url(get_template_directory_uri()) ) . '/js/customize-controls.js', array( 'customize-controls' ) );

		wp_enqueue_style( 'driving-school-lite-customize-controls', trailingslashit( esc_url(get_template_directory_uri()) ) . '/css/customize-controls.css' );
	}
}

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