<?php
/**
 * Air Conditioning Services: Customizer-home-page
 *
 * @subpackage Air Conditioning Services
 * @since 1.0
 */

	//  Home Page Panel
	$wp_customize->add_panel( 'air_conditioning_services_custompage_panel', array(
		'title' => esc_html__( 'Custom Page Settings', 'air-conditioning-services' ),
		'priority' => 2,
	));
	// Header
    $wp_customize->add_section('air_conditioning_services_header',array(
        'title' => __('Header', 'air-conditioning-services'),
        'panel' => 'air_conditioning_services_custompage_panel',
    ) );
    $wp_customize->add_setting( 'air_conditioning_services_section_contact_heading', array(
			'default'           => '',
			'transport'         => 'refresh',
			'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new Air_Conditioning_Services_Customizer_Customcontrol_Section_Heading( $wp_customize, 'air_conditioning_services_section_contact_heading', array(
		'label'       => esc_html__( 'Header Settings', 'air-conditioning-services' ),	
		'description' => __( 'Add contact info in the below feilds', 'air-conditioning-services' ),		
		'section'     => 'air_conditioning_services_header',
		'settings'    => 'air_conditioning_services_section_contact_heading',
	) ) );
	$wp_customize->add_setting('air_conditioning_services_call_phone_number',array(
		'default' => '',
		'sanitize_callback' => 'air_conditioning_services_sanitize_phone_number'
	));
	$wp_customize->add_control('air_conditioning_services_call_phone_number',array(
		'label' => esc_html__('Phone Number','air-conditioning-services'),
		'section' => 'air_conditioning_services_header',
		'setting' => 'air_conditioning_services_call_phone_number',
		'type'    => 'text'
	));
	$wp_customize->add_setting('air_conditioning_services_call_phone_number_icon',array(
		'default'	=> 'fas fa-phone-volume',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Air_Conditioning_Services_Fontawesome_Icon_Chooser(
        $wp_customize,'air_conditioning_services_call_phone_number_icon',array(
		'label'	=> __('Add Phone Number Icon','air-conditioning-services'),
		'transport' => 'refresh',
		'section'	=> 'air_conditioning_services_header',
		'setting'	=> 'air_conditioning_services_call_phone_number_icon',
		'type'		=> 'icon'
	)));
	$wp_customize->add_setting('air_conditioning_services_location_url',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
	));
	$wp_customize->add_control('air_conditioning_services_location_url',array(
		'label' => esc_html__('Add Map URL','air-conditioning-services'),
		'section' => 'air_conditioning_services_header',
		'setting' => 'air_conditioning_services_location_url',
		'type'    => 'url'
	));
	$wp_customize->add_setting('air_conditioning_services_location',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('air_conditioning_services_location',array(
		'label' => esc_html__('Location Address','air-conditioning-services'),
		'section' => 'air_conditioning_services_header',
		'setting' => 'air_conditioning_services_location',
		'type'    => 'text'
	));
	$wp_customize->add_setting('air_conditioning_services_location_icon',array(
		'default'	=> 'fas fa-map-marker-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Air_Conditioning_Services_Fontawesome_Icon_Chooser(
        $wp_customize,'air_conditioning_services_location_icon',array(
		'label'	=> __('Add Location Icon','air-conditioning-services'),
		'transport' => 'refresh',
		'section'	=> 'air_conditioning_services_header',
		'setting'	=> 'air_conditioning_services_location_icon',
		'type'		=> 'icon'
	)));
	$wp_customize->add_setting('air_conditioning_services_email_address',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_email'
	));
	$wp_customize->add_control('air_conditioning_services_email_address',array(
		'label' => esc_html__('Email Address','air-conditioning-services'),
		'section' => 'air_conditioning_services_header',
		'setting' => 'air_conditioning_services_email_address',
		'type'    => 'text'
	));
	$wp_customize->add_setting('air_conditioning_services_email_address_icon',array(
		'default'	=> 'far fa-envelope',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Air_Conditioning_Services_Fontawesome_Icon_Chooser(
        $wp_customize,'air_conditioning_services_email_address_icon',array(
		'label'	=> __('Add Email Icon','air-conditioning-services'),
		'transport' => 'refresh',
		'section'	=> 'air_conditioning_services_header',
		'setting'	=> 'air_conditioning_services_email_address_icon',
		'type'		=> 'icon'
	)));
	$wp_customize->add_setting('air_conditioning_services_header_btn_text',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field'
	)); 
	$wp_customize->add_control('air_conditioning_services_header_btn_text',array(
		'label' => esc_html__('Add Button Text','air-conditioning-services'),
		'section' => 'air_conditioning_services_header',
		'setting' => 'air_conditioning_services_header_btn_text',
		'type'    => 'text'
	));
    $wp_customize->add_setting('air_conditioning_services_header_btn_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
	)); 
	$wp_customize->add_control('air_conditioning_services_header_btn_link',array(
		'label' => esc_html__('Add Button URL','air-conditioning-services'),
		'section' => 'air_conditioning_services_header',
		'setting' => 'air_conditioning_services_header_btn_link',
		'type'    => 'url'
	));

	//social media
	$wp_customize->add_section('air_conditioning_services_urls',array(
        'title' => __('Social Media', 'air-conditioning-services'),
        'panel' => 'air_conditioning_services_custompage_panel',
    ) );
    $wp_customize->add_setting( 'air_conditioning_services_section_social_heading', array(
		'default'           => '',
		'transport'         => 'refresh',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new Air_Conditioning_Services_Customizer_Customcontrol_Section_Heading( $wp_customize, 'air_conditioning_services_section_social_heading', array(
		'label'       => esc_html__( 'Social Media Settings', 'air-conditioning-services' ),
		'description' => __( 'Add social media links in the below feilds', 'air-conditioning-services' ),			
		'section'     => 'air_conditioning_services_urls',
		'settings'    => 'air_conditioning_services_section_social_heading',
	) ) );
	$wp_customize->add_setting(
		'header_social_icon_enable',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'air_conditioning_services_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Air_Conditioning_Services_Customizer_Customcontrol_Switch(
			$wp_customize,
			'header_social_icon_enable',
			array(
				'settings'        => 'header_social_icon_enable',
				'section'         => 'air_conditioning_services_urls',
				'label'           => __( 'Check to show social fields', 'air-conditioning-services' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'air-conditioning-services' ),
					'off'    => __( 'Off', 'air-conditioning-services' ),
				),
				'active_callback' => '',
			)
		)
	);
	$wp_customize->add_setting( 'air_conditioning_services_section_twitter_heading', array(
		'default'           => '',
		'transport'         => 'refresh',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new Air_Conditioning_Services_Customizer_Customcontrol_Section_Heading( $wp_customize, 'air_conditioning_services_section_twitter_heading', array(
		'label'       => esc_html__( 'Twitter Settings', 'air-conditioning-services' ),			
		'section'     => 'air_conditioning_services_urls',
		'settings'    => 'air_conditioning_services_section_twitter_heading',
	) ) );
	$wp_customize->add_setting('air_conditioning_services_twitter_icon',array(
		'default'	=> 'fab fa-x-twitter',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Air_Conditioning_Services_Fontawesome_Icon_Chooser(
        $wp_customize,'air_conditioning_services_twitter_icon',array(
		'label'	=> __('Add Icon','air-conditioning-services'),
		'transport' => 'refresh',
		'section'	=> 'air_conditioning_services_urls',
		'setting'	=> 'air_conditioning_services_twitter_icon',
		'type'		=> 'icon'
	)));
	$wp_customize->selective_refresh->add_partial( 'air_conditioning_services_twitter', array(
		'selector' => '.social-icon a i',
		'render_callback' => 'air_conditioning_services_customize_partial_air_conditioning_services_twitter',
	) );
	$wp_customize->add_setting('air_conditioning_services_twitter',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
	));
	$wp_customize->add_control('air_conditioning_services_twitter',array(
		'label' => esc_html__('Add URL','air-conditioning-services'),
		'section' => 'air_conditioning_services_urls',
		'setting' => 'air_conditioning_services_twitter',
		'type'    => 'url'
	));
	$wp_customize->add_setting(
		'air_conditioning_services_header_twt_target',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'air_conditioning_services_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Air_Conditioning_Services_Customizer_Customcontrol_Switch(
			$wp_customize,
			'air_conditioning_services_header_twt_target',
			array(
				'settings'        => 'air_conditioning_services_header_twt_target',
				'section'         => 'air_conditioning_services_urls',
				'label'           => __( 'Open link in a new tab', 'air-conditioning-services' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'air-conditioning-services' ),
					'off'    => __( 'Off', 'air-conditioning-services' ),
				),
				'active_callback' => '',
			)
		)
	);
	$wp_customize->add_setting( 'air_conditioning_services_section_linkedin_heading', array(
		'default'           => '',
		'transport'         => 'refresh',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new Air_Conditioning_Services_Customizer_Customcontrol_Section_Heading( $wp_customize, 'air_conditioning_services_section_linkedin_heading', array(
		'label'       => esc_html__( 'Linkedin Settings', 'air-conditioning-services' ),			
		'section'     => 'air_conditioning_services_urls',
		'settings'    => 'air_conditioning_services_section_linkedin_heading',
	) ) );
	$wp_customize->add_setting('air_conditioning_services_linkedin_icon',array(
		'default'	=> 'fab fa-linkedin-in',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Air_Conditioning_Services_Fontawesome_Icon_Chooser(
        $wp_customize,'air_conditioning_services_linkedin_icon',array(
		'label'	=> __('Add Icon','air-conditioning-services'),
		'transport' => 'refresh',
		'section'	=> 'air_conditioning_services_urls',
		'setting'	=> 'air_conditioning_services_linkedin_icon',
		'type'		=> 'icon'
	)));
	$wp_customize->add_setting('air_conditioning_services_linkedin',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
	));
	$wp_customize->add_control('air_conditioning_services_linkedin',array(
		'label' => esc_html__('Add URL','air-conditioning-services'),
		'section' => 'air_conditioning_services_urls',
		'setting' => 'air_conditioning_services_linkedin',
		'type'    => 'url'
	));
	$wp_customize->add_setting(
		'air_conditioning_services_header_linkedin_target',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'air_conditioning_services_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Air_Conditioning_Services_Customizer_Customcontrol_Switch(
			$wp_customize,
			'air_conditioning_services_header_linkedin_target',
			array(
				'settings'        => 'air_conditioning_services_header_linkedin_target',
				'section'         => 'air_conditioning_services_urls',
				'label'           => __( 'Open link in a new tab', 'air-conditioning-services' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'air-conditioning-services' ),
					'off'    => __( 'Off', 'air-conditioning-services' ),
				),
				'active_callback' => '',
			)
		)
	);
	$wp_customize->add_setting( 'air_conditioning_services_section_youtube_heading', array(
		'default'           => '',
		'transport'         => 'refresh',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new Air_Conditioning_Services_Customizer_Customcontrol_Section_Heading( $wp_customize, 'air_conditioning_services_section_youtube_heading', array(
		'label'       => esc_html__( 'Youtube Settings', 'air-conditioning-services' ),			
		'section'     => 'air_conditioning_services_urls',
		'settings'    => 'air_conditioning_services_section_youtube_heading',
	) ) );
	$wp_customize->add_setting('air_conditioning_services_youtube_icon',array(
		'default'	=> 'fab fa-youtube',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Air_Conditioning_Services_Fontawesome_Icon_Chooser(
        $wp_customize,'air_conditioning_services_youtube_icon',array(
		'label'	=> __('Add Icon','air-conditioning-services'),
		'transport' => 'refresh',
		'section'	=> 'air_conditioning_services_urls',
		'setting'	=> 'air_conditioning_services_youtube_icon',
		'type'		=> 'icon'
	)));
	$wp_customize->add_setting('air_conditioning_services_youtube',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
	));
	$wp_customize->add_control('air_conditioning_services_youtube',array(
		'label' => esc_html__('Add URL','air-conditioning-services'),
		'section' => 'air_conditioning_services_urls',
		'setting' => 'air_conditioning_services_youtube',
		'type'    => 'url'
	));
	$wp_customize->add_setting(
		'air_conditioning_services_header_youtube_target',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'air_conditioning_services_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Air_Conditioning_Services_Customizer_Customcontrol_Switch(
			$wp_customize,
			'air_conditioning_services_header_youtube_target',
			array(
				'settings'        => 'air_conditioning_services_header_youtube_target',
				'section'         => 'air_conditioning_services_urls',
				'label'           => __( 'Open link in a new tab', 'air-conditioning-services' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'air-conditioning-services' ),
					'off'    => __( 'Off', 'air-conditioning-services' ),
				),
				'active_callback' => '',
			)
		)
	);
	$wp_customize->add_setting( 'air_conditioning_services_section_instagram_heading', array(
		'default'           => '',
		'transport'         => 'refresh',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new Air_Conditioning_Services_Customizer_Customcontrol_Section_Heading( $wp_customize, 'air_conditioning_services_section_instagram_heading', array(
		'label'       => esc_html__( 'Instagram Settings', 'air-conditioning-services' ),			
		'section'     => 'air_conditioning_services_urls',
		'settings'    => 'air_conditioning_services_section_instagram_heading',
	) ) );
	$wp_customize->add_setting('air_conditioning_services_instagram_icon',array(
		'default'	=> 'fab fa-instagram',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Air_Conditioning_Services_Fontawesome_Icon_Chooser(
        $wp_customize,'air_conditioning_services_instagram_icon',array(
		'label'	=> __('Add Icon','air-conditioning-services'),
		'transport' => 'refresh',
		'section'	=> 'air_conditioning_services_urls',
		'setting'	=> 'air_conditioning_services_instagram_icon',
		'type'		=> 'icon'
	)));
	$wp_customize->add_setting('air_conditioning_services_instagram',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
	));
	$wp_customize->add_control('air_conditioning_services_instagram',array(
		'label' => esc_html__('Add URL','air-conditioning-services'),
		'section' => 'air_conditioning_services_urls',
		'setting' => 'air_conditioning_services_instagram',
		'type'    => 'url'
	));
	$wp_customize->add_setting(
		'air_conditioning_services_header_instagram_target',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'air_conditioning_services_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Air_Conditioning_Services_Customizer_Customcontrol_Switch(
			$wp_customize,
			'air_conditioning_services_header_instagram_target',
			array(
				'settings'        => 'air_conditioning_services_header_instagram_target',
				'section'         => 'air_conditioning_services_urls',
				'label'           => __( 'Open link in a new tab', 'air-conditioning-services' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'air-conditioning-services' ),
					'off'    => __( 'Off', 'air-conditioning-services' ),
				),
				'active_callback' => '',
			)
		)
	);

    //Slider
	$wp_customize->add_section( 'air_conditioning_services_slider_section' , array(
    	'title'      => __( 'Slider Settings', 'air-conditioning-services' ),
    	'panel' => 'air_conditioning_services_custompage_panel',
	) );
	$wp_customize->add_setting( 'air_conditioning_services_section_slide_heading', array(
			'default'           => '',
			'transport'         => 'refresh',
			'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new Air_Conditioning_Services_Customizer_Customcontrol_Section_Heading( $wp_customize, 'air_conditioning_services_section_slide_heading', array(
		'label'       => esc_html__( 'Slider Settings', 'air-conditioning-services' ),
		'description' => __( 'Slider Image Dimension ( 95px x 116px )', 'air-conditioning-services' ),		
		'section'     => 'air_conditioning_services_slider_section',
		'settings'    => 'air_conditioning_services_section_slide_heading',
	) ) );
	$wp_customize->add_setting(
		'air_conditioning_services_slider_arrows',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'air_conditioning_services_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Air_Conditioning_Services_Customizer_Customcontrol_Switch(
			$wp_customize,
			'air_conditioning_services_slider_arrows',
			array(
				'settings'        => 'air_conditioning_services_slider_arrows',
				'section'         => 'air_conditioning_services_slider_section',
				'label'           => __( 'Check To show Slider', 'air-conditioning-services' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'air-conditioning-services' ),
					'off'    => __( 'Off', 'air-conditioning-services' ),
				),
				'active_callback' => '',
			)
		)
	);
	$wp_customize->add_setting('air_conditioning_services_slide_heading',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('air_conditioning_services_slide_heading',array(
		'label' => esc_html__('Slider Text','air-conditioning-services'),
		'section' => 'air_conditioning_services_slider_section',
		'setting' => 'air_conditioning_services_slide_heading',
		'type'    => 'text',
	));

	$wp_customize->add_setting('air_conditioning_services_slider_heading_color', array(
	    'default' => '#000',
	    'sanitize_callback' => 'sanitize_hex_color',
	    'transport' => 'refresh',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'air_conditioning_services_slider_heading_color', array(
	    'section' => 'air_conditioning_services_slider_section',
	    'label' => esc_html__('Slider Title Color', 'air-conditioning-services'),
	)));

	$wp_customize->add_setting('air_conditioning_services_slider_count',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('air_conditioning_services_slider_count',array(
		'label'	=> esc_html__('Slider Count','air-conditioning-services'),
		'section'	=> 'air_conditioning_services_slider_section',
		'type'		=> 'number',
	));

	$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('air_conditioning_services_post_setting',array(
		'default' => 'select',
		'sanitize_callback' => 'air_conditioning_services_sanitize_select',
	));
	$wp_customize->add_control('air_conditioning_services_post_setting',array(
		'type'    => 'select',
		'choices' => $cat_post,
		'label' => esc_html__('Select Category to display slider images','air-conditioning-services'),
		'section' => 'air_conditioning_services_slider_section',
	));

	$wp_customize->add_setting(
		'air_conditioning_services_slider_excerpt_show_hide',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'air_conditioning_services_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Air_Conditioning_Services_Customizer_Customcontrol_Switch(
			$wp_customize,
			'air_conditioning_services_slider_excerpt_show_hide',
			array(
				'settings'        => 'air_conditioning_services_slider_excerpt_show_hide',
				'section'         => 'air_conditioning_services_slider_section',
				'label'           => __( 'Show Hide excerpt', 'air-conditioning-services' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'air-conditioning-services' ),
					'off'    => __( 'Off', 'air-conditioning-services' ),
				),
			)
		)
	);
	$wp_customize->add_setting('air_conditioning_services_slider_excerpt_count',array(
		'default'=> 22,
		'transport' => 'refresh',
		'sanitize_callback' => 'air_conditioning_services_sanitize_integer'
	));
	$wp_customize->add_control(new Air_Conditioning_Services_Slider_Custom_Control( $wp_customize, 'air_conditioning_services_slider_excerpt_count',array(
		'label' => esc_html__( 'Excerpt Limit','air-conditioning-services' ),
		'section'=> 'air_conditioning_services_slider_section',
		'settings'=>'air_conditioning_services_slider_excerpt_count',
		'input_attrs' => array(
			'reset'			   => 22,
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
	)));

	$wp_customize->add_setting('air_conditioning_services_slider_excerpt_color', array(
	    'default' => '#000',
	    'sanitize_callback' => 'sanitize_hex_color',
	    'transport' => 'refresh',
	));

	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'air_conditioning_services_slider_excerpt_color', array(
	    'section' => 'air_conditioning_services_slider_section',
	    'label' => esc_html__('Slider excerpt Color', 'air-conditioning-services'),
	)));

	$wp_customize->add_setting(
		'air_conditioning_services_slider_button_show_hide',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'air_conditioning_services_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Air_Conditioning_Services_Customizer_Customcontrol_Switch(
			$wp_customize,
			'air_conditioning_services_slider_button_show_hide',
			array(
				'settings'        => 'air_conditioning_services_slider_button_show_hide',
				'section'         => 'air_conditioning_services_slider_section',
				'label'           => __( 'Show Hide Button', 'air-conditioning-services' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'air-conditioning-services' ),
					'off'    => __( 'Off', 'air-conditioning-services' ),
				),
			)
		)
	);
	$wp_customize->add_setting('air_conditioning_services_slider_read_more',array(
		'default' => 'Discover More',
		'sanitize_callback' => 'sanitize_text_field'
	)); 
	$wp_customize->add_control('air_conditioning_services_slider_read_more',array(
		'label' => esc_html__('Button Text','air-conditioning-services'),
		'section' => 'air_conditioning_services_slider_section',
		'setting' => 'air_conditioning_services_slider_read_more',
		'type'    => 'text',
	));

	$wp_customize->add_setting('air_conditioning_services_slider_content_alignment',array(
        'default' => 'LEFT-ALIGN',
        'sanitize_callback' => 'air_conditioning_services_sanitize_choices'
	));
	$wp_customize->add_control('air_conditioning_services_slider_content_alignment',array(
		'type' => 'radio',
		'label'     => __('Slider Content Alignment', 'air-conditioning-services'),
		'section' => 'air_conditioning_services_slider_section',
		'type' => 'select',
		'choices' => array(
			'LEFT-ALIGN' => __('LEFT','air-conditioning-services'),
            'CENTER-ALIGN' => __('CENTER','air-conditioning-services'),
            'RIGHT-ALIGN' => __('RIGHT','air-conditioning-services'),
		),
	) );

	$wp_customize->add_setting('air_conditioning_services_slider_opacity',array(
        'default' => '1',
        'sanitize_callback' => 'air_conditioning_services_sanitize_choices'
	));
	$wp_customize->add_control('air_conditioning_services_slider_opacity',array(
		'type' => 'radio',
		'label'     => __('Slider Opacity', 'air-conditioning-services'),
		'section' => 'air_conditioning_services_slider_section',
		'type' => 'select',
		'choices' => array(
			'0' => __('0','air-conditioning-services'),
			'0.1' => __('0.1','air-conditioning-services'),
			'0.2' => __('0.2','air-conditioning-services'),
			'0.3' => __('0.3','air-conditioning-services'),
			'0.4' => __('0.4','air-conditioning-services'),
			'0.5' => __('0.5','air-conditioning-services'),
			'0.6' => __('0.6','air-conditioning-services'),
			'0.7' => __('0.7','air-conditioning-services'),
			'0.8' => __('0.8','air-conditioning-services'),
			'0.9' => __('0.9','air-conditioning-services'),
			'1' => __('1','air-conditioning-services')
		),
	) );

	// About Section
	$wp_customize->add_section( 'air_conditioning_services_services_section' , array(
    	'title'      => __( 'About Us Section Settings', 'air-conditioning-services' ),
		'panel' => 'air_conditioning_services_custompage_panel',
	) );
	$wp_customize->add_setting( 'air_conditioning_services_section_about_heading', array(
			'default'           => '',
			'transport'         => 'refresh',
			'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new Air_Conditioning_Services_Customizer_Customcontrol_Section_Heading( $wp_customize, 'air_conditioning_services_section_about_heading', array(
		'label'       => esc_html__( 'About Us Settings', 'air-conditioning-services' ),
		'section'     => 'air_conditioning_services_services_section',
		'settings'    => 'air_conditioning_services_section_about_heading',
	) ) );
	$wp_customize->add_setting('air_conditioning_services_about_enable',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'air_conditioning_services_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Air_Conditioning_Services_Customizer_Customcontrol_Switch(
			$wp_customize,
			'air_conditioning_services_about_enable',
			array(
				'settings'        => 'air_conditioning_services_about_enable',
				'section'         => 'air_conditioning_services_services_section',
				'label'           => __( 'Check To show Section', 'air-conditioning-services' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'air-conditioning-services' ),
					'off'    => __( 'Off', 'air-conditioning-services' ),
				),
				'active_callback' => '',
			)
		)
	);
    $wp_customize->add_setting('air_conditioning_services_services_heading',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('air_conditioning_services_services_heading',array(
		'label'	=> esc_html__('Add Heading','air-conditioning-services'),
		'section'	=> 'air_conditioning_services_services_section',
		'type'		=> 'text',
	));
	$wp_customize->add_setting('air_conditioning_services_about_us_settigs',array(
		'sanitize_callback' => 'air_conditioning_services_sanitize_dropdown_pages',
	));
	$wp_customize->add_control('air_conditioning_services_about_us_settigs',array(
		'type'    => 'dropdown-pages',
		'label' => __('Select Page','air-conditioning-services'),
		'section' => 'air_conditioning_services_services_section'
	));

	$wp_customize->add_setting('air_conditioning_services_about_icon',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Air_Conditioning_Services_Fontawesome_Icon_Chooser(
        $wp_customize,'air_conditioning_services_about_icon',array(
		'label'	=> __('Image Icon','air-conditioning-services'),
		'transport' => 'refresh',
		'section'	=> 'air_conditioning_services_services_section',
		'setting'	=> 'air_conditioning_services_about_icon',
		'type'		=> 'icon',
	)));

	$wp_customize->add_setting('air_conditioning_services_box_heading',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('air_conditioning_services_box_heading',array(
		'label'	=> esc_html__('Add  Box Heading','air-conditioning-services'),
		'section'	=> 'air_conditioning_services_services_section',
		'type'		=> 'text',
	));
	$wp_customize->add_setting('air_conditioning_services_box_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('air_conditioning_services_box_text',array(
		'label'	=> esc_html__('Add Box Text','air-conditioning-services'),
		'section'	=> 'air_conditioning_services_services_section',
		'type'		=> 'textarea',
	));
	
	$wp_customize->add_setting('air_conditioning_services_about_icon_1',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Air_Conditioning_Services_Fontawesome_Icon_Chooser(
        $wp_customize,'air_conditioning_services_about_icon_1',array(
		'label'	=> __('Icon 1','air-conditioning-services'),
		'transport' => 'refresh',
		'section'	=> 'air_conditioning_services_services_section',
		'setting'	=> 'air_conditioning_services_about_icon_1',
		'type'		=> 'icon',
	)));

	$wp_customize->add_setting('air_conditioning_services_about_icon1_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('air_conditioning_services_about_icon1_text',array(
		'label'	=> esc_html__('Text 1','air-conditioning-services'),
		'section'	=> 'air_conditioning_services_services_section',
		'type'		=> 'text',
	));
	$wp_customize->add_setting('air_conditioning_services_about_icon_2',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Air_Conditioning_Services_Fontawesome_Icon_Chooser(
        $wp_customize,'air_conditioning_services_about_icon_2',array(
		'label'	=> __('Icon 2','air-conditioning-services'),
		'transport' => 'refresh',
		'section'	=> 'air_conditioning_services_services_section',
		'setting'	=> 'air_conditioning_services_about_icon_2',
		'type'		=> 'icon',
	)));

	$wp_customize->add_setting('air_conditioning_services_about_icon2_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('air_conditioning_services_about_icon2_text',array(
		'label'	=> esc_html__('Text 2','air-conditioning-services'),
		'section'	=> 'air_conditioning_services_services_section',
		'type'		=> 'text',
	));
	$wp_customize->add_setting('air_conditioning_services_about_call_text',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('air_conditioning_services_about_call_text',array(
		'label' => esc_html__('  Call Text','air-conditioning-services'),
		'section' => 'air_conditioning_services_services_section',
		'setting' => 'air_conditioning_services_about_call_text',
		'type'    => 'text',
	));
	$wp_customize->add_setting('air_conditioning_services_about_call_no',array(
		'default' => '',
		'sanitize_callback' => 'air_conditioning_services_sanitize_phone_number'
	));
	$wp_customize->add_control('air_conditioning_services_about_call_no',array(
		'label' => esc_html__('Phone Number','air-conditioning-services'),
		'section' => 'air_conditioning_services_services_section',
		'setting' => 'air_conditioning_services_about_call_no',
		'type'    => 'text',
	));
	$wp_customize->add_setting('air_conditioning_services_about_text_3',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('air_conditioning_services_about_text_3',array(
		'label'	=> esc_html__('Text','air-conditioning-services'),
		'section'	=> 'air_conditioning_services_services_section',
		'type'		=> 'textarea',
	));

	//Footer
    $wp_customize->add_section( 'air_conditioning_services_footer_copyright', array(
    	'title' => esc_html__( 'Footer Text', 'air-conditioning-services' ),
    	'panel' => 'air_conditioning_services_custompage_panel',
	) );
	$wp_customize->add_setting( 'air_conditioning_services_section_footer_heading', array(
		'default'           => '',
		'transport'         => 'refresh',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new Air_Conditioning_Services_Customizer_Customcontrol_Section_Heading( $wp_customize, 'air_conditioning_services_section_footer_heading', array(
		'label'       => esc_html__( 'Footer Settings', 'air-conditioning-services' ),		
		'section'     => 'air_conditioning_services_footer_copyright',
		'settings'    => 'air_conditioning_services_section_footer_heading',
	) ) );
    $wp_customize->add_setting('air_conditioning_services_footer_text',array(
			'default'	=> 'Air Conditioning Services WordPress Theme',
			'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('air_conditioning_services_footer_text',array(
			'label'	=> esc_html__('Copyright Text','air-conditioning-services'),
			'section'	=> 'air_conditioning_services_footer_copyright',
			'type'		=> 'textarea'
	));
	$wp_customize->add_setting('air_conditioning_services_footer_content_alignment',array(
        'default' => 'CENTER-ALIGN',
        'sanitize_callback' => 'air_conditioning_services_sanitize_choices'
	));
	$wp_customize->add_control('air_conditioning_services_footer_content_alignment',array(
		'type' => 'radio',
		'label'     => __('Footer Content Alignment', 'air-conditioning-services'),
		'section' => 'air_conditioning_services_footer_copyright',
		'type' => 'select',
		'choices' => array(
			'LEFT-ALIGN' => __('LEFT','air-conditioning-services'),
            'CENTER-ALIGN' => __('CENTER','air-conditioning-services'),
            'RIGHT-ALIGN' => __('RIGHT','air-conditioning-services'),
		),
	) );

	$wp_customize->add_setting(
		'air_conditioning_services_footer_widgets_show_hide',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'air_conditioning_services_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Air_Conditioning_Services_Customizer_Customcontrol_Switch(
			$wp_customize,
			'air_conditioning_services_footer_widgets_show_hide',
			array(
				'settings'        => 'air_conditioning_services_footer_widgets_show_hide',
				'section'         => 'air_conditioning_services_footer_copyright',
				'label'           => __( 'Check To show Footer Widgets', 'air-conditioning-services' ),
				'choices'		  => array(
					'1'      => __( 'On', 'air-conditioning-services' ),
					'off'    => __( 'Off', 'air-conditioning-services' ),
				),
				'active_callback' => '',
			)
		)
	);

	$wp_customize->add_setting('air_conditioning_services_footer_widget',array(
        'default' => '4',
        'sanitize_callback' => 'air_conditioning_services_sanitize_choices'
	));
	$wp_customize->add_control('air_conditioning_services_footer_widget',array(
		'type' => 'radio',
		'label'     => __('Footer Per Column', 'air-conditioning-services'),
		'section' => 'air_conditioning_services_footer_copyright',
		'type' => 'select',
		'choices' => array(
			'1' => __('1','air-conditioning-services'),
            '2' => __('2','air-conditioning-services'),
            '3' => __('3','air-conditioning-services'),
            '4' => __('4','air-conditioning-services'),
		)
	) );