<?php
/**
 * Cleaning Services Agency Theme Customizer
 *
 * @package Cleaning Services Agency
 */

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

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

	wp_enqueue_style('cleaning-services-agency-customize-controls', trailingslashit(esc_url(get_template_directory_uri())).'/css/customize-controls.css');

	if ( class_exists( 'WP_Customize_Control' ) ) {
		require_once get_template_directory() . '/inc/customizer-custom-controls.php';
	}

	// Enable / Disable Logo
	$wp_customize->add_setting('cleaning_services_agency_logo_enable',array(
		'default' => true,
		'sanitize_callback' => 'cleaning_services_agency_sanitize_checkbox',
	));
	$wp_customize->add_control( 'cleaning_services_agency_logo_enable', array(
		'settings' => 'cleaning_services_agency_logo_enable',
		'section'   => 'title_tagline',
		'label'     => __('Enable Logo','cleaning-services-agency'),
		'type'      => 'checkbox'
	));

	//Logo
    $wp_customize->add_setting('cleaning_services_agency_logo_width',array(
		'default'=> '',
		'transport' => 'refresh',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_integer'
	));
	$wp_customize->add_control(new Cleaning_Services_Agency_Slider_Custom_Control( $wp_customize, 'cleaning_services_agency_logo_width',array(
		'label'	=> esc_html__('Logo Width','cleaning-services-agency'),
		'section'=> 'title_tagline',
		'settings'=>'cleaning_services_agency_logo_width',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 300,
        ),
	)));

	// color site title
	$wp_customize->add_setting('cleaning_services_agency_sitetitle_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_sitetitle_color', array(
	   'settings' => 'cleaning_services_agency_sitetitle_color',
	   'section'   => 'title_tagline',
	   'label' => __('Site Title Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('cleaning_services_agency_title_enable',array(
		'default' => false,
		'sanitize_callback' => 'cleaning_services_agency_sanitize_checkbox',
	));
	$wp_customize->add_control( 'cleaning_services_agency_title_enable', array(
	   'settings' => 'cleaning_services_agency_title_enable',
	   'section'   => 'title_tagline',
	   'label'     => __('Enable Site Title','cleaning-services-agency'),
	   'type'      => 'checkbox'
	));

	// color site tagline
	$wp_customize->add_setting('cleaning_services_agency_sitetagline_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_sitetagline_color', array(
	   'settings' => 'cleaning_services_agency_sitetagline_color',
	   'section'   => 'title_tagline',
	   'label' => __('Site Tagline Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('cleaning_services_agency_tagline_enable',array(
		'default' => false,
		'sanitize_callback' => 'cleaning_services_agency_sanitize_checkbox',
	));
	$wp_customize->add_control( 'cleaning_services_agency_tagline_enable', array(
	   'settings' => 'cleaning_services_agency_tagline_enable',
	   'section'   => 'title_tagline',
	   'label'     => __('Enable Site Tagline','cleaning-services-agency'),
	   'type'      => 'checkbox'
	));

	// woocommerce section
	$wp_customize->add_section('cleaning_services_agency_woocommerce_page_settings', array(
		'title'    => __('WooCommerce Page Settings', 'cleaning-services-agency'),
		'priority' => null,
		'panel'    => 'woocommerce',
	));

	$wp_customize->add_setting('cleaning_services_agency_shop_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'cleaning_services_agency_sanitize_checkbox'
	 ));
	 $wp_customize->add_control('cleaning_services_agency_shop_page_sidebar',array(
		'type' => 'checkbox',
		'label' => __(' Check To Enable Shop page sidebar','cleaning-services-agency'),
		'section' => 'cleaning_services_agency_woocommerce_page_settings',
	 ));

    // shop page sidebar alignment
    $wp_customize->add_setting('cleaning_services_agency_shop_page_sidebar_position', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_choices',
	));
	$wp_customize->add_control('cleaning_services_agency_shop_page_sidebar_position',array(
		'type'           => 'radio',
		'label'          => __('Shop Page Sidebar', 'cleaning-services-agency'),
		'section'        => 'cleaning_services_agency_woocommerce_page_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'cleaning-services-agency'),
			'Right Sidebar' => __('Right Sidebar', 'cleaning-services-agency'),
		),
	));	 

	$wp_customize->add_setting('cleaning_services_agency_wooproducts_nav',array(
		'default' => 'Yes',
		'sanitize_callback'	=> 'cleaning_services_agency_sanitize_choices'
	));
	$wp_customize->add_control('cleaning_services_agency_wooproducts_nav',array(
		'type' => 'select',
		'label' => __('Shop Page Products Navigation','cleaning-services-agency'),
		'choices' => array(
			 'Yes' => __('Yes','cleaning-services-agency'),
			 'No' => __('No','cleaning-services-agency'),
		 ),
		'section' => 'cleaning_services_agency_woocommerce_page_settings',
	));

	$wp_customize->add_setting( 'cleaning_services_agency_single_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'cleaning_services_agency_sanitize_checkbox'
    ) );
    $wp_customize->add_control('cleaning_services_agency_single_page_sidebar',array(
    	'type' => 'checkbox',
       	'label' => __('Check To Enable Single Product Page Sidebar','cleaning-services-agency'),
		'section' => 'cleaning_services_agency_woocommerce_page_settings'
    ));

	// single product page sidebar alignment
    $wp_customize->add_setting('cleaning_services_agency_single_product_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_choices',
	));
	$wp_customize->add_control('cleaning_services_agency_single_product_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Single product Page Sidebar', 'cleaning-services-agency'),
		'section'        => 'cleaning_services_agency_woocommerce_page_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'cleaning-services-agency'),
			'Right Sidebar' => __('Right Sidebar', 'cleaning-services-agency'),
		),
	));	

	$wp_customize->add_setting('cleaning_services_agency_related_product_enable',array(
		'default' => true,
		'sanitize_callback'	=> 'cleaning_services_agency_sanitize_checkbox'
	));
	$wp_customize->add_control('cleaning_services_agency_related_product_enable',array(
		'type' => 'checkbox',
		'label' => __('Check To Enable Related product','cleaning-services-agency'),
		'section' => 'cleaning_services_agency_woocommerce_page_settings',
	));

	$wp_customize->add_setting( 'cleaning_services_agency_woo_product_img_border_radius', array(
        'default'              => '0',
        'transport'            => 'refresh',
        'sanitize_callback'    => 'cleaning_services_agency_sanitize_integer'
    ) );
    $wp_customize->add_control(new Cleaning_Services_Agency_Slider_Custom_Control( $wp_customize, 'cleaning_services_agency_woo_product_img_border_radius',array(
		'label'	=> esc_html__('Product Img Border Radius','cleaning-services-agency'),
		'section'=> 'cleaning_services_agency_woocommerce_page_settings',
		'settings'=>'cleaning_services_agency_woo_product_img_border_radius',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 100,
        ),
	)));

    // Add a setting for number of products per row
    $wp_customize->add_setting('cleaning_services_agency_products_per_row', array(
	   'default'   => '4',
	   'transport' => 'refresh',
	   'sanitize_callback' => 'cleaning_services_agency_sanitize_integer'
    ));
    $wp_customize->add_control('cleaning_services_agency_products_per_row', array(
	   'label'    => __('Products Per Row', 'cleaning-services-agency'),
	   'section'  => 'cleaning_services_agency_woocommerce_page_settings',
	   'settings' => 'cleaning_services_agency_products_per_row',
	   'type'     => 'select',
	   'choices'  => array(
		  '2' => '2',
		  '3' => '3',
		  '4' => '4',
	   ),
   ));

	// Add a setting for the number of products per page
	$wp_customize->add_setting('cleaning_services_agency_products_per_page', array(
		'default'   => '9',
		'transport' => 'refresh',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_integer'
	));
	$wp_customize->add_control('cleaning_services_agency_products_per_page', array(
		'label'    => __('Products Per Page', 'cleaning-services-agency'),
		'section'  => 'cleaning_services_agency_woocommerce_page_settings',
		'settings' => 'cleaning_services_agency_products_per_page',
		'type'     => 'number',
		'input_attrs' => array(
			'min'  => 1,
			'step' => 1,
		),
	));

	//Theme Options
	$wp_customize->add_panel( 'cleaning_services_agency_panel_area', array(
		'priority' => 10,
		'capability' => 'edit_theme_options',
		'title' => __( 'Theme Options Panel', 'cleaning-services-agency' ),
	) );

	//Site Layout Section
	$wp_customize->add_section('cleaning_services_agency_site_layoutsec',array(
		'title'	=> __('Manage Site Layout Section ','cleaning-services-agency'),
		'description' => __('<p class="sec-title">Manage Site Layout Section</p>','cleaning-services-agency'),
		'priority'	=> 1,
		'panel' => 'cleaning_services_agency_panel_area',
	));

	$wp_customize->add_setting('cleaning_services_agency_preloader',array(
		'default' => false,
		'sanitize_callback' => 'cleaning_services_agency_sanitize_checkbox',
	));
	$wp_customize->add_control( 'cleaning_services_agency_preloader', array(
	   'section'   => 'cleaning_services_agency_site_layoutsec',
	   'label'	=> __('Check to show preloader','cleaning-services-agency'),
	   'type'      => 'checkbox'
 	));

	$wp_customize->add_setting('cleaning_services_agency_box_layout',array(
		'default' => false,
		'sanitize_callback' => 'cleaning_services_agency_sanitize_checkbox',
	));
	$wp_customize->add_control( 'cleaning_services_agency_box_layout', array(
	   'section'   => 'cleaning_services_agency_site_layoutsec',
	   'label'	=> __('Check to show Box Layout','cleaning-services-agency'),
	   'type'      => 'checkbox'
 	));	

    // Add Settings and Controls for Page Layout
    $wp_customize->add_setting('cleaning_services_agency_sidebar_page_layout',array(
	  'default' => 'full',
	  'sanitize_callback' => 'cleaning_services_agency_sanitize_choices'
	));
	$wp_customize->add_control('cleaning_services_agency_sidebar_page_layout',array(
		'type' => 'radio',
		'label'     => __('Theme Page Sidebar Position', 'cleaning-services-agency'),
		'section' => 'cleaning_services_agency_site_layoutsec',
		'choices' => array(
			'left' => __('Left','cleaning-services-agency'),
			'right' => __('Right','cleaning-services-agency'),
			'full' => __('No Sidebar','cleaning-services-agency')
	),
	) );	

	$wp_customize->add_setting( 'cleaning_services_agency_layout_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('cleaning_services_agency_layout_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		<a target='_blank' href='". esc_url(CLEANING_SERVICES_AGENCY_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'cleaning_services_agency_site_layoutsec'
	));	

	//Global Color
	$wp_customize->add_section('cleaning_services_agency_global_color', array(
		'title'    => __('Manage Global Color Section', 'cleaning-services-agency'),
		'panel'    => 'cleaning_services_agency_panel_area',
	));

	$wp_customize->add_setting('cleaning_services_agency_first_color', array(
		'default'           => '#4c7eba',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'cleaning_services_agency_first_color', array(
		'label'    => __('Theme Color', 'cleaning-services-agency'),
		'section'  => 'cleaning_services_agency_global_color',
		'settings' => 'cleaning_services_agency_first_color',
	)));	

	$wp_customize->add_setting('cleaning_services_agency_second_color', array(
		'default'           => '#2ea6af',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'cleaning_services_agency_second_color', array(
		'label'    => __('Theme Color', 'cleaning-services-agency'),
		'section'  => 'cleaning_services_agency_global_color',
		'settings' => 'cleaning_services_agency_second_color',
	)));	

	$wp_customize->add_setting( 'cleaning_services_agency_global_color_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('cleaning_services_agency_global_color_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		<a target='_blank' href='". esc_url(CLEANING_SERVICES_AGENCY_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'cleaning_services_agency_global_color'
	));	 

	// Header Section
	$wp_customize->add_section('cleaning_services_agency_header_section', array(
        'title' => __('Manage Header Section', 'cleaning-services-agency'),
		'description' => __('<p class="sec-title">Manage Header Section</p>','cleaning-services-agency'),
        'priority' => null,
		'panel' => 'cleaning_services_agency_panel_area',
 	));

 	$wp_customize->add_setting('cleaning_services_agency_stickyheader',array(
		'default' => false,
		'sanitize_callback' => 'cleaning_services_agency_sanitize_checkbox',
	));
	$wp_customize->add_control( 'cleaning_services_agency_stickyheader', array(
	   'section'   => 'cleaning_services_agency_header_section',
	   'label'	=> __('Check To Show Sticky Header','cleaning-services-agency'),
	   'type'      => 'checkbox'
 	));

 	$wp_customize->add_setting('cleaning_services_agency_topbar',array(
		'default' => false,
		'sanitize_callback' => 'cleaning_services_agency_sanitize_checkbox',
	));
	$wp_customize->add_control( 'cleaning_services_agency_topbar', array(
	   'section'   => 'cleaning_services_agency_header_section',
	   'label'	=> __('Check To Show Topbar','cleaning-services-agency'),
	   'type'      => 'checkbox'
 	));

	$wp_customize->add_setting('cleaning_services_agency_email_address',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_email',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_email_address', array(
	   'settings' => 'cleaning_services_agency_email_address',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('Add Email Address', 'cleaning-services-agency'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('cleaning_services_agency_time',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_time', array(
	   'settings' => 'cleaning_services_agency_time',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('Opening Time', 'cleaning-services-agency'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('cleaning_services_agency_phone_number',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_phone_number',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_phone_number', array(
	   'settings' => 'cleaning_services_agency_phone_number',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('Add Phone Number', 'cleaning-services-agency'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('cleaning_services_agency_phone_text',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_phone_text', array(
	   'settings' => 'cleaning_services_agency_phone_text',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('Add Phone Text', 'cleaning-services-agency'),
	   'type'      => 'text'
	));

	// facebook
	$wp_customize->add_setting('cleaning_services_agency_fb_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_fb_link', array(
	   'settings' => 'cleaning_services_agency_fb_link',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('Facebook Link', 'cleaning-services-agency'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('cleaning_services_agency_fb_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_fb_color', array(
	   'settings' => 'cleaning_services_agency_fb_color',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('Facebook Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	// twitter
	$wp_customize->add_setting('cleaning_services_agency_twitt_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_twitt_link', array(
	   'settings' => 'cleaning_services_agency_twitt_link',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('Twitter Link', 'cleaning-services-agency'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('cleaning_services_agency_twitt_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_twitt_color', array(
	   'settings' => 'cleaning_services_agency_twitt_color',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('Twitter Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	// instagram
	$wp_customize->add_setting('cleaning_services_agency_insta_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_insta_link', array(
	   'settings' => 'cleaning_services_agency_insta_link',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('Instagram Link', 'cleaning-services-agency'),
	   'type'      => 'url'
	));

	// color twitt
	$wp_customize->add_setting('cleaning_services_agency_insta_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_insta_color', array(
	   'settings' => 'cleaning_services_agency_insta_color',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('Instagram Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	// linkedin
	$wp_customize->add_setting('cleaning_services_agency_linkedin_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_linkedin_link', array(
	   'settings' => 'cleaning_services_agency_linkedin_link',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('Linkedin Link', 'cleaning-services-agency'),
	   'type'      => 'url'
	));

	// color linkedin
	$wp_customize->add_setting('cleaning_services_agency_linkedin_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_linkedin_color', array(
	   'settings' => 'cleaning_services_agency_linkedin_color',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('Linkedin Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	// youtube
	$wp_customize->add_setting('cleaning_services_agency_youtube_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_youtube_link', array(
	   'settings' => 'cleaning_services_agency_youtube_link',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('Youtube Link', 'cleaning-services-agency'),
	   'type'      => 'url'
	));

	// color linkedin
	$wp_customize->add_setting('cleaning_services_agency_youtube_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_youtube_color', array(
	   'settings' => 'cleaning_services_agency_youtube_color',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('Youtube Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	// header menu
	$wp_customize->add_setting('cleaning_services_agency_menu_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_menu_color', array(
	   'settings' => 'cleaning_services_agency_menu_color',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('Menu Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	// header menu hover color
	$wp_customize->add_setting('cleaning_services_agency_menuhrv_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_menuhrv_color', array(
	   'settings' => 'cleaning_services_agency_menuhrv_color',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('Menu Hover Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	// header sub menu color
	$wp_customize->add_setting('cleaning_services_agency_submenu_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_submenu_color', array(
	   'settings' => 'cleaning_services_agency_submenu_color',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('SubMenu Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	// header sub menu bg color
	$wp_customize->add_setting('cleaning_services_agency_submenubg_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_submenubg_color', array(
	   'settings' => 'cleaning_services_agency_submenubg_color',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('SubMenu BG Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	// header sub menu hover color
	$wp_customize->add_setting('cleaning_services_agency_submenuhrv_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_submenuhrv_color', array(
	   'settings' => 'cleaning_services_agency_submenuhrv_color',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('SubMenu Hover Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	// header sub menu border color
	$wp_customize->add_setting('cleaning_services_agency_submenuborder_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_submenuborder_color', array(
	   'settings' => 'cleaning_services_agency_submenuborder_color',
	   'section'   => 'cleaning_services_agency_header_section',
	   'label' => __('SubMenu Border Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

    // Menu Text Transform
    $wp_customize->add_setting( 'cleaning_services_agency_menu_text_transform', array(
        'default'           => 'Capitalize',
		'transport' => 'refresh',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_choices'
    ));

    $wp_customize->add_control( 'cleaning_services_agency_menu_text_transform', array(
        'label'    => __( 'Menu Text Transform', 'cleaning-services-agency' ),
        'section'  => 'cleaning_services_agency_header_section',
        'type'     => 'select',
        'choices'  => array(
			'None'       => __( 'None', 'cleaning-services-agency' ),
            'Capitalize' => __( 'Capitalize', 'cleaning-services-agency' ),
            'Uppercase'  => __( 'Uppercase', 'cleaning-services-agency' ),
            'Lowercase'  => __( 'Lowercase', 'cleaning-services-agency' ),
        ),
    ));

	$wp_customize->add_setting( 'cleaning_services_agency_header_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('cleaning_services_agency_header_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		<a target='_blank' href='". esc_url(CLEANING_SERVICES_AGENCY_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'cleaning_services_agency_header_section'
	));	

	// Home Category Dropdown Section
	$wp_customize->add_section('cleaning_services_agency_one_cols_section',array(
		'title'	=> __('Manage Slider Section','cleaning-services-agency'),
		'description'	=> __('<p class="sec-title">Manage Slider Section</p> Select Category from the Dropdowns for slider, Also use the given image dimension (1400 x 600).','cleaning-services-agency'),
		'priority'	=> null,
		'panel' => 'cleaning_services_agency_panel_area'
	));

	//Hide Section
	$wp_customize->add_setting('cleaning_services_agency_hide_categorysec',array(
		'default' => false,
		'sanitize_callback' => 'cleaning_services_agency_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_hide_categorysec', array(
	   'settings' => 'cleaning_services_agency_hide_categorysec',
	   'section'   => 'cleaning_services_agency_one_cols_section',
	   'label'     => __('Check To Enable This Section','cleaning-services-agency'),
	   'type'      => 'checkbox'
	));

	// Add a category dropdown Slider Coloumn
	$wp_customize->add_setting( 'cleaning_services_agency_slidersection', array(
		'default'	=> '0',
		'sanitize_callback'	=> 'absint'
	) );
	$wp_customize->add_control( new Cleaning_Services_Agency_Category_Dropdown_Custom_Control( $wp_customize, 'cleaning_services_agency_slidersection', array(
		'section' => 'cleaning_services_agency_one_cols_section',
	   'label'     => __('Select Category to display Slider','cleaning-services-agency'),
		'settings'   => 'cleaning_services_agency_slidersection',
	) ) );

	$wp_customize->add_setting('cleaning_services_agency_button_text',array(
		'default' => 'Appointment',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_button_text', array(
	   'settings' => 'cleaning_services_agency_button_text',
	   'section'   => 'cleaning_services_agency_one_cols_section',
	   'label' => __('Add Button 1 Text', 'cleaning-services-agency'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('cleaning_services_agency_button_link_slider',array(
        'default'=> '',
        'sanitize_callback' => 'esc_url_raw'
    ));
    $wp_customize->add_control('cleaning_services_agency_button_link_slider',array(
        'label' => esc_html__('Add Button 1 URL','cleaning-services-agency'),
        'section'=> 'cleaning_services_agency_one_cols_section',
        'type'=> 'url'
    ));

	$wp_customize->add_setting('cleaning_services_agency_button2_text',array(
		'default' => 'Contacts',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_button2_text', array(
	   'settings' => 'cleaning_services_agency_button2_text',
	   'section'   => 'cleaning_services_agency_one_cols_section',
	   'label' => __('Add Button 2 Text', 'cleaning-services-agency'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('cleaning_services_agency_button2_url',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_button2_url', array(
	   'settings' => 'cleaning_services_agency_button2_url',
	   'section'   => 'cleaning_services_agency_one_cols_section',
	   'label' => __('Add Button 2 URL', 'cleaning-services-agency'),
	   'type'      => 'url'
	));

	//Slider height
    $wp_customize->add_setting('cleaning_services_agency_slider_img_height',array(
        'default'=> '',
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('cleaning_services_agency_slider_img_height',array(
        'label' => __('Slider Image Height','cleaning-services-agency'),
        'description'   => __('Add the slider image height here (eg. 600px)','cleaning-services-agency'),
        'input_attrs' => array(
            'placeholder' => __( '500px', 'cleaning-services-agency' ),
        ),
        'section'=> 'cleaning_services_agency_one_cols_section',
        'type'=> 'text'
    ));

	// color slider title
	$wp_customize->add_setting('cleaning_services_agency_slidertitle_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_slidertitle_color', array(
	   'settings' => 'cleaning_services_agency_slidertitle_color',
	   'section'   => 'cleaning_services_agency_one_cols_section',
	   'label' => __('Title Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	// color slider description
	$wp_customize->add_setting('cleaning_services_agency_sliderdescription_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_sliderdescription_color', array(
	   'settings' => 'cleaning_services_agency_sliderdescription_color',
	   'section'   => 'cleaning_services_agency_one_cols_section',
	   'label' => __('Description Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	// color slider button1 text
	$wp_customize->add_setting('cleaning_services_agency_sliderbutton1text_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_sliderbutton1text_color', array(
	   'settings' => 'cleaning_services_agency_sliderbutton1text_color',
	   'section'   => 'cleaning_services_agency_one_cols_section',
	   'label' => __('Button 1 Text Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	// color slider button1
	$wp_customize->add_setting('cleaning_services_agency_sliderbutton1_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_sliderbutton1_color', array(
	   'settings' => 'cleaning_services_agency_sliderbutton1_color',
	   'section'   => 'cleaning_services_agency_one_cols_section',
	   'label' => __('Button 1 Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	// color slider button2 text
	$wp_customize->add_setting('cleaning_services_agency_sliderbutton2text_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_sliderbutton2text_color', array(
	   'settings' => 'cleaning_services_agency_sliderbutton2text_color',
	   'section'   => 'cleaning_services_agency_one_cols_section',
	   'label' => __('Button 2 Text Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	// color slider button2
	$wp_customize->add_setting('cleaning_services_agency_sliderbutton2_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_sliderbutton2_color', array(
	   'settings' => 'cleaning_services_agency_sliderbutton2_color',
	   'section'   => 'cleaning_services_agency_one_cols_section',
	   'label' => __('Button 2 Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting( 'cleaning_services_agency_slider_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('cleaning_services_agency_slider_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		<a target='_blank' href='". esc_url(CLEANING_SERVICES_AGENCY_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'cleaning_services_agency_one_cols_section'
	));	

	// Services Section
	$wp_customize->add_section('cleaning_services_agency_about_section', array(
		'title'	=> __('Manage About Section','cleaning-services-agency'),
		'description'	=> __('<p class="sec-title">Manage About Section</p> Select about page and service category from the Dropdowns for about section.','cleaning-services-agency'),
		'priority'	=> null,
		'panel' => 'cleaning_services_agency_panel_area',
	));

	$wp_customize->add_setting('cleaning_services_agency_disabled_pgboxes',array(
		'default' => false,
		'sanitize_callback' => 'cleaning_services_agency_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_disabled_pgboxes', array(
	   'settings' => 'cleaning_services_agency_disabled_pgboxes',
	   'section'   => 'cleaning_services_agency_about_section',
	   'label'     => __('Check To Enable This Section','cleaning-services-agency'),
	   'type'      => 'checkbox'
	));

	$wp_customize->add_setting('cleaning_services_agency_about_pageboxes',array(
		'default'	=> '0',
		'capability' => 'edit_theme_options',
		'sanitize_callback'	=> 'cleaning_services_agency_sanitize_dropdown_pages'
	));
	$wp_customize->add_control(	'cleaning_services_agency_about_pageboxes',array(
		'type' => 'dropdown-pages',
	   'label'     => __('Select Category to display About Page','cleaning-services-agency'),
		'section' => 'cleaning_services_agency_about_section',
	));	

	$wp_customize->add_setting( 'cleaning_services_agency_services_cat', array(
		'default'	=> '0',
		'sanitize_callback'	=> 'absint'
	) );
	$wp_customize->add_control( new Cleaning_Services_Agency_Category_Dropdown_Custom_Control( $wp_customize, 'cleaning_services_agency_services_cat', array(
		'section' => 'cleaning_services_agency_about_section',
	   'label'     => __('Select Category to display Services','cleaning-services-agency'),
		'settings'   => 'cleaning_services_agency_services_cat',
	) ) );

	//  service heading color
	$wp_customize->add_setting('cleaning_services_agency_serviceheading_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_serviceheading_color', array(
	   'settings' => 'cleaning_services_agency_serviceheading_color',
	   'section'   => 'cleaning_services_agency_about_section',
	   'label' => __('Heading Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	//  service title color
	$wp_customize->add_setting('cleaning_services_agency_servicetitle_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_servicetitle_color', array(
	   'settings' => 'cleaning_services_agency_servicetitle_color',
	   'section'   => 'cleaning_services_agency_about_section',
	   'label' => __('Title Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting( 'cleaning_services_agency_about_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('cleaning_services_agency_about_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		<a target='_blank' href='". esc_url(CLEANING_SERVICES_AGENCY_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'cleaning_services_agency_about_section'
	));	

	//Blog post
	$wp_customize->add_section('cleaning_services_agency_blog_post_settings',array(
        'title' => __('Manage Post Section', 'cleaning-services-agency'),
        'priority' => null,
        'panel' => 'cleaning_services_agency_panel_area'
    ) );

	// Layouts Post
	$wp_customize->add_setting(
		'cleaning_services_agency_blog_layout_option_setting',
		array(
			'default'           => 'Left',
			'sanitize_callback' => 'cleaning_services_agency_sanitize_choices',
		)
	);

	$wp_customize->add_control(
		new Cleaning_Services_Agency_Image_Radio_Control(
			$wp_customize,
			'cleaning_services_agency_blog_layout_option_setting',
			array(
				'label'   => __( 'Post Layouts', 'cleaning-services-agency' ),
				'section' => 'cleaning_services_agency_blog_post_settings',
				'choices' => array(
					'Left' => get_template_directory_uri() . '/images/layout-1.png',
					'Center'    => get_template_directory_uri() . '/images/layout-2.png',
					'Right'   => get_template_directory_uri() . '/images/layout-3.png',
				),
			)
		)
	);

	$wp_customize->add_setting('cleaning_services_agency_metafields_date', array(
	    'default' => true,
	    'sanitize_callback' => 'cleaning_services_agency_sanitize_checkbox',
	));
	$wp_customize->add_control('cleaning_services_agency_metafields_date', array(
	    'settings' => 'cleaning_services_agency_metafields_date', 
	    'section'   => 'cleaning_services_agency_blog_post_settings',
	    'label'     => __('Check to Enable Date', 'cleaning-services-agency'),
	    'type'      => 'checkbox',
	));

	$wp_customize->add_setting('cleaning_services_agency_metafields_comments', array(
		'default' => true,
		'sanitize_callback' => 'cleaning_services_agency_sanitize_checkbox',
	));	
	$wp_customize->add_control('cleaning_services_agency_metafields_comments', array(
		'settings' => 'cleaning_services_agency_metafields_comments',
		'section'  => 'cleaning_services_agency_blog_post_settings',
		'label'    => __('Check to Enable Comments', 'cleaning-services-agency'),
		'type'     => 'checkbox',
	));

	$wp_customize->add_setting('cleaning_services_agency_metafields_author', array(
		'default' => true,
		'sanitize_callback' => 'cleaning_services_agency_sanitize_checkbox',
	));
	$wp_customize->add_control('cleaning_services_agency_metafields_author', array(
		'settings' => 'cleaning_services_agency_metafields_author',
		'section'  => 'cleaning_services_agency_blog_post_settings',
		'label'    => __('Check to Enable Author', 'cleaning-services-agency'),
		'type'     => 'checkbox',
	));		

	$wp_customize->add_setting('cleaning_services_agency_metafields_time', array(
		'default' => true,
		'sanitize_callback' => 'cleaning_services_agency_sanitize_checkbox',
	));
	$wp_customize->add_control('cleaning_services_agency_metafields_time', array(
		'settings' => 'cleaning_services_agency_metafields_time',
		'section'  => 'cleaning_services_agency_blog_post_settings',
		'label'    => __('Check to Enable Time', 'cleaning-services-agency'),
		'type'     => 'checkbox',
	));	

	$wp_customize->add_setting('cleaning_services_agency_metabox_seperator',array(
		'default' => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('cleaning_services_agency_metabox_seperator',array(
		'type' => 'text',
		'label' => __('Metabox Seperator','cleaning-services-agency'),
		'description' => __('Ex: "/", "|", "-", ...','cleaning-services-agency'),
		'section' => 'cleaning_services_agency_blog_post_settings'
	)); 

   // Add Settings and Controls for Post Layout
	$wp_customize->add_setting('cleaning_services_agency_sidebar_post_layout',array(
		'default' => 'right',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_choices'
	));
	$wp_customize->add_control('cleaning_services_agency_sidebar_post_layout',array(
		'type' => 'radio',
		'label'     => __('Theme Post Sidebar Position', 'cleaning-services-agency'),
		'description'   => __('This option work for blog page, archive page and search page.', 'cleaning-services-agency'),
		'section' => 'cleaning_services_agency_blog_post_settings',
		'choices' => array(
			'left' => __('Left','cleaning-services-agency'),
			'right' => __('Right','cleaning-services-agency'),
			'three-column' => __('Three Columns','cleaning-services-agency'),
			'four-column' => __('Four Columns','cleaning-services-agency'),
			'grid' => __('Grid Layout','cleaning-services-agency'),
			'full' => __('No Sidebar','cleaning-services-agency')
     ),
	) );

	$wp_customize->add_setting('cleaning_services_agency_blog_post_description_option',array(
    	'default'   => 'Full Content', 
        'sanitize_callback' => 'cleaning_services_agency_sanitize_choices'
	));
	$wp_customize->add_control('cleaning_services_agency_blog_post_description_option',array(
        'type' => 'radio',
        'label' => __('Post Description Length','cleaning-services-agency'),
        'section' => 'cleaning_services_agency_blog_post_settings',
        'choices' => array(
            'No Content' => __('No Content','cleaning-services-agency'),
            'Excerpt Content' => __('Excerpt Content','cleaning-services-agency'),
            'Full Content' => __('Full Content','cleaning-services-agency'),
        ),
	) );

	$wp_customize->add_setting('cleaning_services_agency_blog_post_thumb',array(
        'sanitize_callback' => 'cleaning_services_agency_sanitize_checkbox',
        'default'           => 1,
    ));
    $wp_customize->add_control('cleaning_services_agency_blog_post_thumb',array(
        'type'        => 'checkbox',
        'label'       => esc_html__('Show / Hide Blog Post Thumbnail', 'cleaning-services-agency'),
        'section'     => 'cleaning_services_agency_blog_post_settings',
    ));

	$wp_customize->add_setting( 'cleaning_services_agency_post_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('cleaning_services_agency_post_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		<a target='_blank' href='". esc_url(CLEANING_SERVICES_AGENCY_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'cleaning_services_agency_blog_post_settings'
	));	

	//Single Post Settings
	$wp_customize->add_section('cleaning_services_agency_single_post_settings',array(
		'title' => __('Manage Single Post Section', 'cleaning-services-agency'),
		'priority' => null,
		'panel' => 'cleaning_services_agency_panel_area'
	));

	$wp_customize->add_setting('cleaning_services_agency_single_post_date',array(
		'default' => true,
		'sanitize_callback'	=> 'cleaning_services_agency_sanitize_checkbox'
	));
	$wp_customize->add_control('cleaning_services_agency_single_post_date',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Date ','cleaning-services-agency'),
		'section' => 'cleaning_services_agency_single_post_settings'
	));	

	$wp_customize->add_setting('cleaning_services_agency_single_post_author',array(
		'default' => true,
		'sanitize_callback'	=> 'cleaning_services_agency_sanitize_checkbox'
	));
	$wp_customize->add_control('cleaning_services_agency_single_post_author',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Author','cleaning-services-agency'),
		'section' => 'cleaning_services_agency_single_post_settings'
	));

	$wp_customize->add_setting('cleaning_services_agency_single_post_comment',array(
		'default' => true,
		'sanitize_callback'	=> 'cleaning_services_agency_sanitize_checkbox'
	));
	$wp_customize->add_control('cleaning_services_agency_single_post_comment',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Comments','cleaning-services-agency'),
		'section' => 'cleaning_services_agency_single_post_settings'
	));	

	$wp_customize->add_setting('cleaning_services_agency_single_post_time',array(
		'default' => true,
		'sanitize_callback'	=> 'cleaning_services_agency_sanitize_checkbox'
	));
	$wp_customize->add_control('cleaning_services_agency_single_post_time',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Time','cleaning-services-agency'),
		'section' => 'cleaning_services_agency_single_post_settings'
	));	

	$wp_customize->add_setting('cleaning_services_agency_single_post_metabox_seperator',array(
		'default' => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('cleaning_services_agency_single_post_metabox_seperator',array(
		'type' => 'text',
		'label' => __('Metabox Seperator','cleaning-services-agency'),
		'description' => __('Ex: "/", "|", "-", ...','cleaning-services-agency'),
		'section' => 'cleaning_services_agency_single_post_settings'
	)); 

	$wp_customize->add_setting('cleaning_services_agency_sidebar_single_post_layout',array(
    	'default' => 'right',
    	 'sanitize_callback' => 'cleaning_services_agency_sanitize_choices'
	));
	$wp_customize->add_control('cleaning_services_agency_sidebar_single_post_layout',array(
   		'type' => 'radio',
    	'label'     => __('Single post sidebar layout', 'cleaning-services-agency'),
     	'section' => 'cleaning_services_agency_single_post_settings',
     	'choices' => array(
			'left' => __('Left','cleaning-services-agency'),
			'right' => __('Right','cleaning-services-agency'),
			'full' => __('No Sidebar','cleaning-services-agency')
     ),
	));

	$wp_customize->add_setting( 'cleaning_services_agency_single_post_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('cleaning_services_agency_single_post_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		   <a target='_blank' href='". esc_url(CLEANING_SERVICES_AGENCY_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'cleaning_services_agency_single_post_settings'
	));

	//Page Settings
	$wp_customize->add_section('cleaning_services_agency_page_settings',array(
		'title' => __('Manage Page Section', 'cleaning-services-agency'),
		'priority' => null,
		'panel' => 'cleaning_services_agency_panel_area'
	));

	// Add Settings and Controls for Page Layout
	$wp_customize->add_setting('cleaning_services_agency_sidebar_page_layout',array(
		'default' => 'full',
			'sanitize_callback' => 'cleaning_services_agency_sanitize_choices'
	));
	$wp_customize->add_control('cleaning_services_agency_sidebar_page_layout',array(
		'type' => 'radio',
		'label'     => __('Theme Page Sidebar Position', 'cleaning-services-agency'),
		'section' => 'cleaning_services_agency_page_settings',
		'choices' => array(
			'left' => __('Left','cleaning-services-agency'),
			'right' => __('Right','cleaning-services-agency'),
			'full' => __('No Sidebar','cleaning-services-agency')
	),
	));	

	// 404 Page Settings
	$wp_customize->add_section('cleaning_services_agency_page_not_found', array(
		'title'	=> __('Manage 404 Page Section','cleaning-services-agency'),
		'priority'	=> null,
		'panel' => 'cleaning_services_agency_panel_area',
	));

	$wp_customize->add_setting('cleaning_services_agency_page_not_found_heading',array(
		'default'=> __('404 Not Found','cleaning-services-agency'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('cleaning_services_agency_page_not_found_heading',array(
		'label'	=> __('404 Heading','cleaning-services-agency'),
		'section'=> 'cleaning_services_agency_page_not_found',
		'type'=> 'text'
	));

	$wp_customize->add_setting('cleaning_services_agency_page_not_found_content',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));

	$wp_customize->add_control('cleaning_services_agency_page_not_found_content',array(
		'label'	=> __('404 Text','cleaning-services-agency'),
		'input_attrs' => array(
			'placeholder' => __( 'Looks like you have taken a wrong turn.....Don\'t worry... it happens to the best of us.', 'cleaning-services-agency' ),
		),
		'section'=> 'cleaning_services_agency_page_not_found',
		'type'=> 'text'
	));

	$wp_customize->add_setting('cleaning_services_agency_page_not_found_btn',array(
		'default' => 'Homepage',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_page_not_found_btn', array(
	   'settings' => 'cleaning_services_agency_page_not_found_btn',
	   'section'   => 'cleaning_services_agency_page_not_found',
	   'label' => __('404 Button', 'cleaning-services-agency'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting( 'cleaning_services_agency_page_not_found_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('cleaning_services_agency_page_not_found_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
			<a target='_blank' href='". esc_url(CLEANING_SERVICES_AGENCY_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'cleaning_services_agency_page_not_found'
	));

	// Animation Section
	$wp_customize->add_section('cleaning_services_agency_animation', array(
		'title'	=> __('Manage Animation Section','cleaning-services-agency'),
		'description'	=> __('<p class="sec-title">Manage Animation Section</p>','cleaning-services-agency'),
		'priority'	=> null,
		'panel' => 'cleaning_services_agency_panel_area',
	));

	$wp_customize->add_setting('cleaning_services_agency_animation_enabled',array(
		'default' => true,
		'sanitize_callback' => 'cleaning_services_agency_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_animation_enabled', array(
	   'settings' => 'cleaning_services_agency_animation_enabled',
	   'section'   => 'cleaning_services_agency_animation',
	   'label'     => __('Check To Enable Animation','cleaning-services-agency'),
	   'type'      => 'checkbox'
	));

	$wp_customize->add_setting( 'cleaning_services_agency_animation_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('cleaning_services_agency_animation_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		<a target='_blank' href='". esc_url(CLEANING_SERVICES_AGENCY_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'cleaning_services_agency_animation'
	));

	// Footer Section
	$wp_customize->add_section('cleaning_services_agency_footer', array(
		'title'	=> __('Manage Footer Section','cleaning-services-agency'),
		'description'	=> __('<p class="sec-title">Manage Footer Section</p>','cleaning-services-agency'),
		'priority'	=> null,
		'panel' => 'cleaning_services_agency_panel_area',
	));

	$wp_customize->add_setting('cleaning_services_agency_footer_widget', array(
	    'default' => true,
	    'sanitize_callback' => 'cleaning_services_agency_sanitize_checkbox',
	));
	$wp_customize->add_control('cleaning_services_agency_footer_widget', array(
	    'settings' => 'cleaning_services_agency_footer_widget', // Corrected setting name
	    'section'   => 'cleaning_services_agency_footer',
	    'label'     => __('Check to Enable Footer Widget', 'cleaning-services-agency'),
	    'type'      => 'checkbox',
	));

	$wp_customize->add_setting('cleaning_services_agency_footer_bg_image',array(
        'default'   => '',
        'sanitize_callback' => 'esc_url_raw',
    ));
    $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'cleaning_services_agency_footer_bg_image',array(
        'label' => __('Footer Background Image','cleaning-services-agency'),
        'section' => 'cleaning_services_agency_footer',
    )));

	$wp_customize->add_setting('cleaning_services_agency_footer_img_position',array(
		'default' => 'center center',
		'transport' => 'refresh',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_choices'
	));
	$wp_customize->add_control('cleaning_services_agency_footer_img_position',array(
		'type' => 'select',
		'label' => __('Footer Image Position','cleaning-services-agency'),
		'section' => 'cleaning_services_agency_footer',
		'choices' 	=> array(
			'center center'   => esc_html__( 'Center', 'cleaning-services-agency' ),
			'center top'   => esc_html__( 'Top', 'cleaning-services-agency' ),
			'left center'   => esc_html__( 'Left', 'cleaning-services-agency' ),
			'right center'   => esc_html__( 'Right', 'cleaning-services-agency' ),
			'center bottom'   => esc_html__( 'Bottom', 'cleaning-services-agency' ),
		),
	));	

	$wp_customize->add_setting('cleaning_services_agency_copyright_line',array(
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control( 'cleaning_services_agency_copyright_line', array(
	   'section' 	=> 'cleaning_services_agency_footer',
	   'label'	 	=> __('Copyright Line','cleaning-services-agency'),
	   'type'    	=> 'text',
	   'priority' 	=> null,
    ));

    $wp_customize->add_setting('cleaning_services_agency_copyright_link',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
	));	
	$wp_customize->add_control( 'cleaning_services_agency_copyright_link', array(
	   'section' 	=> 'cleaning_services_agency_footer',
	   'label'	 	=> __('Copyright Link','cleaning-services-agency'),
	   'type'    	=> 'text',
	   'priority' 	=> null,
    ));

	//  footer bg color
	$wp_customize->add_setting('cleaning_services_agency_footerbg_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));

	$wp_customize->add_control( 'cleaning_services_agency_footerbg_color', array(
	   'settings' => 'cleaning_services_agency_footerbg_color',
	   'section'   => 'cleaning_services_agency_footer',
	   'label' => __('BG Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	//  footer bg color
	$wp_customize->add_setting('cleaning_services_agency_footerbg_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));

	$wp_customize->add_control( 'cleaning_services_agency_footerbg_color', array(
	   'settings' => 'cleaning_services_agency_footerbg_color',
	   'section'   => 'cleaning_services_agency_footer',
	   'label' => __('BG Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	//  footer title color
	$wp_customize->add_setting('cleaning_services_agency_footertitle_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));

	$wp_customize->add_control( 'cleaning_services_agency_footertitle_color', array(
	   'settings' => 'cleaning_services_agency_footertitle_color',
	   'section'   => 'cleaning_services_agency_footer',
	   'label' => __('Title Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	//  footer list color
	$wp_customize->add_setting('cleaning_services_agency_footerlist_color',array(
		'default' => '',
		'sanitize_callback' => 'cleaning_services_agency_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_footerlist_color', array(
	   'settings' => 'cleaning_services_agency_footerlist_color',
	   'section'   => 'cleaning_services_agency_footer',
	   'label' => __('List Color', 'cleaning-services-agency'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('cleaning_services_agency_scroll_hide', array(
        'default' => true,
        'sanitize_callback' => 'cleaning_services_agency_sanitize_checkbox'
    ));
    $wp_customize->add_control( new WP_Customize_Control($wp_customize,'cleaning_services_agency_scroll_hide',array(
        'label'          => __( 'Check To Show Scroll To Top', 'cleaning-services-agency' ),
        'section'        => 'cleaning_services_agency_footer',
        'settings'       => 'cleaning_services_agency_scroll_hide',
        'type'           => 'checkbox',
    )));

    $wp_customize->add_setting('cleaning_services_agency_scroll_position',array(
        'default' => 'Right',
        'sanitize_callback' => 'cleaning_services_agency_sanitize_choices'
    ));
    $wp_customize->add_control('cleaning_services_agency_scroll_position',array(
        'type' => 'radio',
        'section' => 'cleaning_services_agency_footer',
        'label'	 	=> __('Scroll To Top Positions','cleaning-services-agency'),
        'choices' => array(
            'Right' => __('Right','cleaning-services-agency'),
            'Left' => __('Left','cleaning-services-agency'),
            'Center' => __('Center','cleaning-services-agency')
        ),
    ) );

	$wp_customize->add_setting('cleaning_services_agency_scroll_text',array(
		'default'	=> __('TOP','cleaning-services-agency'),
		'sanitize_callback'	=> 'sanitize_text_field',
	));	
	$wp_customize->add_control('cleaning_services_agency_scroll_text',array(
		'label'	=> __('Scroll To Top Button Text','cleaning-services-agency'),
		'section'	=> 'cleaning_services_agency_footer',
		'type'		=> 'text'
	));

	$wp_customize->add_setting( 'cleaning_services_agency_scroll_top_shape', array(
		'default'           => 'circle',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control( 'cleaning_services_agency_scroll_top_shape', array(
		'label'    => __( 'Scroll to Top Button Shape', 'cleaning-services-agency' ),
		'section'  => 'cleaning_services_agency_footer',
		'settings' => 'cleaning_services_agency_scroll_top_shape',
		'type'     => 'radio',
		'choices'  => array(
			'box'        => __( 'Box', 'cleaning-services-agency' ),
			'curved' => __( 'Curved', 'cleaning-services-agency'),
			'circle'     => __( 'Circle', 'cleaning-services-agency' ),
		),
	));

	$wp_customize->add_setting('cleaning_services_agency_footer_widget_areas',array(
		'default'           => 4,
		'sanitize_callback' => 'cleaning_services_agency_sanitize_choices',
	));
	$wp_customize->add_control('cleaning_services_agency_footer_widget_areas',array(
		'type'        => 'radio',
		'section' => 'cleaning_services_agency_footer',
		'label'       => __('Footer widget area', 'cleaning-services-agency'),
		'choices' => array(
		   '1'     => __('One', 'cleaning-services-agency'),
		   '2'     => __('Two', 'cleaning-services-agency'),
		   '3'     => __('Three', 'cleaning-services-agency'),
		   '4'     => __('Four', 'cleaning-services-agency')
		),
	));

	$wp_customize->add_setting( 'cleaning_services_agency_footer_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('cleaning_services_agency_footer_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		<a target='_blank' href='". esc_url(CLEANING_SERVICES_AGENCY_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'cleaning_services_agency_footer'
	));	

	// Footer Social Section
	$wp_customize->add_section('cleaning_services_agency_footer_social_icons', array(
		'title'	=> __('Manage Footer Social Section','cleaning-services-agency'),
		'description'	=> __('<p class="sec-title">Manage Footer Social Section</p>','cleaning-services-agency'),
		'priority'	=> null,
		'panel' => 'cleaning_services_agency_panel_area',
	));

	$wp_customize->add_setting('cleaning_services_agency_footer_facebook_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_footer_facebook_link', array(
		'settings' => 'cleaning_services_agency_footer_facebook_link',
		'section'   => 'cleaning_services_agency_footer_social_icons',
		'label' => __('Facebook Link', 'cleaning-services-agency'),
		'type'      => 'url'
	));

	$wp_customize->add_setting('cleaning_services_agency_footer_twitter_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_footer_twitter_link', array(
		'settings' => 'cleaning_services_agency_footer_twitter_link',
		'section'   => 'cleaning_services_agency_footer_social_icons',
		'label' => __('Twitter Link', 'cleaning-services-agency'),
		'type'      => 'url'
	));

	$wp_customize->add_setting('cleaning_services_agency_footer_instagram_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_footer_instagram_link', array(
		'settings' => 'cleaning_services_agency_footer_instagram_link',
		'section'   => 'cleaning_services_agency_footer_social_icons',
		'label' => __('Instagram Link', 'cleaning-services-agency'),
		'type'      => 'url'
	));

	$wp_customize->add_setting('cleaning_services_agency_footer_linkedin_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_footer_linkedin_link', array(
		'settings' => 'cleaning_services_agency_footer_linkedin_link',
		'section'   => 'cleaning_services_agency_footer_social_icons',
		'label' => __('Linkedin Link', 'cleaning-services-agency'),
		'type'      => 'url'
	));

	$wp_customize->add_setting('cleaning_services_agency_footer_youtube_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cleaning_services_agency_footer_youtube_link', array(
		'settings' => 'cleaning_services_agency_footer_youtube_link',
		'section'   => 'cleaning_services_agency_footer_social_icons',
		'label' => __('Youtube Link', 'cleaning-services-agency'),
		'type'      => 'url'
	));

	$wp_customize->add_setting( 'cleaning_services_agency_footer_social_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('cleaning_services_agency_footer_social_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		   <a target='_blank' href='". esc_url(CLEANING_SERVICES_AGENCY_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'cleaning_services_agency_footer_social_icons'
	));

	// Google Fonts
	$wp_customize->add_section( 'cleaning_services_agency_google_fonts_section', array(
		'title'       => __( 'Google Fonts', 'cleaning-services-agency' ),
		'priority'    => 24,
	) );

	$font_choices = array(
		'' => 'No Fonts',
		'Kaushan Script:' => 'Kaushan Script',
		'Emilys Candy:' => 'Emilys Candy',
		'Poppins:0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900' => 'Poppins',
		'Source Sans Pro:400,700,400italic,700italic' => 'Source Sans Pro',
		'Open Sans:400italic,700italic,400,700' => 'Open Sans',
		'Oswald:400,700' => 'Oswald',
		'Playfair Display:400,700,400italic' => 'Playfair Display',
		'Montserrat:400,700' => 'Montserrat',
		'Raleway:400,700' => 'Raleway',
		'Droid Sans:400,700' => 'Droid Sans',
		'Lato:400,700,400italic,700italic' => 'Lato',
		'Arvo:400,700,400italic,700italic' => 'Arvo',
		'Lora:400,700,400italic,700italic' => 'Lora',
		'Merriweather:400,300italic,300,400italic,700,700italic' => 'Merriweather',
		'Oxygen:400,300,700' => 'Oxygen',
		'PT Serif:400,700' => 'PT Serif',
		'PT Sans:400,700,400italic,700italic' => 'PT Sans',
		'PT Sans Narrow:400,700' => 'PT Sans Narrow',
		'Cabin:400,700,400italic' => 'Cabin',
		'Fjalla One:400' => 'Fjalla One',
		'Francois One:400' => 'Francois One',
		'Josefin Sans:400,300,600,700' => 'Josefin Sans',
		'Libre Baskerville:400,400italic,700' => 'Libre Baskerville',
		'Arimo:400,700,400italic,700italic' => 'Arimo',
		'Ubuntu:400,700,400italic,700italic' => 'Ubuntu',
		'Bitter:400,700,400italic' => 'Bitter',
		'Droid Serif:400,700,400italic,700italic' => 'Droid Serif',
		'Roboto:400,400italic,700,700italic' => 'Roboto',
		'Open Sans Condensed:700,300italic,300' => 'Open Sans Condensed',
		'Roboto Condensed:400italic,700italic,400,700' => 'Roboto Condensed',
		'Roboto Slab:400,700' => 'Roboto Slab',
		'Yanone Kaffeesatz:400,700' => 'Yanone Kaffeesatz',
		'Rokkitt:400' => 'Rokkitt',
	);

	$wp_customize->add_setting( 'cleaning_services_agency_headings_fonts', array(
		'sanitize_callback' => 'cleaning_services_agency_sanitize_fonts',
	));
	$wp_customize->add_control( 'cleaning_services_agency_headings_fonts', array(
		'type' => 'select',
		'description' => __('Select your desired font for the headings.', 'cleaning-services-agency'),
		'section' => 'cleaning_services_agency_google_fonts_section',
		'choices' => $font_choices
	));

	$wp_customize->add_setting( 'cleaning_services_agency_body_fonts', array(
		'sanitize_callback' => 'cleaning_services_agency_sanitize_fonts'
	));
	$wp_customize->add_control( 'cleaning_services_agency_body_fonts', array(
		'type' => 'select',
		'description' => __( 'Select your desired font for the body.', 'cleaning-services-agency' ),
		'section' => 'cleaning_services_agency_google_fonts_section',
		'choices' => $font_choices
	));

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

/**
 * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
 */
function cleaning_services_agency_customize_preview_js() {
	wp_enqueue_script( 'cleaning_services_agency_customizer', esc_url(get_template_directory_uri()) . '/js/customize-preview.js', array( 'customize-preview' ), '20161510', true );
}
add_action( 'customize_preview_init', 'cleaning_services_agency_customize_preview_js' );
