<?php
/**
 * Cloud Storage Services Theme Customizer
 *
 * @package Cloud Storage Services
 */

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

	function cloud_storage_services_sanitize_dropdown_pages( $page_id, $setting ) {
  		$page_id = absint( $page_id );
  		return ( 'publish' == get_post_status( $page_id ) ? $page_id : $setting->default );
	}

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

	wp_enqueue_style('cloud-storage-services-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('cloud_storage_services_logo_enable',array(
		'default' => true,
		'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
	));
	$wp_customize->add_control( 'cloud_storage_services_logo_enable', array(
		'settings' => 'cloud_storage_services_logo_enable',
		'section'   => 'title_tagline',
		'label'     => __('Enable Logo','cloud-storage-services'),
		'type'      => 'checkbox'
	));

	//Logo
    $wp_customize->add_setting('cloud_storage_services_logo_width', array(
        'default' => 100,
        'transport' => 'refresh',
        'sanitize_callback' => 'cloud_storage_services_sanitize_integer'
    ));
    $wp_customize->add_control(new Cloud_Storage_Services_Slider_Custom_Control($wp_customize, 'cloud_storage_services_logo_width', array(
    	'label'          => __( 'Logo Width', 'cloud-storage-services'),
        'section' => 'title_tagline',
        'settings' => 'cloud_storage_services_logo_width',
        'input_attrs' => array(
            'step' => 1,
            'min' => 0,
            'max' => 400,
        ),
    )));

	// color site title
	$wp_customize->add_setting('cloud_storage_services_sitetitle_color',array(
		'default' => '',
		'sanitize_callback' => 'cloud_storage_services_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));

	$wp_customize->add_control( 'cloud_storage_services_sitetitle_color', array(
	   'settings' => 'cloud_storage_services_sitetitle_color',
	   'section'   => 'title_tagline',
	   'label' => __('Site Title Color', 'cloud-storage-services'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('cloud_storage_services_title_enable',array(
		'default' => false,
		'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
	));
	$wp_customize->add_control( 'cloud_storage_services_title_enable', array(
	   'settings' => 'cloud_storage_services_title_enable',
	   'section'   => 'title_tagline',
	   'label'     => __('Enable Site Title','cloud-storage-services'),
	   'type'      => 'checkbox'
	));

	// color site tagline
	$wp_customize->add_setting('cloud_storage_services_sitetagline_color',array(
		'default' => '',
		'sanitize_callback' => 'cloud_storage_services_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_sitetagline_color', array(
	   'settings' => 'cloud_storage_services_sitetagline_color',
	   'section'   => 'title_tagline',
	   'label' => __('Site Tagline Color', 'cloud-storage-services'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('cloud_storage_services_tagline_enable',array(
		'default' => false,
		'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
	));
	$wp_customize->add_control( 'cloud_storage_services_tagline_enable', array(
	   'settings' => 'cloud_storage_services_tagline_enable',
	   'section'   => 'title_tagline',
	   'label'     => __('Enable Site Tagline','cloud-storage-services'),
	   'type'      => 'checkbox'
	));

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

	$wp_customize->add_setting('cloud_storage_services_shop_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'cloud_storage_services_sanitize_checkbox'
	 ));
	 $wp_customize->add_control('cloud_storage_services_shop_page_sidebar',array(
		'type' => 'checkbox',
		'label' => __(' Check To Enable Shop page sidebar','cloud-storage-services'),
		'section' => 'cloud_storage_services_woocommerce_page_settings',
	 ));

    // shop page sidebar alignment
    $wp_customize->add_setting('cloud_storage_services_shop_page_sidebar_position', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'cloud_storage_services_sanitize_choices',
	));
	$wp_customize->add_control('cloud_storage_services_shop_page_sidebar_position',array(
		'type'           => 'radio',
		'label'          => __('Shop Page Sidebar', 'cloud-storage-services'),
		'section'        => 'cloud_storage_services_woocommerce_page_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'cloud-storage-services'),
			'Right Sidebar' => __('Right Sidebar', 'cloud-storage-services'),
		),
	));	 

	$wp_customize->add_setting('cloud_storage_services_wooproducts_nav',array(
		'default' => 'Yes',
		'sanitize_callback'	=> 'cloud_storage_services_sanitize_choices'
	 ));
	 $wp_customize->add_control('cloud_storage_services_wooproducts_nav',array(
		'type' => 'select',
		'label' => __('Shop Page Products Navigation','cloud-storage-services'),
		'choices' => array(
			 'Yes' => __('Yes','cloud-storage-services'),
			 'No' => __('No','cloud-storage-services'),
		 ),
		'section' => 'cloud_storage_services_woocommerce_page_settings',
	 ));

	 $wp_customize->add_setting( 'cloud_storage_services_single_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'cloud_storage_services_sanitize_checkbox'
    ) );
    $wp_customize->add_control('cloud_storage_services_single_page_sidebar',array(
    	'type' => 'checkbox',
       	'label' => __('Check To Enable Single Product Page Sidebar','cloud-storage-services'),
		'section' => 'cloud_storage_services_woocommerce_page_settings'
    ));

	// single product page sidebar alignment
    $wp_customize->add_setting('cloud_storage_services_single_product_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'cloud_storage_services_sanitize_choices',
	));
	$wp_customize->add_control('cloud_storage_services_single_product_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Single product Page Sidebar', 'cloud-storage-services'),
		'section'        => 'cloud_storage_services_woocommerce_page_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'cloud-storage-services'),
			'Right Sidebar' => __('Right Sidebar', 'cloud-storage-services'),
		),
	));

	$wp_customize->add_setting('cloud_storage_services_related_product_enable',array(
		'default' => true,
		'sanitize_callback'	=> 'cloud_storage_services_sanitize_checkbox'
	));
	$wp_customize->add_control('cloud_storage_services_related_product_enable',array(
		'type' => 'checkbox',
		'label' => __('Check To Enable Related product','cloud-storage-services'),
		'section' => 'cloud_storage_services_woocommerce_page_settings',
	));

	$wp_customize->add_setting( 'cloud_storage_services_woo_product_img_border_radius', array(
        'default'              => '0',
        'transport'            => 'refresh',
        'sanitize_callback'    => 'cloud_storage_services_sanitize_integer'
    ) );
    $wp_customize->add_control(new Cloud_Storage_Services_Slider_Custom_Control( $wp_customize, 'cloud_storage_services_woo_product_img_border_radius',array(
		'label'	=> esc_html__('Woo Product Img Border Radius','cloud-storage-services'),
		'section'=> 'cloud_storage_services_woocommerce_page_settings',
		'settings'=>'cloud_storage_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('cloud_storage_services_products_per_row', array(
	    'default'   => '4',
	    'transport' => 'refresh',
	    'sanitize_callback' => 'cloud_storage_services_sanitize_integer'  
    ));

   	$wp_customize->add_control('cloud_storage_services_products_per_row', array(
	   'label'    => __('Products Per Row', 'cloud-storage-services'),
	   'section'  => 'cloud_storage_services_woocommerce_page_settings',
	   'settings' => 'cloud_storage_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('cloud_storage_services_products_per_page', array(
		'default'   => '8',
		'transport' => 'refresh',
		'sanitize_callback' => 'cloud_storage_services_sanitize_integer'
	));

	$wp_customize->add_control('cloud_storage_services_products_per_page', array(
		'label'    => __('Products Per Page', 'cloud-storage-services'),
		'section'  => 'cloud_storage_services_woocommerce_page_settings',
		'settings' => 'cloud_storage_services_products_per_page',
		'type'     => 'number',
		'input_attrs' => array(
			'min'  => 1,
			'step' => 1,
		),
	));

	//Theme Options
	$wp_customize->add_panel( 'cloud_storage_services_panel_area', array(
		'priority' => 10,
		'capability' => 'edit_theme_options',
		'title' => __( 'Theme Options Panel', 'cloud-storage-services' ),
	) );

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

	$wp_customize->add_setting('cloud_storage_services_preloader',array(
		'default' => false,
		'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
	));
	$wp_customize->add_control( 'cloud_storage_services_preloader', array(
	   'section'   => 'cloud_storage_services_site_layoutsec',
	   'label'	=> __('Check to Show preloader','cloud-storage-services'),
	   'type'      => 'checkbox'
 	));	

	$wp_customize->add_setting('cloud_storage_services_box_layout',array(
		'default' => false,
		'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
	));
	$wp_customize->add_control( 'cloud_storage_services_box_layout', array(
	   'section'   => 'cloud_storage_services_site_layoutsec',
	   'label'	=> __('Check to Show Box Layout','cloud-storage-services'),
	   'type'      => 'checkbox'
 	));

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

	//Global Color
	$wp_customize->add_section('cloud_storage_services_global_color', array(
		'title'    => __('Manage Global Color Section', 'cloud-storage-services'),
		'panel'    => 'cloud_storage_services_panel_area',
	));

	$wp_customize->add_setting('cloud_storage_services_first_color', array(
		'default'           => '#F84D89',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'cloud_storage_services_first_color', array(
		'label'    => __('Theme Color One', 'cloud-storage-services'),
		'section'  => 'cloud_storage_services_global_color',
		'settings' => 'cloud_storage_services_first_color',
	)));

	$wp_customize->add_setting('cloud_storage_services_second_color', array(
		'default'           => '#592C6E',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'cloud_storage_services_second_color', array(
		'label'    => __('Theme Color Two', 'cloud-storage-services'),
		'section'  => 'cloud_storage_services_global_color',
		'settings' => 'cloud_storage_services_second_color',
	)));

	$wp_customize->add_setting( 'cloud_storage_services_global_color_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('cloud_storage_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(CLOUD_STORAGE_SERVICES_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'cloud_storage_services_global_color'
	));

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

	$wp_customize->add_setting('cloud_storage_services_header_btn_url',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_header_btn_url', array(
	   'settings' => 'cloud_storage_services_header_btn_url',
	   'section'   => 'cloud_storage_services_topbar_section',
	   'label' => __('Add Button URL', 'cloud-storage-services'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('cloud_storage_services_stickyheader',array(
		'default' => false,
		'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
	));
	$wp_customize->add_control( 'cloud_storage_services_stickyheader', array(
	   'section'   => 'cloud_storage_services_topbar_section',
	   'label'	=> __('Check To Show Sticky Header','cloud-storage-services'),
	   'type'      => 'checkbox'
 	));

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

    $wp_customize->add_control( 'cloud_storage_services_menu_text_transform', array(
        'label'    => __( 'Menu Text Transform', 'cloud-storage-services' ),
        'section'  => 'cloud_storage_services_topbar_section',
        'type'     => 'select',
        'choices'  => array(
			'None'       => __( 'None', 'cloud-storage-services' ),
            'Capitalize' => __( 'Capitalize', 'cloud-storage-services' ),
            'Uppercase'  => __( 'Uppercase', 'cloud-storage-services' ),
            'Lowercase'  => __( 'Lowercase', 'cloud-storage-services' ),
        ),
    ));

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

	// Banner Section
	$wp_customize->add_section('cloud_storage_services_banner_section',array(
	    'title' => __('Manage Banner Section','cloud-storage-services'),
	    'priority'  => null,
	    'description'	=> __('<p class="sec-title">Manage Banner Section</p>','cloud-storage-services'),
	    'panel' => 'cloud_storage_services_panel_area',
	));	

	$wp_customize->add_setting('cloud_storage_services_banner',array(
		'default' => false,
		'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_banner', array(
	   'settings' => 'cloud_storage_services_banner',
	   'section'   => 'cloud_storage_services_banner_section',
	   'label'     => __('Check To Enable This Section','cloud-storage-services'),
	   'type'      => 'checkbox'
	));

	$wp_customize->add_setting('cloud_storage_services_banner_small_title', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('cloud_storage_services_banner_small_title', array(
	    'settings' => 'cloud_storage_services_banner_small_title',
	    'section'  => 'cloud_storage_services_banner_section',
	    'label'    => __('Add Sub-title', 'cloud-storage-services'),
	    'type'     => 'text',
	));

	$wp_customize->add_setting('cloud_storage_services_banner_main_title', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('cloud_storage_services_banner_main_title', array(
	    'settings' => 'cloud_storage_services_banner_main_title',
	    'section'  => 'cloud_storage_services_banner_section',
	    'label'    => __('Add Title', 'cloud-storage-services'),
	    'type'     => 'text',
	));

	$wp_customize->add_setting('cloud_storage_services_banner_left_btn_text',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_banner_left_btn_text', array(
	   'settings' => 'cloud_storage_services_banner_left_btn_text',
	   'section'   => 'cloud_storage_services_banner_section',
	   'label' => __('Add Button Text', 'cloud-storage-services'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('cloud_storage_services_banner_left_btn_url',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_banner_left_btn_url', array(
	   'settings' => 'cloud_storage_services_banner_left_btn_url',
	   'section'   => 'cloud_storage_services_banner_section',
	   'label' => __('Add Button URL', 'cloud-storage-services'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('cloud_storage_services_banner_right_btn_text',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_banner_right_btn_text', array(
	   'settings' => 'cloud_storage_services_banner_right_btn_text',
	   'section'   => 'cloud_storage_services_banner_section',
	   'label' => __('Add Button Text', 'cloud-storage-services'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('cloud_storage_services_banner_right_btn_url',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_banner_right_btn_url', array(
	   'settings' => 'cloud_storage_services_banner_right_btn_url',
	   'section'   => 'cloud_storage_services_banner_section',
	   'label' => __('Add Button URL', 'cloud-storage-services'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('cloud_storage_services_video_button_url',array(
        'default'=> '',
        'sanitize_callback' => 'esc_url_raw'
    ));
    $wp_customize->add_control('cloud_storage_services_video_button_url',array(
        'label' => esc_html__('Add Video Link','cloud-storage-services'),
        'section'=> 'cloud_storage_services_banner_section',
        'type'=> 'url'
    ));

    $wp_customize->add_setting('cloud_storage_services_banner_upload_box_title', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('cloud_storage_services_banner_upload_box_title', array(
	    'settings' => 'cloud_storage_services_banner_upload_box_title',
	    'section'  => 'cloud_storage_services_banner_section',
	    'label'    => __('Add Title', 'cloud-storage-services'),
	    'type'     => 'text',
	));

	$wp_customize->add_setting('cloud_storage_services_banner_upload_other_title', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('cloud_storage_services_banner_upload_other_title', array(
	    'settings' => 'cloud_storage_services_banner_upload_other_title',
	    'section'  => 'cloud_storage_services_banner_section',
	    'label'    => __('Add Text', 'cloud-storage-services'),
	    'type'     => 'text',
	));

	$wp_customize->add_setting('cloud_storage_services_banner_other_buyers',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_banner_other_buyers', array(
	   'settings' => 'cloud_storage_services_banner_other_buyers',
	   'section'   => 'cloud_storage_services_banner_section',
	   'label' => __('Add Other Percentage Count', 'cloud-storage-services'),
	   'type'      => 'text',
	   'description'	=> __('Ex. 50 (only number, without %)','cloud-storage-services')
	));

	$wp_customize->add_setting('cloud_storage_services_banner_upload_business_title', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('cloud_storage_services_banner_upload_business_title', array(
	    'settings' => 'cloud_storage_services_banner_upload_business_title',
	    'section'  => 'cloud_storage_services_banner_section',
	    'label'    => __('Add Text', 'cloud-storage-services'),
	    'type'     => 'text',
	));

	$wp_customize->add_setting('cloud_storage_services_banner_business_buyers',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_banner_business_buyers', array(
	   'settings' => 'cloud_storage_services_banner_business_buyers',
	   'section'   => 'cloud_storage_services_banner_section',
	   'label' => __('Add Business Percentage Count', 'cloud-storage-services'),
	   'type'      => 'text',
	   'description'	=> __('Ex. 50 (only number, without %)','cloud-storage-services')
	));

	$wp_customize->add_setting('cloud_storage_services_banner_upload_female_title', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('cloud_storage_services_banner_upload_female_title', array(
	    'settings' => 'cloud_storage_services_banner_upload_female_title',
	    'section'  => 'cloud_storage_services_banner_section',
	    'label'    => __('Add Text', 'cloud-storage-services'),
	    'type'     => 'text',
	));

	$wp_customize->add_setting('cloud_storage_services_banner_female_buyers',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_banner_female_buyers', array(
	   'settings' => 'cloud_storage_services_banner_female_buyers',
	   'section'   => 'cloud_storage_services_banner_section',
	   'label' => __('Add Female Percentage Count', 'cloud-storage-services'),
	   'type'      => 'text',
	   'description'	=> __('Ex. 50 (only number, without %)','cloud-storage-services')
	));

	$wp_customize->add_setting('cloud_storage_services_banner_upload_male_title', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('cloud_storage_services_banner_upload_male_title', array(
	    'settings' => 'cloud_storage_services_banner_upload_male_title',
	    'section'  => 'cloud_storage_services_banner_section',
	    'label'    => __('Add Text', 'cloud-storage-services'),
	    'type'     => 'text',
	));

	$wp_customize->add_setting('cloud_storage_services_banner_male_buyers',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_banner_male_buyers', array(
	   'settings' => 'cloud_storage_services_banner_male_buyers',
	   'section'   => 'cloud_storage_services_banner_section',
	   'label' => __('Add Male Percentage Count', 'cloud-storage-services'),
	   'type'      => 'text',
	   'description'	=> __('Ex. 50 (only number, without %)','cloud-storage-services')
	));

	$wp_customize->add_setting('cloud_storage_services_banner_review_count', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('cloud_storage_services_banner_review_count', array(
	    'settings' => 'cloud_storage_services_banner_review_count',
	    'section'  => 'cloud_storage_services_banner_section',
	    'label'    => __('Add Review', 'cloud-storage-services'),
	    'type'     => 'text',
	));

	$wp_customize->add_setting('cloud_storage_services_banner_review_text', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('cloud_storage_services_banner_review_text', array(
	    'settings' => 'cloud_storage_services_banner_review_text',
	    'section'  => 'cloud_storage_services_banner_section',
	    'label'    => __('Add Review Text', 'cloud-storage-services'),
	    'type'     => 'text',
	));
	
	$wp_customize->add_setting('cloud_storage_services_banner_storage_title', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('cloud_storage_services_banner_storage_title', array(
	    'settings' => 'cloud_storage_services_banner_storage_title',
	    'section'  => 'cloud_storage_services_banner_section',
	    'label'    => __('Add Title', 'cloud-storage-services'),
	    'type'     => 'text',
	));

	$wp_customize->add_setting('cloud_storage_services_banner_storage_file_title', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('cloud_storage_services_banner_storage_file_title', array(
	    'settings' => 'cloud_storage_services_banner_storage_file_title',
	    'section'  => 'cloud_storage_services_banner_section',
	    'label'    => __('Add Text', 'cloud-storage-services'),
	    'type'     => 'text',
	));
	
	$wp_customize->add_setting('cloud_storage_services_banner_storage_files',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_banner_storage_files', array(
	   'settings' => 'cloud_storage_services_banner_storage_files',
	   'section'   => 'cloud_storage_services_banner_section',
	   'label' => __('Add Storage Percentage Count', 'cloud-storage-services'),
	   'type'      => 'text',
	   'description'	=> __('Ex. 50 (only number, without %)','cloud-storage-services')
	));

	$wp_customize->add_setting('cloud_storage_services_banner_video_title', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('cloud_storage_services_banner_video_title', array(
	    'settings' => 'cloud_storage_services_banner_video_title',
	    'section'  => 'cloud_storage_services_banner_section',
	    'label'    => __('Add Text', 'cloud-storage-services'),
	    'type'     => 'text',
	));

	$wp_customize->add_setting('cloud_storage_services_banner_video_files',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_banner_video_files', array(
	   'settings' => 'cloud_storage_services_banner_video_files',
	   'section'   => 'cloud_storage_services_banner_section',
	   'label' => __('Add Video Percentage Count', 'cloud-storage-services'),
	   'type'      => 'text',
	   'description'	=> __('Ex. 50 (only number, without %)','cloud-storage-services')
	));

	$wp_customize->add_setting('cloud_storage_services_banner_images_title', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('cloud_storage_services_banner_images_title', array(
	    'settings' => 'cloud_storage_services_banner_images_title',
	    'section'  => 'cloud_storage_services_banner_section',
	    'label'    => __('Add Text', 'cloud-storage-services'),
	    'type'     => 'text',
	));

	$wp_customize->add_setting('cloud_storage_services_banner_image_files',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_banner_image_files', array(
	   'settings' => 'cloud_storage_services_banner_image_files',
	   'section'   => 'cloud_storage_services_banner_section',
	   'label' => __('Add Images Percentage Count', 'cloud-storage-services'),
	   'type'      => 'text',
	   'description'	=> __('Ex. 50 (only number, without %)','cloud-storage-services')
	));
	
	$wp_customize->add_setting('cloud_storage_services_banner_graph_img',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'cloud_storage_services_banner_graph_img',array(
	    'label' => __('Select Image for Graph','cloud-storage-services'),
	    'description'	=> __('Use the given image dimension (300px × 300px).','cloud-storage-services'),
	    'section' => 'cloud_storage_services_banner_section'
	)));

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

	// Team Section
	$wp_customize->add_section('cloud_storage_services_team_section', array(
	    'title'       => __('Manage Team Section', 'cloud-storage-services'),
	    'description' => __('<p class="sec-title">Manage Team Section</p>', 'cloud-storage-services'),
	    'priority'    => null,
	    'panel'       => 'cloud_storage_services_panel_area',
	));

	$wp_customize->add_setting('cloud_storage_services_disabled_team_section', array(
	    'default'           => false,
	    'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('cloud_storage_services_disabled_team_section', array(
	    'settings' => 'cloud_storage_services_disabled_team_section',
	    'section'  => 'cloud_storage_services_team_section',
	    'label'    => __('Check To Enable Section', 'cloud-storage-services'),
	    'type'     => 'checkbox',
	));

	$wp_customize->add_setting('cloud_storage_services_team_text', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('cloud_storage_services_team_text', array(
	    'settings' => 'cloud_storage_services_team_text',
	    'section'  => 'cloud_storage_services_team_section',
	    'label'    => __('Add Section Sub-heading', 'cloud-storage-services'),
	    'type'     => 'text',
	));

	$wp_customize->add_setting('cloud_storage_services_team_title', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('cloud_storage_services_team_title', array(
	    'settings' => 'cloud_storage_services_team_title',
	    'section'  => 'cloud_storage_services_team_section',
	    'label'    => __('Add Section Title', 'cloud-storage-services'),
	    'type'     => 'text',
	));

	$wp_customize->add_setting('cloud_storage_services_team_desc', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('cloud_storage_services_team_desc', array(
	    'settings' => 'cloud_storage_services_team_desc',
	    'section'  => 'cloud_storage_services_team_section',
	    'label'    => __('Add Section Text', 'cloud-storage-services'),
	    'type'     => 'text',
	));

	for ($cloud_storage_services_i=0; $cloud_storage_services_i < 6; $cloud_storage_services_i++) {
		$wp_customize->add_setting('cloud_storage_services_team_member_img'.$cloud_storage_services_i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'esc_url_raw',
		));
		$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'cloud_storage_services_team_member_img'.$cloud_storage_services_i,array(
		    'label' => __('Select Image','cloud-storage-services'),
		    'description'	=> __('Use the given image dimension (360px × 310px).','cloud-storage-services'),
		    'section' => 'cloud_storage_services_team_section'
		)));

		$wp_customize->add_setting('cloud_storage_services_team_member_name'.$cloud_storage_services_i, array(
		    'default'           => '',
		    'sanitize_callback' => 'sanitize_text_field',
		    'capability'        => 'edit_theme_options',
		));
		$wp_customize->add_control('cloud_storage_services_team_member_name'.$cloud_storage_services_i, array(
		    'settings' => 'cloud_storage_services_team_member_name'.$cloud_storage_services_i,
		    'section'  => 'cloud_storage_services_team_section',
		    'label'    => __('Add Team Member Name', 'cloud-storage-services'),
		    'type'     => 'text',
		));

		$wp_customize->add_setting('cloud_storage_services_team_member_designation'.$cloud_storage_services_i, array(
		    'default'           => '',
		    'sanitize_callback' => 'sanitize_text_field',
		    'capability'        => 'edit_theme_options',
		));
		$wp_customize->add_control('cloud_storage_services_team_member_designation'.$cloud_storage_services_i, array(
		    'settings' => 'cloud_storage_services_team_member_designation'.$cloud_storage_services_i,
		    'section'  => 'cloud_storage_services_team_section',
		    'label'    => __('Add Designation', 'cloud-storage-services'),
		    'type'     => 'text',
		));

		$wp_customize->add_setting('cloud_storage_services_disabled_team_social_icon'.$cloud_storage_services_i, array(
		    'default'           => false,
		    'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
		    'capability'        => 'edit_theme_options',
		));
		$wp_customize->add_control('cloud_storage_services_disabled_team_social_icon'.$cloud_storage_services_i, array(
		    'settings' => 'cloud_storage_services_disabled_team_social_icon'.$cloud_storage_services_i,
		    'section'  => 'cloud_storage_services_team_section',
		    'label'    => __('Check To Enable Social Icons', 'cloud-storage-services'),
		    'type'     => 'checkbox',
		));

		$wp_customize->add_setting('cloud_storage_services_facebook_url'.$cloud_storage_services_i,array(
			'default' => '',
			'sanitize_callback' => 'esc_url_raw',
			'capability' => 'edit_theme_options',
		));
		$wp_customize->add_control( 'cloud_storage_services_facebook_url'.$cloud_storage_services_i, array(
		   'settings' => 'cloud_storage_services_facebook_url'.$cloud_storage_services_i,
		   'section'   => 'cloud_storage_services_team_section',
		   'label' => __('Add Facebook URL', 'cloud-storage-services'),
		   'type'      => 'url'
		));

		$wp_customize->add_setting('cloud_storage_services_twitter_url'.$cloud_storage_services_i,array(
			'default' => '',
			'sanitize_callback' => 'esc_url_raw',
			'capability' => 'edit_theme_options',
		));
		$wp_customize->add_control( 'cloud_storage_services_twitter_url'.$cloud_storage_services_i, array(
		   'settings' => 'cloud_storage_services_twitter_url'.$cloud_storage_services_i,
		   'section'   => 'cloud_storage_services_team_section',
		   'label' => __('Add Twitter URL', 'cloud-storage-services'),
		   'type'      => 'url'
		));

		$wp_customize->add_setting('cloud_storage_services_youtube_url'.$cloud_storage_services_i,array(
			'default' => '',
			'sanitize_callback' => 'esc_url_raw',
			'capability' => 'edit_theme_options',
		));
		$wp_customize->add_control( 'cloud_storage_services_youtube_url'.$cloud_storage_services_i, array(
		   'settings' => 'cloud_storage_services_youtube_url'.$cloud_storage_services_i,
		   'section'   => 'cloud_storage_services_team_section',
		   'label' => __('Add Youtube URL', 'cloud-storage-services'),
		   'type'      => 'url'
		));

		$wp_customize->add_setting('cloud_storage_services_instagram_url'.$cloud_storage_services_i,array(
			'default' => '',
			'sanitize_callback' => 'esc_url_raw',
			'capability' => 'edit_theme_options',
		));
		$wp_customize->add_control( 'cloud_storage_services_instagram_url'.$cloud_storage_services_i, array(
		   'settings' => 'cloud_storage_services_instagram_url'.$cloud_storage_services_i,
		   'section'   => 'cloud_storage_services_team_section',
		   'label' => __('Add Instagram URL', 'cloud-storage-services'),
		   'type'      => 'url'
		));
	}

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

	//Blog post
	$wp_customize->add_section('cloud_storage_services_blog_post_settings',array(
        'title' => __('Manage Post Section', 'cloud-storage-services'),
        'priority' => null,
        'panel' => 'cloud_storage_services_panel_area'
    ) );

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

	$wp_customize->add_control(
		new Cloud_Storage_Services_Image_Radio_Control(
			$wp_customize,
			'cloud_storage_services_blog_layout_option_setting',
			array(
				'label'   => __( 'Post Layouts', 'cloud-storage-services' ),
				'section' => 'cloud_storage_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('cloud_storage_services_metafields_date', array(
	    'default' => true,
	    'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
	));
	$wp_customize->add_control('cloud_storage_services_metafields_date', array(
	    'settings' => 'cloud_storage_services_metafields_date', 
	    'section'   => 'cloud_storage_services_blog_post_settings',
	    'label'     => __('Check to Enable Date', 'cloud-storage-services'),
	    'type'      => 'checkbox',
	));

	$wp_customize->add_setting('cloud_storage_services_metafields_comments', array(
		'default' => true,
		'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
	));	
	$wp_customize->add_control('cloud_storage_services_metafields_comments', array(
		'settings' => 'cloud_storage_services_metafields_comments',
		'section'  => 'cloud_storage_services_blog_post_settings',
		'label'    => __('Check to Enable Comments', 'cloud-storage-services'),
		'type'     => 'checkbox',
	));

	$wp_customize->add_setting('cloud_storage_services_metafields_author', array(
		'default' => true,
		'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
	));
	$wp_customize->add_control('cloud_storage_services_metafields_author', array(
		'settings' => 'cloud_storage_services_metafields_author',
		'section'  => 'cloud_storage_services_blog_post_settings',
		'label'    => __('Check to Enable Author', 'cloud-storage-services'),
		'type'     => 'checkbox',
	));		

	$wp_customize->add_setting('cloud_storage_services_metafields_time', array(
		'default' => true,
		'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
	));
	$wp_customize->add_control('cloud_storage_services_metafields_time', array(
		'settings' => 'cloud_storage_services_metafields_time',
		'section'  => 'cloud_storage_services_blog_post_settings',
		'label'    => __('Check to Enable Time', 'cloud-storage-services'),
		'type'     => 'checkbox',
	));	

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

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

	$wp_customize->add_setting('cloud_storage_services_blog_post_description_option',array(
    	'default'   => 'Excerpt Content', 
        'sanitize_callback' => 'cloud_storage_services_sanitize_choices'
	));
	$wp_customize->add_control('cloud_storage_services_blog_post_description_option',array(
        'type' => 'radio',
        'label' => __('Post Description Length','cloud-storage-services'),
        'section' => 'cloud_storage_services_blog_post_settings',
        'choices' => array(
            'No Content' => __('No Content','cloud-storage-services'),
            'Excerpt Content' => __('Excerpt Content','cloud-storage-services'),
            'Full Content' => __('Full Content','cloud-storage-services'),
        ),
	) );

	$wp_customize->add_setting('cloud_storage_services_blog_post_thumb',array(
        'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
        'default'           => 1,
    ));
    $wp_customize->add_control('cloud_storage_services_blog_post_thumb',array(
        'type'        => 'checkbox',
        'label'       => esc_html__('Show / Hide Blog Post Thumbnail', 'cloud-storage-services'),
        'section'     => 'cloud_storage_services_blog_post_settings',
    ));

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

	//Single Post Settings
	$wp_customize->add_section('cloud_storage_services_single_post_settings',array(
		'title' => __('Manage Single Post Section', 'cloud-storage-services'),
		'priority' => null,
		'panel' => 'cloud_storage_services_panel_area'
	));

	$wp_customize->add_setting('cloud_storage_services_single_post_date',array(
		'default' => true,
		'sanitize_callback'	=> 'cloud_storage_services_sanitize_checkbox'
	));
	$wp_customize->add_control('cloud_storage_services_single_post_date',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Date ','cloud-storage-services'),
		'section' => 'cloud_storage_services_single_post_settings'
	));	

	$wp_customize->add_setting('cloud_storage_services_single_post_author',array(
		'default' => true,
		'sanitize_callback'	=> 'cloud_storage_services_sanitize_checkbox'
	));
	$wp_customize->add_control('cloud_storage_services_single_post_author',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Author','cloud-storage-services'),
		'section' => 'cloud_storage_services_single_post_settings'
	));

	$wp_customize->add_setting('cloud_storage_services_single_post_comment',array(
		'default' => true,
		'sanitize_callback'	=> 'cloud_storage_services_sanitize_checkbox'
	));
	$wp_customize->add_control('cloud_storage_services_single_post_comment',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Comments','cloud-storage-services'),
		'section' => 'cloud_storage_services_single_post_settings'
	));	

	$wp_customize->add_setting('cloud_storage_services_single_post_time',array(
		'default' => true,
		'sanitize_callback'	=> 'cloud_storage_services_sanitize_checkbox'
	));
	$wp_customize->add_control('cloud_storage_services_single_post_time',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Time','cloud-storage-services'),
		'section' => 'cloud_storage_services_single_post_settings'
	));	

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

	$wp_customize->add_setting('cloud_storage_services_sidebar_single_post_layout',array(
    	'default' => 'right',
    	 'sanitize_callback' => 'cloud_storage_services_sanitize_choices'
	));
	$wp_customize->add_control('cloud_storage_services_sidebar_single_post_layout',array(
   		'type' => 'radio',
    	'label'     => __('Single post sidebar layout', 'cloud-storage-services'),
     	'section' => 'cloud_storage_services_single_post_settings',
     	'choices' => array(
			'full' => __('Full','cloud-storage-services'),
			'left' => __('Left','cloud-storage-services'),
			'right' => __('Right','cloud-storage-services'),
     ),
	));

	$wp_customize->add_setting( 'cloud_storage_services_single_post_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('cloud_storage_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(CLOUD_STORAGE_SERVICES_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'cloud_storage_services_single_post_settings'
	));

	//Page Settings
	$wp_customize->add_section('cloud_storage_services_page_settings',array(
		'title' => __('Manage Page Section', 'cloud-storage-services'),
		'priority' => null,
		'panel' => 'cloud_storage_services_panel_area'
	));

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

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

	// 404 Page Settings
	$wp_customize->add_section('cloud_storage_services_page_not_found', array(
		'title'	=> __('Manage 404 Page Section','cloud-storage-services'),
		'priority'	=> null,
		'panel' => 'cloud_storage_services_panel_area',
	));
	
	$wp_customize->add_setting('cloud_storage_services_page_not_found_heading',array(
		'default'=> __('404 Not Found','cloud-storage-services'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('cloud_storage_services_page_not_found_heading',array(
		'label'	=> __('404 Heading','cloud-storage-services'),
		'section'=> 'cloud_storage_services_page_not_found',
		'type'=> 'text'
	));

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

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

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

	$wp_customize->add_setting( 'cloud_storage_services_page_not_found_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('cloud_storage_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(CLOUD_STORAGE_SERVICES_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'cloud_storage_services_page_not_found'
	));

	// No Results Page Settings
	$wp_customize->add_section('cloud_storage_services_no_results_found', array(
		'title'	=> __('Manage No Results Page Section','cloud-storage-services'),
		'priority'	=> null,
		'panel' => 'cloud_storage_services_panel_area',
	));
	
	$wp_customize->add_setting('cloud_storage_services_page_nothing_found_heading',array(
		'default'=> __('Nothing Found','cloud-storage-services'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('cloud_storage_services_page_nothing_found_heading',array(
		'label'	=> __('Add Title','cloud-storage-services'),
		'section'=> 'cloud_storage_services_no_results_found',
		'type'=> 'text'
	));

	$wp_customize->add_setting('cloud_storage_services_nothing_found_content',array(
		'default'=> 'Sorry, but nothing matched your search terms. Please try again with some different keywords.',
		'sanitize_callback'	=> 'sanitize_text_field'
	));

	$wp_customize->add_control('cloud_storage_services_nothing_found_content',array(
		'label'	=> __('Add Text','cloud-storage-services'),
		'section'=> 'cloud_storage_services_no_results_found',
		'type'=> 'text'
	));

	$wp_customize->add_setting('cloud_storage_services_nothing_found_search',array(
		'default' => true,
		'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_nothing_found_search', array(
	   'settings' => 'cloud_storage_services_nothing_found_search',
	   'section'   => 'cloud_storage_services_no_results_found',
	   'label'     => __('Check To Enable Search','cloud-storage-services'),
	   'type'      => 'checkbox'
	));

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

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

	$wp_customize->add_setting('cloud_storage_services_animation_enabled',array(
		'default' => true,
		'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_animation_enabled', array(
	   'settings' => 'cloud_storage_services_animation_enabled',
	   'section'   => 'cloud_storage_services_animation',
	   'label'     => __('Check To Enable Animation','cloud-storage-services'),
	   'type'      => 'checkbox'
	));

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

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

	$wp_customize->add_setting('cloud_storage_services_footer_widget', array(
	    'default' => true,
	    'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
	));
	$wp_customize->add_control('cloud_storage_services_footer_widget', array(
	    'settings' => 'cloud_storage_services_footer_widget',
	    'section'   => 'cloud_storage_services_footer',
	    'label'     => __('Check to Enable Footer Widget', 'cloud-storage-services'),
	    'type'      => 'checkbox',
	));

	//  footer bg color
	$wp_customize->add_setting('cloud_storage_services_footerbg_color',array(
		'default' => '',
		'sanitize_callback' => 'cloud_storage_services_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_footerbg_color', array(
		'settings' => 'cloud_storage_services_footerbg_color',
		'section'   => 'cloud_storage_services_footer',
		'label' => __('Footer Background Color', 'cloud-storage-services'),
		'type'      => 'color'
	));

	$wp_customize->add_setting('cloud_storage_services_footer_bg_image',array(
        'default'   => '',
        'sanitize_callback' => 'esc_url_raw',
    ));
    $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'cloud_storage_services_footer_bg_image',array(
        'label' => __('Footer Background Image','cloud-storage-services'),
        'section' => 'cloud_storage_services_footer',
    )));

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

	$wp_customize->add_setting('cloud_storage_services_footer_widget_areas',array(
		'default'           => 4,
		'sanitize_callback' => 'cloud_storage_services_sanitize_choices',
	));
	$wp_customize->add_control('cloud_storage_services_footer_widget_areas',array(
		'type'        => 'radio',
		'section' => 'cloud_storage_services_footer',
		'label'       => __('Footer widget area', 'cloud-storage-services'),
		'choices' => array(
		   '1'     => __('One', 'cloud-storage-services'),
		   '2'     => __('Two', 'cloud-storage-services'),
		   '3'     => __('Three', 'cloud-storage-services'),
		   '4'     => __('Four', 'cloud-storage-services')
		),
	));

	$wp_customize->add_setting('cloud_storage_services_copyright_line',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control( 'cloud_storage_services_copyright_line', array(
	   'section' 	=> 'cloud_storage_services_footer',
	   'label'	 	=> __('Copyright Line','cloud-storage-services'),
	   'type'    	=> 'text',
	   'priority' 	=> null,
    ));

	$wp_customize->add_setting('cloud_storage_services_copyright_link',array(
    	'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control( 'cloud_storage_services_copyright_link', array(
	   'section' 	=> 'cloud_storage_services_footer',
	   'label'	 	=> __('Copyright Link','cloud-storage-services'),
	   'type'    	=> 'text',
	   'priority' 	=> null,
    ));

	//  footer title color
	$wp_customize->add_setting('cloud_storage_services_footertitle_color',array(
		'default' => '',
		'sanitize_callback' => 'cloud_storage_services_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_footertitle_color', array(
	   'settings' => 'cloud_storage_services_footertitle_color',
	   'section'   => 'cloud_storage_services_footer',
	   'label' => __('Title Color', 'cloud-storage-services'),
	   'type'      => 'color'
	));

	//  footer list color
	$wp_customize->add_setting('cloud_storage_services_footerlist_color',array(
		'default' => '',
		'sanitize_callback' => 'cloud_storage_services_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_footerlist_color', array(
	   'settings' => 'cloud_storage_services_footerlist_color',
	   'section'   => 'cloud_storage_services_footer',
	   'label' => __('List Color', 'cloud-storage-services'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('cloud_storage_services_scroll_hide', array(
        'default' => true,
        'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox'
    ));
    $wp_customize->add_control( new WP_Customize_Control($wp_customize,'cloud_storage_services_scroll_hide',array(
        'label'          => __( 'Check To Show Scroll To Top', 'cloud-storage-services' ),
        'section'        => 'cloud_storage_services_footer',
        'settings'       => 'cloud_storage_services_scroll_hide',
        'type'           => 'checkbox',
    )));

	$wp_customize->add_setting('cloud_storage_services_scroll_position',array(
        'default' => 'Right',
        'sanitize_callback' => 'cloud_storage_services_sanitize_choices'
    ));
    $wp_customize->add_control('cloud_storage_services_scroll_position',array(
        'type' => 'radio',
        'section' => 'cloud_storage_services_footer',
        'label'	 	=> __('Scroll To Top Positions','cloud-storage-services'),
        'choices' => array(
            'Right' => __('Right','cloud-storage-services'),
            'Left' => __('Left','cloud-storage-services'),
            'Center' => __('Center','cloud-storage-services')
        ),
    ) );

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

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

	// Progress Bar
	$wp_customize->add_setting('cloud_storage_services_progress_bar', array(
		'default' => false,
		'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
	));

	$wp_customize->add_control(
		new WP_Customize_Control(
			$wp_customize,
			'cloud_storage_services_progress_bar',
			array(
				'label' => __('Check To Show Progress Bar', 'cloud-storage-services'),
				'section' => 'cloud_storage_services_footer',
				'settings' => 'cloud_storage_services_progress_bar',
				'type' => 'checkbox',
			)
		)
	);
    
	// Sticky Copyright Enable / Disable

	$wp_customize->add_setting('cloud_storage_services_sticky_copyright_enable',array(
		'default' => false,
		'sanitize_callback' => 'cloud_storage_services_sanitize_checkbox',
	));
	$wp_customize->add_control( 'cloud_storage_services_sticky_copyright_enable', array(
	   'section'   => 'cloud_storage_services_footer',
	   'label'	=> __('Check To Show Sticky Copyright','cloud-storage-services'),
	   'type'      => 'checkbox'
 	));

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

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

	$wp_customize->add_setting('cloud_storage_services_footer_facebook_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_footer_facebook_link', array(
		'settings' => 'cloud_storage_services_footer_facebook_link',
		'section'   => 'cloud_storage_services_footer_social_icons',
		'label' => __('Facebook Link', 'cloud-storage-services'),
		'type'      => 'url'
	));

	$wp_customize->add_setting('cloud_storage_services_footer_instagram_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_footer_instagram_link', array(
		'settings' => 'cloud_storage_services_footer_instagram_link',
		'section'   => 'cloud_storage_services_footer_social_icons',
		'label' => __('Instagram Link', 'cloud-storage-services'),
		'type'      => 'url'
	));

	$wp_customize->add_setting('cloud_storage_services_footer_pinterest_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_footer_pinterest_link', array(
		'settings' => 'cloud_storage_services_footer_pinterest_link',
		'section'   => 'cloud_storage_services_footer_social_icons',
		'label' => __('Pinterest Link', 'cloud-storage-services'),
		'type'      => 'url'
	));

	$wp_customize->add_setting('cloud_storage_services_footer_twitter_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_footer_twitter_link', array(
		'settings' => 'cloud_storage_services_footer_twitter_link',
		'section'   => 'cloud_storage_services_footer_social_icons',
		'label' => __('Twitter Link', 'cloud-storage-services'),
		'type'      => 'url'
	));

	$wp_customize->add_setting('cloud_storage_services_footer_youtube_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'cloud_storage_services_footer_youtube_link', array(
		'settings' => 'cloud_storage_services_footer_youtube_link',
		'section'   => 'cloud_storage_services_footer_social_icons',
		'label' => __('Youtube Link', 'cloud-storage-services'),
		'type'      => 'url'
	));

	$wp_customize->add_setting( 'cloud_storage_services_footer_social_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('cloud_storage_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(CLOUD_STORAGE_SERVICES_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'cloud_storage_services_footer_social_icons'
	));

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

	$wp_customize->add_setting( 'cloud_storage_services_body_fonts', array(
		'sanitize_callback' => 'cloud_storage_services_sanitize_fonts'
	));
	$wp_customize->add_control( 'cloud_storage_services_body_fonts', array(
		'type' => 'select',
		'description' => __( 'Select your desired font for the body.', 'cloud-storage-services' ),
		'section' => 'cloud_storage_services_google_fonts_section',
		'choices' => $font_choices
	));
  
}
add_action( 'customize_register', 'cloud_storage_services_customize_register' );

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