<?php
/**
 * Solar Services Theme Customizer
 *
 * @package Solar Services
 */

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

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

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

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

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

	//logo
    $wp_customize->add_setting('solar_services_logo_width',array(
		'default'=> '',
		'transport' => 'refresh',
		'sanitize_callback' => 'solar_services_sanitize_integer'
	));
	$wp_customize->add_control(new Solar_Services_Slider_Custom_Control( $wp_customize, 'solar_services_logo_width',array(
		'label'	=> esc_html__('logo Width','solar-services'),
		'section'=> 'title_tagline',
		'settings'=>'solar_services_logo_width',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 300,
        ),
	)));

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

	$wp_customize->add_setting('solar_services_title_enable',array(
		'default' => false,
		'sanitize_callback' => 'solar_services_sanitize_checkbox',
	));
	$wp_customize->add_control( 'solar_services_title_enable', array(
	   'settings' => 'solar_services_title_enable',
	   'section'   => 'title_tagline',
	   'label'     => __('Enable Site Title','solar-services'),
	   'type'      => 'checkbox'
	));

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

	$wp_customize->add_setting('solar_services_shop_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'solar_services_sanitize_checkbox'
	));
	$wp_customize->add_control('solar_services_shop_page_sidebar',array(
		'type' => 'checkbox',
		'label' => __(' Check To Enable Shop page sidebar','solar-services'),
		'section' => 'solar_services_woocommerce_page_settings',
	));

    // shop page sidebar alignment
    $wp_customize->add_setting('solar_services_shop_page_sidebar_position', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'solar_services_sanitize_choices',
	));
	$wp_customize->add_control('solar_services_shop_page_sidebar_position',array(
		'type'           => 'radio',
		'label'          => __('Shop Page Sidebar', 'solar-services'),
		'section'        => 'solar_services_woocommerce_page_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'solar-services'),
			'Right Sidebar' => __('Right Sidebar', 'solar-services'),
		),
	));	 

	$wp_customize->add_setting( 'solar_services_single_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'solar_services_sanitize_checkbox'
    ));
    $wp_customize->add_control('solar_services_single_page_sidebar',array(
    	'type' => 'checkbox',
       	'label' => __('Check To Enable Single Product Page Sidebar','solar-services'),
		'section' => 'solar_services_woocommerce_page_settings'
    ));

	// single product page sidebar alignment
    $wp_customize->add_setting('solar_services_single_product_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'solar_services_sanitize_choices',
	));
	$wp_customize->add_control('solar_services_single_product_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Single product Page Sidebar', 'solar-services'),
		'section'        => 'solar_services_woocommerce_page_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'solar-services'),
			'Right Sidebar' => __('Right Sidebar', 'solar-services'),
		),
	));	

	$wp_customize->add_setting( 'solar_services_woo_product_img_border_radius', array(
        'default'              => '0',
        'transport'            => 'refresh',
        'sanitize_callback'    => 'solar_services_sanitize_integer'
    ) );
    $wp_customize->add_control(new Solar_Services_Slider_Custom_Control( $wp_customize, 'solar_services_woo_product_img_border_radius',array(
		'label'	=> esc_html__('Woo Product Img Border Radius','solar-services'),
		'section'=> 'solar_services_woocommerce_page_settings',
		'settings'=>'solar_services_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('solar_services_products_per_row', array(
	   'default'   => '4',
	   'transport' => 'refresh',
	   'sanitize_callback' => 'solar_services_sanitize_integer'
    ));
    $wp_customize->add_control('solar_services_products_per_row', array(
	   'label'    => __('Woo Products Per Row', 'solar-services'),
	   'section'  => 'solar_services_woocommerce_page_settings',
	   'settings' => 'solar_services_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('solar_services_products_per_page', array(
	  'default'   => '9',
	  'transport' => 'refresh',
	  'sanitize_callback' => 'solar_services_sanitize_integer'
   ));
   $wp_customize->add_control('solar_services_products_per_page', array(
	  'label'    => __('Woo Products Per Page', 'solar-services'),
	  'section'  => 'solar_services_woocommerce_page_settings',
	  'settings' => 'solar_services_products_per_page',
	  'type'     => 'number',
	  'input_attrs' => array(
		 'min'  => 1,
		 'step' => 1,
	 ),
   ));
   
	//Theme Options
	$wp_customize->add_panel( 'solar_services_panel_area', array(
		'priority' => 10,
		'capability' => 'edit_theme_options',
		'title' => __( 'Theme Options Panel', 'solar-services' ),
	) );

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

	$wp_customize->add_setting('solar_services_preloader',array(
		'default' => false,
		'sanitize_callback' => 'solar_services_sanitize_checkbox',
	));
	$wp_customize->add_control( 'solar_services_preloader', array(
	   'section'   => 'solar_services_site_layoutsec',
	   'label'	=> __('Check to Show preloader','solar-services'),
	   'type'      => 'checkbox'
 	));

	$wp_customize->add_setting('solar_services_box_layout',array(
		'default' => false,
		'sanitize_callback' => 'solar_services_sanitize_checkbox',
	));
	$wp_customize->add_control( 'solar_services_box_layout', array(
	   'section'   => 'solar_services_site_layoutsec',
	   'label'	=> __('Check to Show Box Layout','solar-services'),
	   'type'      => 'checkbox'
 	));

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

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

	//Global Color
	$wp_customize->add_section('solar_services_global_color', array(
		'title'    => __('Manage Global Color Section', 'solar-services'),
		'panel'    => 'solar_services_panel_area',
	));

	$wp_customize->add_setting('solar_services_first_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'solar_services_first_color', array(
		'label'    => __('Theme Color', 'solar-services'),
		'section'  => 'solar_services_global_color',
		'settings' => 'solar_services_first_color',
	)));	

	$wp_customize->add_setting('solar_services_second_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'solar_services_second_color', array(
		'label'    => __('Theme Color', 'solar-services'),
		'section'  => 'solar_services_global_color',
		'settings' => 'solar_services_second_color',
	)));	

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

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

 	$wp_customize->add_setting('solar_services_topbar',array(
		'default' => false,
		'sanitize_callback' => 'solar_services_sanitize_checkbox',
	));
	$wp_customize->add_control( 'solar_services_topbar', array(
	   'section'   => 'solar_services_header_section',
	   'label'	=> __('Check to show topbar','solar-services'),
	   'type'      => 'checkbox'
 	));

 	$wp_customize->add_setting('solar_services_stickyheader',array(
		'default' => false,
		'sanitize_callback' => 'solar_services_sanitize_checkbox',
	));

	$wp_customize->add_control( 'solar_services_stickyheader', array(
	   'section'   => 'solar_services_header_section',
	   'label'	=> __('Check To Show Sticky Header','solar-services'),
	   'type'      => 'checkbox'
 	));

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

    $wp_customize->add_control( 'solar_services_menu_text_transform', array(
        'label'    => __( 'Menu Text Transform', 'solar-services' ),
        'section'  => 'solar_services_header_section',
        'type'     => 'select',
        'choices'  => array(
			'None'       => __( 'None', 'solar-services' ),
            'Capitalize' => __( 'Capitalize', 'solar-services' ),
            'Uppercase'  => __( 'Uppercase', 'solar-services' ),
            'Lowercase'  => __( 'Lowercase', 'solar-services' ),
        ),
    ));

	// header topbg color
	$wp_customize->add_setting('solar_services_headertopbg_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headertopbg_color', array(
	   'settings' => 'solar_services_headertopbg_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Top BG Color', 'solar-services'),
	   'type'      => 'color'
	));

	// phone
	$wp_customize->add_setting('solar_services_phone_text',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_phone_text', array(
	   'settings' => 'solar_services_phone_text',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Add Phone Number', 'solar-services'),
	   'type'      => 'text'
	));

	// header phoneicon color
	$wp_customize->add_setting('solar_services_headerphoneicon_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headerphoneicon_color', array(
	   'settings' => 'solar_services_headerphoneicon_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Phone Icon Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header phoneiconbg color
	$wp_customize->add_setting('solar_services_headerphoneiconbg_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headerphoneiconbg_color', array(
	   'settings' => 'solar_services_headerphoneiconbg_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Phone Icon BG Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header phonetext color
	$wp_customize->add_setting('solar_services_headerphonetext_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headerphonetext_color', array(
	   'settings' => 'solar_services_headerphonetext_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Phone Text Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header phonehover color
	$wp_customize->add_setting('solar_services_headerphonehover_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headerphonehover_color', array(
	   'settings' => 'solar_services_headerphonehover_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Phone Hover Color', 'solar-services'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('solar_services_email_text',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_email_text', array(
	   'settings' => 'solar_services_email_text',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Add Email Address', 'solar-services'),
	   'type'      => 'text'
	));

	// header emailicon color
	$wp_customize->add_setting('solar_services_headeremailicon_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headeremailicon_color', array(
	   'settings' => 'solar_services_headeremailicon_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Email Icon Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header emailiconbg color
	$wp_customize->add_setting('solar_services_headeremailiconbg_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headeremailiconbg_color', array(
	   'settings' => 'solar_services_headeremailiconbg_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Email Icon BG Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header emailtext color
	$wp_customize->add_setting('solar_services_headeremailtext_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headeremailtext_color', array(
	   'settings' => 'solar_services_headeremailtext_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Email Text Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header emailhover color
	$wp_customize->add_setting('solar_services_headeremailhover_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headeremailhover_color', array(
	   'settings' => 'solar_services_headeremailhover_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Email Hover Color', 'solar-services'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('solar_services_twitt_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_twitt_link', array(
	   'settings' => 'solar_services_twitt_link',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Twitter Link', 'solar-services'),
	   'type'      => 'url'
	));

	// header twitt color
	$wp_customize->add_setting('solar_services_headertwitt_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headertwitt_color', array(
	   'settings' => 'solar_services_headertwitt_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Twitter Icon Color', 'solar-services'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('solar_services_insta_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_insta_link', array(
	   'settings' => 'solar_services_insta_link',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Instagram Link', 'solar-services'),
	   'type'      => 'url'
	));

	// header Instagram color
	$wp_customize->add_setting('solar_services_headerInstagram_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headerInstagram_color', array(
	   'settings' => 'solar_services_headerInstagram_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Instagram Icon Color', 'solar-services'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('solar_services_pinterest_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_pinterest_link', array(
	   'settings' => 'solar_services_pinterest_link',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Pinterest Link', 'solar-services'),
	   'type'      => 'url'
	));

	// header Pinterest color
	$wp_customize->add_setting('solar_services_headerpinterest_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headerpinterest_color', array(
	   'settings' => 'solar_services_headerpinterest_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Pinterest Icon Color', 'solar-services'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('solar_services_fb_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_fb_link', array(
	   'settings' => 'solar_services_fb_link',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Facebook Link', 'solar-services'),
	   'type'      => 'url'
	));

	// header fbicon color
	$wp_customize->add_setting('solar_services_headerfbicon_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headerfbicon_color', array(
	   'settings' => 'solar_services_headerfbicon_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Facebook Icon Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header iconsbg color
	$wp_customize->add_setting('solar_services_headericonsbg_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headericonsbg_color', array(
	   'settings' => 'solar_services_headericonsbg_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Icons BG Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header iconshover color
	$wp_customize->add_setting('solar_services_headericonshover_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headericonshover_color', array(
	   'settings' => 'solar_services_headericonshover_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Icons Hover Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header menusbg color
	$wp_customize->add_setting('solar_services_headermenusbg_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headermenusbg_color', array(
	   'settings' => 'solar_services_headermenusbg_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Menu BG Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header menu color
	$wp_customize->add_setting('solar_services_headermenu_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headermenu_color', array(
	   'settings' => 'solar_services_headermenu_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Menus Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header menuhover color
	$wp_customize->add_setting('solar_services_headermenuhover_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headermenuhover_color', array(
	   'settings' => 'solar_services_headermenuhover_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Menus Hover Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header submenu color
	$wp_customize->add_setting('solar_services_headersubmenu_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headersubmenu_color', array(
	   'settings' => 'solar_services_headersubmenu_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('SubMenus Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header submenuhover color
	$wp_customize->add_setting('solar_services_headersubmenuhover_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headersubmenuhover_color', array(
	   'settings' => 'solar_services_headersubmenuhover_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('SubMenus Hover Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header submenubg color
	$wp_customize->add_setting('solar_services_headersubmenubg_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headersubmenubg_color', array(
	   'settings' => 'solar_services_headersubmenubg_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('SubMenus BG Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header submenuborder color
	$wp_customize->add_setting('solar_services_headersubmenuborder_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headersubmenuborder_color', array(
	   'settings' => 'solar_services_headersubmenuborder_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('SubMenus Border Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header btn text
	$wp_customize->add_setting('solar_services_headerbutton_txt',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headerbutton_txt', array(
	   'settings' => 'solar_services_headerbutton_txt',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Button Text', 'solar-services'),
	   'type'      => 'text'
	));

	// header btn link
	$wp_customize->add_setting('solar_services_headerbutton_link',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headerbutton_link', array(
	   'settings' => 'solar_services_headerbutton_link',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Button Link', 'solar-services'),
	   'type'      => 'text'
	));

	// header btntext color
	$wp_customize->add_setting('solar_services_headerbtntext_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headerbtntext_color', array(
	   'settings' => 'solar_services_headerbtntext_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Button Text Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header btntextborder color
	$wp_customize->add_setting('solar_services_headerbtntextborder_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headerbtntextborder_color', array(
	   'settings' => 'solar_services_headerbtntextborder_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Button Border Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header btntextbg color
	$wp_customize->add_setting('solar_services_headerbtntextbg_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headerbtntextbg_color', array(
	   'settings' => 'solar_services_headerbtntextbg_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Button Text BG Color', 'solar-services'),
	   'type'      => 'color'
	));

	// header btntexthover color
	$wp_customize->add_setting('solar_services_headerbtntexthover_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headerbtntexthover_color', array(
	   'settings' => 'solar_services_headerbtntexthover_color',
	   'section'   => 'solar_services_header_section',
	   'label' => __('Button Text Hover Color', 'solar-services'),
	   'type'      => 'color'
	));

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

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

	//Hide Section
	$wp_customize->add_setting('solar_services_hide_categorysec',array(
		'default' => true,
		'sanitize_callback' => 'solar_services_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_hide_categorysec', array(
	   'settings' => 'solar_services_hide_categorysec',
	   'section'   => 'solar_services_one_cols_section',
	   'label'     => __('Check To Enable This Section','solar-services'),
	   'type'      => 'checkbox'
	));

	// Add a category dropdown Slider Coloumn
	$wp_customize->add_setting( 'solar_services_slidersection', array(
		'default'	=> '0',
		'sanitize_callback'	=> 'absint'
	) );
	$wp_customize->add_control( new Solar_Services_Category_Dropdown_Custom_Control( $wp_customize, 'solar_services_slidersection', array(
		'section' => 'solar_services_one_cols_section',
	   'label'     => __('Select Category to display Slider','solar-services'),
		'settings'   => 'solar_services_slidersection',
	) ) );

	// header slidertitle color
	$wp_customize->add_setting('solar_services_slidertitle_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_slidertitle_color', array(
	   'settings' => 'solar_services_slidertitle_color',
	   'section'   => 'solar_services_one_cols_section',
	   'label' => __('Title Color', 'solar-services'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('solar_services_button_text',array(
		'default' => 'Our Service',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_button_text', array(
	   'settings' => 'solar_services_button_text',
	   'section'   => 'solar_services_one_cols_section',
	   'label' => __('Add Button 1 Text', 'solar-services'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('solar_services_button_link_slider',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_button_link_slider', array(
	   'settings' => 'solar_services_button_link_slider',
	   'section'   => 'solar_services_one_cols_section',
	   'label' => __('Add Button 1 Text Link', 'solar-services'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('solar_services_button_text2',array(
		'default' => 'More About Us',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_button_text2', array(
	   'settings' => 'solar_services_button_text2',
	   'section'   => 'solar_services_one_cols_section',
	   'label' => __('Add Button 2 Text', 'solar-services'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('solar_services_button_text2link',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_button_text2link', array(
	   'settings' => 'solar_services_button_text2link',
	   'section'   => 'solar_services_one_cols_section',
	   'label' => __('Add Button 2 Text Link', 'solar-services'),
	   'type'      => 'text'
	));

	// slider btntext color
	$wp_customize->add_setting('solar_services_sliderbtntext_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_sliderbtntext_color', array(
	   'settings' => 'solar_services_sliderbtntext_color',
	   'section'   => 'solar_services_one_cols_section',
	   'label' => __('Button 1 Text Color', 'solar-services'),
	   'type'      => 'color'
	));

	// slider btnbg color
	$wp_customize->add_setting('solar_services_sliderbtnbg_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_sliderbtnbg_color', array(
	   'settings' => 'solar_services_sliderbtnbg_color',
	   'section'   => 'solar_services_one_cols_section',
	   'label' => __('Button 1 BG Color', 'solar-services'),
	   'type'      => 'color'
	));

	// slider btnborder color
	$wp_customize->add_setting('solar_services_sliderbtnborder_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_sliderbtnborder_color', array(
	   'settings' => 'solar_services_sliderbtnborder_color',
	   'section'   => 'solar_services_one_cols_section',
	   'label' => __('Button 1 Border Color', 'solar-services'),
	   'type'      => 'color'
	));

	// slider btntext2 color
	$wp_customize->add_setting('solar_services_sliderbtntext2_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_sliderbtntext2_color', array(
	   'settings' => 'solar_services_sliderbtntext2_color',
	   'section'   => 'solar_services_one_cols_section',
	   'label' => __('Button 2 Text Color', 'solar-services'),
	   'type'      => 'color'
	));

	// slider btnbg2 color
	$wp_customize->add_setting('solar_services_sliderbtnbg2_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_sliderbtnbg2_color', array(
	   'settings' => 'solar_services_sliderbtnbg2_color',
	   'section'   => 'solar_services_one_cols_section',
	   'label' => __('Button 2 BG Color', 'solar-services'),
	   'type'      => 'color'
	));

	// slider btnborder2 color
	$wp_customize->add_setting('solar_services_sliderbtnborder2_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_sliderbtnborder2_color', array(
	   'settings' => 'solar_services_sliderbtnborder2_color',
	   'section'   => 'solar_services_one_cols_section',
	   'label' => __('Button 2 Border Color', 'solar-services'),
	   'type'      => 'color'
	));

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

	// Features Section
	$wp_customize->add_section('solar_services_feature_section', array(
		'title'	=> __('Manage Features Section','solar-services'),
		'description'	=> __('<p class="sec-title">Manage Features Section</p> Select Pages from the dropdown for blog.','solar-services'),
		'priority'	=> null,
		'panel' => 'solar_services_panel_area',
	));

	$wp_customize->add_setting('solar_services_disabled_feature_pgboxes',array(
		'default' => true,
		'sanitize_callback' => 'solar_services_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_disabled_feature_pgboxes', array(
	   'settings' => 'solar_services_disabled_feature_pgboxes',
	   'section'   => 'solar_services_feature_section',
	   'label'     => __('Check To Enable This Section','solar-services'),
	   'type'      => 'checkbox'
	));

	// Add a category dropdown
	$wp_customize->add_setting( 'solar_services_feature_cat', array(
		'default'	=> '0',
		'sanitize_callback'	=> 'absint'
	) );
	$wp_customize->add_control( new Solar_Services_Category_Dropdown_Custom_Control( $wp_customize, 'solar_services_feature_cat', array(
		'section' => 'solar_services_feature_section',
	   'label'     => __('Select Category to display Features','solar-services'),
		'settings'   => 'solar_services_feature_cat',
	) ) );

	// feature leftboxbg color
	$wp_customize->add_setting('solar_services_featureleftboxbg_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featureleftboxbg_color', array(
	   'settings' => 'solar_services_featureleftboxbg_color',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('Left Box BG Color', 'solar-services'),
	   'type'      => 'color'
	));

	// feature leftheading color
	$wp_customize->add_setting('solar_services_featureleftheading',array(
		'default' => 'Our Facility',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featureleftheading', array(
	   'settings' => 'solar_services_featureleftheading',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('Left Heading', 'solar-services'),
	   'type'      => 'text'
	));

	// feature leftheading color
	$wp_customize->add_setting('solar_services_featureleftheading_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featureleftheading_color', array(
	   'settings' => 'solar_services_featureleftheading_color',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('Left Heading Color', 'solar-services'),
	   'type'      => 'color'
	));

	// feature leftdescription color
	$wp_customize->add_setting('solar_services_featureleftdescription',array(
		'default' => 'The sun provides us with free energy, place solar panels on roof. solar cell, solar module manufacturing facilities are considerable. we must go above our customer expectations during interaction.','solar-services',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featureleftdescription', array(
	   'settings' => 'solar_services_featureleftdescription',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('Left Description', 'solar-services'),
	   'type'      => 'text'
	));

	// feature leftdescription color
	$wp_customize->add_setting('solar_services_featureleftdescription_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featureleftdescription_color', array(
	   'settings' => 'solar_services_featureleftdescription_color',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('Left Description Color', 'solar-services'),
	   'type'      => 'color'
	));

	// feature leftlist1 color
	$wp_customize->add_setting('solar_services_featureleftlist1',array(
		'default' => 'Best Energy Solution',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featureleftlist1', array(
	   'settings' => 'solar_services_featureleftlist1',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('Left List 1', 'solar-services'),
	   'type'      => 'text'
	));

	// feature leftlist2 color
	$wp_customize->add_setting('solar_services_featureleftlist2',array(
		'default' => 'End-To-End Services',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featureleftlist2', array(
	   'settings' => 'solar_services_featureleftlist2',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('Left List 2', 'solar-services'),
	   'type'      => 'text'
	));

	// feature leftlist3 color
	$wp_customize->add_setting('solar_services_featureleftlist3',array(
		'default' => 'Global Expertise',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featureleftlist3', array(
	   'settings' => 'solar_services_featureleftlist3',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('Left List 3', 'solar-services'),
	   'type'      => 'text'
	));

	// feature leftlist4 color
	$wp_customize->add_setting('solar_services_featureleftlist4',array(
		'default' => 'Certified Engineers',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featureleftlist4', array(
	   'settings' => 'solar_services_featureleftlist4',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('Left List 4', 'solar-services'),
	   'type'      => 'text'
	));

	// feature leftlist color
	$wp_customize->add_setting('solar_services_featureleftlist_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featureleftlist_color', array(
	   'settings' => 'solar_services_featureleftlist_color',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('Left List Color', 'solar-services'),
	   'type'      => 'color'
	));

	// feature leftbtntext color
	$wp_customize->add_setting('solar_services_featureleftbtntext',array(
		'default' => 'Our Service',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featureleftbtntext', array(
	   'settings' => 'solar_services_featureleftbtntext',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('Left Button Text', 'solar-services'),
	   'type'      => 'text'
	));

	// feature leftbtnlink color
	$wp_customize->add_setting('solar_services_featureleftbtnlink',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featureleftbtnlink', array(
	   'settings' => 'solar_services_featureleftbtnlink',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('Left Button Link', 'solar-services'),
	   'type'      => 'text'
	));

	// feature leftbtntxt color
	$wp_customize->add_setting('solar_services_featureleftbtntxt_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featureleftbtntxt_color', array(
	   'settings' => 'solar_services_featureleftbtntxt_color',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('Left Button Text Color', 'solar-services'),
	   'type'      => 'color'
	));

	// feature leftbtnbg color
	$wp_customize->add_setting('solar_services_featureleftbtnbg_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featureleftbtnbg_color', array(
	   'settings' => 'solar_services_featureleftbtnbg_color',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('Left Button BG Color', 'solar-services'),
	   'type'      => 'color'
	));

	// feature leftbtnborder color
	$wp_customize->add_setting('solar_services_featureleftbtnborder_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featureleftbtnborder_color', array(
	   'settings' => 'solar_services_featureleftbtnborder_color',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('Left Button Border Color', 'solar-services'),
	   'type'      => 'color'
	));

	// feature bg color
	$wp_customize->add_setting('solar_services_featurebg_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featurebg_color', array(
	   'settings' => 'solar_services_featurebg_color',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('BG Color', 'solar-services'),
	   'type'      => 'color'
	));

	// feature boxbg color
	$wp_customize->add_setting('solar_services_featureboxbg_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featureboxbg_color', array(
	   'settings' => 'solar_services_featureboxbg_color',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('Box BG Color', 'solar-services'),
	   'type'      => 'color'
	));

	// feature head color
	$wp_customize->add_setting('solar_services_featurehead_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_featurehead_color', array(
	   'settings' => 'solar_services_featurehead_color',
	   'section'   => 'solar_services_feature_section',
	   'label' => __('Heading Color', 'solar-services'),
	   'type'      => 'color'
	));

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

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

      // Google Fonts
      $wp_customize->add_section( 'solar_services_google_fonts_section', array(
      'title'       => __( 'Google Fonts', 'solar-services' ),
      '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( 'solar_services_headings_fonts', array(
       'sanitize_callback' => 'solar_services_sanitize_fonts',
    ));
    $wp_customize->add_control( 'solar_services_headings_fonts', array(
       'type' => 'select',
       'description' => __('Select your desired font for the headings.', 'solar-services'),
       'section' => 'solar_services_google_fonts_section',
       'choices' => $font_choices
    ));

    $wp_customize->add_setting( 'solar_services_body_fonts', array(
       'sanitize_callback' => 'solar_services_sanitize_fonts'
    ));
    $wp_customize->add_control( 'solar_services_body_fonts', array(
       'type' => 'select',
       'description' => __( 'Select your desired font for the body.', 'solar-services' ),
       'section' => 'solar_services_google_fonts_section',
       'choices' => $font_choices
    ));

	// blog Section
	$wp_customize->add_section('solar_services_below_slider_section', array(
		'title'	=> __('Manage Services Section','solar-services'),
		'description'	=> __('<p class="sec-title">Manage Blog Section</p> Select Pages from the dropdown for Blog.','solar-services'),
		'priority'	=> null,
		'panel' => 'solar_services_panel_area',
	));

	//Hide Section
	$wp_customize->add_setting('solar_services_service_hidepageboxes',array(
		'default' => true,
		'sanitize_callback' => 'solar_services_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_service_hidepageboxes', array(
	   'settings' => 'solar_services_service_hidepageboxes',
	   'section'   => 'solar_services_below_slider_section',
	   'label'     => __('Check To Enable This Section','solar-services'),
	   'type'      => 'checkbox'
	));

	$wp_customize->add_setting('solar_services_headingtext1',array(
		'default' => ' ',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headingtext1', array(
	   'settings' => 'solar_services_headingtext1',
	   'section'   => 'solar_services_below_slider_section',
	   'label' => __('Heading', 'solar-services'),
	   'type'      => 'text'
	));

	// blog heading color
	$wp_customize->add_setting('solar_services_blogheading_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_blogheading_color', array(
	   'settings' => 'solar_services_blogheading_color',
	   'section'   => 'solar_services_below_slider_section',
	   'label' => __('Heading Color', 'solar-services'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('solar_services_headingtext_para',array(
		'default' => ' ',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_headingtext_para', array(
	   'settings' => 'solar_services_headingtext_para',
	   'section'   => 'solar_services_below_slider_section',
	   'label' => __('Sub Heading', 'solar-services'),
	   'type'      => 'text'
	));

	// blog headingcontent color
	$wp_customize->add_setting('solar_services_blogheadingcontent_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_blogheadingcontent_color', array(
	   'settings' => 'solar_services_blogheadingcontent_color',
	   'section'   => 'solar_services_below_slider_section',
	   'label' => __('Sub Heading Color', 'solar-services'),
	   'type'      => 'color'
	));

	// Add a category dropdown Slider Coloumn
	$wp_customize->add_setting( 'solar_services_blog_cat', array(
		'default'	=> '0',
		'sanitize_callback'	=> 'absint'
	) );
	$wp_customize->add_control( new Solar_Services_Category_Dropdown_Custom_Control( $wp_customize, 'solar_services_blog_cat', array(
		'section' => 'solar_services_below_slider_section',
	   'label' => __('Select Category to display Services', 'solar-services'),
		'settings'   => 'solar_services_blog_cat',
	)));

	// no. of blog to show
	$wp_customize->add_setting( 'solar_services_blog_count', array(
	  	'capability' => 'edit_theme_options',
	  	'sanitize_callback' => 'solar_services_sanitize_number_absint',
	  	'default' => 3,
	) );
	$wp_customize->add_control( 'solar_services_blog_count', array(
	  	'settings' => 'solar_services_blog_count',
	  	'type' => 'number',
	  	'section' => 'solar_services_below_slider_section',
	  	'label' => __( 'Number Of blog To Show','solar-services'),
	) );

	// blog boxbg color
	$wp_customize->add_setting('solar_services_blogboxbg_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_blogboxbg_color', array(
	   'settings' => 'solar_services_blogboxbg_color',
	   'section'   => 'solar_services_below_slider_section',
	   'label' => __('Box BG Color', 'solar-services'),
	   'type'      => 'color'
	));

	// blog title color
	$wp_customize->add_setting('solar_services_blogtitle_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_blogtitle_color', array(
	   'settings' => 'solar_services_blogtitle_color',
	   'section'   => 'solar_services_below_slider_section',
	   'label' => __('Title Color', 'solar-services'),
	   'type'      => 'color'
	));

	// blog description color
	$wp_customize->add_setting('solar_services_blogdescription_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_blogdescription_color', array(
	   'settings' => 'solar_services_blogdescription_color',
	   'section'   => 'solar_services_below_slider_section',
	   'label' => __('Description Color', 'solar-services'),
	   'type'      => 'color'
	));

	// blog btn text color
	$wp_customize->add_setting('solar_services_blogebtntxt_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_blogebtntxt_color', array(
	   'settings' => 'solar_services_blogebtntxt_color',
	   'section'   => 'solar_services_below_slider_section',
	   'label' => __('Button Text Color', 'solar-services'),
	   'type'      => 'color'
	));

	// blog btn bg color
	$wp_customize->add_setting('solar_services_blogebtnbg_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_blogebtnbg_color', array(
	   'settings' => 'solar_services_blogebtnbg_color',
	   'section'   => 'solar_services_below_slider_section',
	   'label' => __('Button BG Color', 'solar-services'),
	   'type'      => 'color'
	));

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

	//Blog post
	$wp_customize->add_section('solar_services_blog_post_settings',array(
        'title' => __('Manage Post Section', 'solar-services'),
        'priority' => null,
        'panel' => 'solar_services_panel_area'
    ));

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

	$wp_customize->add_control(
		new Solar_Services_Image_Radio_Control(
			$wp_customize,
			'solar_services_blog_layout_option_setting',
			array(
				'label'   => __( 'Post Layouts', 'solar-services' ),
				'section' => 'solar_services_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('solar_services_metafields_date', array(
	    'default' => true,
	    'sanitize_callback' => 'solar_services_sanitize_checkbox',
	));
	$wp_customize->add_control('solar_services_metafields_date', array(
	    'settings' => 'solar_services_metafields_date', 
	    'section'   => 'solar_services_blog_post_settings',
	    'label'     => __('Check to Enable Date', 'solar-services'),
	    'type'      => 'checkbox',
	));

	$wp_customize->add_setting('solar_services_metafields_comments', array(
		'default' => true,
		'sanitize_callback' => 'solar_services_sanitize_checkbox',
	));	
	$wp_customize->add_control('solar_services_metafields_comments', array(
		'settings' => 'solar_services_metafields_comments',
		'section'  => 'solar_services_blog_post_settings',
		'label'    => __('Check to Enable Comments', 'solar-services'),
		'type'     => 'checkbox',
	));

	$wp_customize->add_setting('solar_services_metafields_author', array(
		'default' => true,
		'sanitize_callback' => 'solar_services_sanitize_checkbox',
	));
	$wp_customize->add_control('solar_services_metafields_author', array(
		'settings' => 'solar_services_metafields_author',
		'section'  => 'solar_services_blog_post_settings',
		'label'    => __('Check to Enable Author', 'solar-services'),
		'type'     => 'checkbox',
	));		

	$wp_customize->add_setting('solar_services_metafields_time', array(
		'default' => true,
		'sanitize_callback' => 'solar_services_sanitize_checkbox',
	));
	$wp_customize->add_control('solar_services_metafields_time', array(
		'settings' => 'solar_services_metafields_time',
		'section'  => 'solar_services_blog_post_settings',
		'label'    => __('Check to Enable Time', 'solar-services'),
		'type'     => 'checkbox',
	));	

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

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

	$wp_customize->add_setting('solar_services_blog_post_description_option',array(
    	'default'   => 'Excerpt Content', 
        'sanitize_callback' => 'solar_services_sanitize_choices'
	));
	$wp_customize->add_control('solar_services_blog_post_description_option',array(
        'type' => 'radio',
        'label' => __('Post Description Length','solar-services'),
        'section' => 'solar_services_blog_post_settings',
        'choices' => array(
            'No Content' => __('No Content','solar-services'),
            'Excerpt Content' => __('Excerpt Content','solar-services'),
            'Full Content' => __('Full Content','solar-services'),
        ),
	) );

	$wp_customize->add_setting('solar_services_blog_post_thumb',array(
        'sanitize_callback' => 'solar_services_sanitize_checkbox',
        'default'           => 1,
    ));
    $wp_customize->add_control('solar_services_blog_post_thumb',array(
        'type'        => 'checkbox',
        'label'       => esc_html__('Show / Hide Blog Post Thumbnail', 'solar-services'),
        'section'     => 'solar_services_blog_post_settings',
    ));

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

	//Single Post Settings
	$wp_customize->add_section('solar_services_single_post_settings',array(
		'title' => __('Manage Single Post Section', 'solar-services'),
		'priority' => null,
		'panel' => 'solar_services_panel_area'
	));

	$wp_customize->add_setting('solar_services_single_post_date',array(
		'default' => true,
		'sanitize_callback'	=> 'solar_services_sanitize_checkbox'
	));
	$wp_customize->add_control('solar_services_single_post_date',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Date ','solar-services'),
		'section' => 'solar_services_single_post_settings'
	));	

	$wp_customize->add_setting('solar_services_single_post_author',array(
		'default' => true,
		'sanitize_callback'	=> 'solar_services_sanitize_checkbox'
	));
	$wp_customize->add_control('solar_services_single_post_author',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Author','solar-services'),
		'section' => 'solar_services_single_post_settings'
	));

	$wp_customize->add_setting('solar_services_single_post_comment',array(
		'default' => true,
		'sanitize_callback'	=> 'solar_services_sanitize_checkbox'
	));
	$wp_customize->add_control('solar_services_single_post_comment',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Comments','solar-services'),
		'section' => 'solar_services_single_post_settings'
	));	

	$wp_customize->add_setting('solar_services_single_post_time',array(
		'default' => true,
		'sanitize_callback'	=> 'solar_services_sanitize_checkbox'
	));
	$wp_customize->add_control('solar_services_single_post_time',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Time','solar-services'),
		'section' => 'solar_services_single_post_settings'
	));	

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

	$wp_customize->add_setting('solar_services_sidebar_single_post_layout',array(
    	'default' => 'right',
    	 'sanitize_callback' => 'solar_services_sanitize_choices'
	));
	$wp_customize->add_control('solar_services_sidebar_single_post_layout',array(
   		'type' => 'radio',
    	'label'     => __('Single post sidebar layout', 'solar-services'),
     	'section' => 'solar_services_single_post_settings',
     	'choices' => array(
			'left' => __('Left','solar-services'),
			'right' => __('Right','solar-services'),
			'full' => __('No Sidebar','solar-services')
     ),
	));

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

	//Page Settings
	$wp_customize->add_section('solar_services_page_settings',array(
		'title' => __('Manage Page Section', 'solar-services'),
		'priority' => null,
		'panel' => 'solar_services_panel_area'
	));

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

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

	// 404 Page Settings
	$wp_customize->add_section('solar_services_page_not_found', array(
		'title'	=> __('Manage 404 Page Section','solar-services'),
		'priority'	=> null,
		'panel' => 'solar_services_panel_area',
	));

	$wp_customize->add_setting('solar_services_page_not_found_heading',array(
		'default'=> __('404 Not Found','solar-services'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('solar_services_page_not_found_heading',array(
		'label'	=> __('404 Heading','solar-services'),
		'section'=> 'solar_services_page_not_found',
		'type'=> 'text'
	));

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

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

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

	$wp_customize->add_setting( 'solar_services_page_not_found_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('solar_services_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(SOLAR_SERVICES_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'solar_services_page_not_found'
	));

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

	$wp_customize->add_setting('solar_services_animation_enabled',array(
		'default' => true,
		'sanitize_callback' => 'solar_services_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_animation_enabled', array(
	   'settings' => 'solar_services_animation_enabled',
	   'section'   => 'solar_services_animation',
	   'label'     => __('Check To Enable Animation','solar-services'),
	   'type'      => 'checkbox'
	));

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

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

	$wp_customize->add_setting('solar_services_footer_widget', array(
	    'default' => true,
	    'sanitize_callback' => 'solar_services_sanitize_checkbox',
	));
	$wp_customize->add_control('solar_services_footer_widget', array(
	    'settings' => 'solar_services_footer_widget', // Corrected setting name
	    'section'   => 'solar_services_footer',
	    'label'     => __('Check to Enable Footer Widget', 'solar-services'),
	    'type'      => 'checkbox',
	));

	$wp_customize->add_setting('solar_services_footer_bg_image',array(
        'default'   => '',
        'sanitize_callback' => 'esc_url_raw',
    ));
    $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'solar_services_footer_bg_image',array(
        'label' => __('Footer Background Image','solar-services'),
        'section' => 'solar_services_footer',
    )));

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

	$wp_customize->add_setting('solar_services_copyright_line',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control( 'solar_services_copyright_line', array(
	   'section' 	=> 'solar_services_footer',
	   'label'	 	=> __('Copyright Line','solar-services'),
	   'type'    	=> 'text',
	   'priority' 	=> null,
    ));

     $wp_customize->add_setting('solar_services_copyright_link',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
	));	
	$wp_customize->add_control( 'solar_services_copyright_link', array(
	   'section' 	=> 'solar_services_footer',
	   'label'	 	=> __('Copyright Link','solar-services'),
	   'type'    	=> 'text',
	   'priority' 	=> null,
    ));

	// footer bg color
	$wp_customize->add_setting('solar_services_footerbg_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_footerbg_color', array(
	   'settings' => 'solar_services_footerbg_color',
	   'section'   => 'solar_services_footer',
	   'label' => __('BG Color', 'solar-services'),
	   'type'      => 'color'
	));

	// footer coyprightbg color
	$wp_customize->add_setting('solar_services_footercoyprightbg_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_footercoyprightbg_color', array(
	   'settings' => 'solar_services_footercoyprightbg_color',
	   'section'   => 'solar_services_footer',
	   'label' => __('coypright BG Color', 'solar-services'),
	   'type'      => 'color'
	));


	// footer heading color
	$wp_customize->add_setting('solar_services_footerheading_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_footerheading_color', array(
	   'settings' => 'solar_services_footerheading_color',
	   'section'   => 'solar_services_footer',
	   'label' => __('Heading Color', 'solar-services'),
	   'type'      => 'color'
	));


	// footer list color
	$wp_customize->add_setting('solar_services_footerlist_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_footerlist_color', array(
	   'settings' => 'solar_services_footerlist_color',
	   'section'   => 'solar_services_footer',
	   'label' => __('List Color', 'solar-services'),
	   'type'      => 'color'
	));

	// footer listhover color
	$wp_customize->add_setting('solar_services_footerlisthover_color',array(
		'default' => '',
		'sanitize_callback' => 'solarservices_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_footerlisthover_color', array(
	   'settings' => 'solar_services_footerlisthover_color',
	   'section'   => 'solar_services_footer',
	   'label' => __('List Hover Color', 'solar-services'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('solar_services_scroll_hide', array(
        'default' => true,
        'sanitize_callback' => 'solar_services_sanitize_checkbox'
    ));
    $wp_customize->add_control( new WP_Customize_Control($wp_customize,'solar_services_scroll_hide',array(
        'label'          => __( 'Check To Show Scroll To Top', 'solar-services' ),
        'section'        => 'solar_services_footer',
        'settings'       => 'solar_services_scroll_hide',
        'type'           => 'checkbox',
    )));

    $wp_customize->add_setting('solar_services_scroll_position',array(
        'default' => 'Right',
        'sanitize_callback' => 'solar_services_sanitize_choices'
    ));
    $wp_customize->add_control('solar_services_scroll_position',array(
        'type' => 'radio',
        'section' => 'solar_services_footer',
        'label'	 	=> __('Scroll To Top Positions','solar-services'),
        'choices' => array(
            'Right' => __('Right','solar-services'),
            'Left' => __('Left','solar-services'),
            'Center' => __('Center','solar-services')
        ),
    ) );

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

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

	$wp_customize->add_setting('solar_services_footer_widget_areas',array(
		'default'           => 4,
		'sanitize_callback' => 'solar_services_sanitize_choices',
	));
	$wp_customize->add_control('solar_services_footer_widget_areas',array(
		'type'        => 'radio',
		'section' => 'solar_services_footer',
		'label'       => __('Footer widget area', 'solar-services'),
		'choices' => array(
		   '1'     => __('One', 'solar-services'),
		   '2'     => __('Two', 'solar-services'),
		   '3'     => __('Three', 'solar-services'),
		   '4'     => __('Four', 'solar-services')
		),
	));

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

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

	$wp_customize->add_setting('solar_services_footer_twitter_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_footer_twitter_link', array(
		'settings' => 'solar_services_footer_twitter_link',
		'section'   => 'solar_services_footer_social_icons',
		'label' => __('Twitter Link', 'solar-services'),
		'type'      => 'url'
	));

	$wp_customize->add_setting('solar_services_footer_instagram_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_footer_instagram_link', array(
		'settings' => 'solar_services_footer_instagram_link',
		'section'   => 'solar_services_footer_social_icons',
		'label' => __('Instagram Link', 'solar-services'),
		'type'      => 'url'
	));
	
	$wp_customize->add_setting('solar_services_footer_pinterest_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_footer_pinterest_link', array(
		'settings' => 'solar_services_footer_pinterest_link',
		'section'   => 'solar_services_footer_social_icons',
		'label' => __('Pinterest Link', 'solar-services'),
		'type'      => 'url'
	));

	$wp_customize->add_setting('solar_services_footer_facebook_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'solar_services_footer_facebook_link', array(
		'settings' => 'solar_services_footer_facebook_link',
		'section'   => 'solar_services_footer_social_icons',
		'label' => __('Facebook Link', 'solar-services'),
		'type'      => 'url'
	));

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

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

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