<?php
/**
 * Classic Internet Services Theme Customizer
 *
 * @package Classic Internet Services
 */

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

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

	function classic_internet_services_sanitize_checkbox( $checked ) {
		// Boolean check.
		return ( ( isset( $checked ) && true == $checked ) ? true : false );
	}

	function classic_internet_services_sanitize_email( $email, $setting ) {
		// Strips out all characters that are not allowable in an email address.
		$email = sanitize_email( $email );
		
		// If $email is a valid email, return it; otherwise, return the default.
		return ( ! is_null( $email ) ? $email : $setting->default );
	}

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

	//Logo
    $wp_customize->add_setting('classic_internet_services_logo_width',array(
		'default'=> '',
		'transport' => 'refresh',
		'sanitize_callback' => 'classic_internet_services_sanitize_integer'
	));
	$wp_customize->add_control(new Classic_Internet_Services_Slider_Custom_Control( $wp_customize, 'classic_internet_services_logo_width',array(
		'label'	=> esc_html__('Logo Width','classic-internet-services'),
		'section'=> 'title_tagline',
		'settings'=>'classic_internet_services_logo_width',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 100,
        ),
	)));

	$wp_customize->add_setting('classic_internet_services_title_enable',array(
		'default' => false,
		'sanitize_callback' => 'classic_internet_services_sanitize_checkbox',
	));
	$wp_customize->add_control( 'classic_internet_services_title_enable', array(
	   'settings' => 'classic_internet_services_title_enable',
	   'section'   => 'title_tagline',
	   'label'     => __('Enable Site Title','classic-internet-services'),
	   'type'      => 'checkbox'
	));

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

	$wp_customize->add_setting('classic_internet_services_tagline_enable',array(
		'default' => true,
		'sanitize_callback' => 'classic_internet_services_sanitize_checkbox',
	));
	$wp_customize->add_control( 'classic_internet_services_tagline_enable', array(
	   'settings' => 'classic_internet_services_tagline_enable',
	   'section'   => 'title_tagline',
	   'label'     => __('Enable Site Tagline','classic-internet-services'),
	   'type'      => 'checkbox'
	));

	// site tagline color
	$wp_customize->add_setting('classic_internet_services_sitetagline_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_sitetagline_color', array(
	   'settings' => 'classic_internet_services_sitetagline_color',
	   'section'   => 'title_tagline',
	   'label' => __('Site Tagline Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

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

	$wp_customize->add_setting('classic_internet_services_shop_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'classic_internet_services_sanitize_checkbox'
	));
	$wp_customize->add_control('classic_internet_services_shop_page_sidebar',array(
		'type' => 'checkbox',
		'label' => __(' Check To Enable Shop page sidebar','classic-internet-services'),
		'section' => 'classic_internet_services_woocommerce_page_settings',
	));

    // shop page sidebar alignment
    $wp_customize->add_setting('classic_internet_services_shop_page_sidebar_position', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'classic_internet_services_sanitize_choices',
	));
	$wp_customize->add_control('classic_internet_services_shop_page_sidebar_position',array(
		'type'           => 'radio',
		'label'          => __('Shop Page Sidebar', 'classic-internet-services'),
		'section'        => 'classic_internet_services_woocommerce_page_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'classic-internet-services'),
			'Right Sidebar' => __('Right Sidebar', 'classic-internet-services'),
		),
	));	 

	$wp_customize->add_setting('classic_internet_services_wooproducts_nav',array(
		'default' => 'Yes',
		'sanitize_callback'	=> 'classic_internet_services_sanitize_choices'
	));
	$wp_customize->add_control('classic_internet_services_wooproducts_nav',array(
		'type' => 'select',
		'label' => __('Shop Page Products Navigation','classic-internet-services'),
		'choices' => array(
			 'Yes' => __('Yes','classic-internet-services'),
			 'No' => __('No','classic-internet-services'),
		 ),
		'section' => 'classic_internet_services_woocommerce_page_settings',
	));

	$wp_customize->add_setting( 'classic_internet_services_single_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'classic_internet_services_sanitize_checkbox'
    ) );
    $wp_customize->add_control('classic_internet_services_single_page_sidebar',array(
    	'type' => 'checkbox',
       	'label' => __('Check To Enable Single Product Page Sidebar','classic-internet-services'),
		'section' => 'classic_internet_services_woocommerce_page_settings'
    ));

	// single product page sidebar alignment
    $wp_customize->add_setting('classic_internet_services_single_product_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'classic_internet_services_sanitize_choices',
	));
	$wp_customize->add_control('classic_internet_services_single_product_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Single product Page Sidebar', 'classic-internet-services'),
		'section'        => 'classic_internet_services_woocommerce_page_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'classic-internet-services'),
			'Right Sidebar' => __('Right Sidebar', 'classic-internet-services'),
		),
	));	

	$wp_customize->add_setting('classic_internet_services_related_product_enable',array(
		'default' => true,
		'sanitize_callback'	=> 'classic_internet_services_sanitize_checkbox'
	));
	$wp_customize->add_control('classic_internet_services_related_product_enable',array(
		'type' => 'checkbox',
		'label' => __('Check To Enable Related product','classic-internet-services'),
		'section' => 'classic_internet_services_woocommerce_page_settings',
	));

	$wp_customize->add_setting( 'classic_internet_services_woo_product_img_border_radius', array(
        'default'              => '0',
        'transport'            => 'refresh',
        'sanitize_callback'    => 'classic_internet_services_sanitize_integer'
    ) );
    $wp_customize->add_control(new Classic_Internet_Services_Slider_Custom_Control( $wp_customize, 'classic_internet_services_woo_product_img_border_radius',array(
		'label'	=> esc_html__('Woo Product Img Border Radius','classic-internet-services'),
		'section'=> 'classic_internet_services_woocommerce_page_settings',
		'settings'=>'classic_internet_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('classic_internet_services_products_per_row', array(
	   'default'   => '4',
	   'transport' => 'refresh',
	   'sanitize_callback' => 'classic_internet_services_sanitize_integer'
    ));
    $wp_customize->add_control('classic_internet_services_products_per_row', array(
	   'label'    => __('Woo Products Per Row', 'classic-internet-services'),
	   'section'  => 'classic_internet_services_woocommerce_page_settings',
	   'settings' => 'classic_internet_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('classic_internet_services_products_per_page', array(
		'default'   => '9',
		'transport' => 'refresh',
		'sanitize_callback' => 'classic_internet_services_sanitize_integer'
	));
	$wp_customize->add_control('classic_internet_services_products_per_page', array(
		'label'    => __('Woo Products Per Page', 'classic-internet-services'),
		'section'  => 'classic_internet_services_woocommerce_page_settings',
		'settings' => 'classic_internet_services_products_per_page',
		'type'     => 'number',
		'input_attrs' => array(
			'min'  => 1,
			'step' => 1,
		),
	));

	//Theme Options
	$wp_customize->add_panel( 'classic_internet_services_panel_area', array(
		'priority' => 10,
		'capability' => 'edit_theme_options',
		'title' => __( 'Theme Options Panel', 'classic-internet-services' ),
	) );
	
	//Site Layout Section
	$wp_customize->add_section('classic_internet_services_site_layoutsec',array(
		'title'	=> __('Manage Site Layout Section ','classic-internet-services'),
		'priority'	=> 1,
		'panel' => 'classic_internet_services_panel_area',
	));		
	
	$wp_customize->add_setting('classic_internet_services_preloader',array(
		'default' => false,
		'sanitize_callback' => 'classic_internet_services_sanitize_checkbox',
	));
	$wp_customize->add_control( 'classic_internet_services_preloader', array(
	   'section'   => 'classic_internet_services_site_layoutsec',
	   'label'	=> __('Check to show preloader','classic-internet-services'),
	   'type'      => 'checkbox'
 	));

	$wp_customize->add_setting('classic_internet_services_box_layout',array(
		'sanitize_callback' => 'classic_internet_services_sanitize_checkbox',
	));
	$wp_customize->add_control( 'classic_internet_services_box_layout', array(
	   'section'   => 'classic_internet_services_site_layoutsec',
	   'label'	=> __('Check to show Box Layout','classic-internet-services'),
	   'type'      => 'checkbox'
 	));

	$wp_customize->add_setting( 'classic_internet_services_layout_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('classic_internet_services_layout_settings_upgraded_features', array(
		  'type'=> 'hidden',
		  'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
			  <a target='_blank' href='". esc_url('https://www.theclassictemplates.com/products/internet-service-provider-wordpres-theme') ." '>Upgrade to Pro</a></span>",
		  'section' => 'classic_internet_services_site_layoutsec'
	));
  
	//Global Color
	$wp_customize->add_section('classic_internet_services_global_color', array(
		'title'    => __('Manage Global Color Section', 'classic-internet-services'),
		'panel'    => 'classic_internet_services_panel_area',
	));

	$wp_customize->add_setting('classic_internet_services_first_color', array(
		'default'           => '#99cc03',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'classic_internet_services_first_color', array(
		'label'    => __('Theme Color', 'classic-internet-services'),
		'section'  => 'classic_internet_services_global_color',
		'settings' => 'classic_internet_services_first_color',
	)));	

	$wp_customize->add_setting( 'classic_internet_services_global_color_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('classic_internet_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('https://www.theclassictemplates.com/products/internet-service-provider-wordpres-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'classic_internet_services_global_color'
	));   	

	// Header Section 
	$wp_customize->add_section('classic_internet_services_header', array(
		'title'	=> __('Manage Header Section','classic-internet-services'),
		'priority'	=> null,
		'panel' => 'classic_internet_services_panel_area',
	));

	$wp_customize->add_setting('classic_internet_services_topbar',array(
		'default' => false,
		'sanitize_callback' => 'classic_internet_services_sanitize_checkbox',
	));
	$wp_customize->add_control( 'classic_internet_services_topbar', array(
	   'section'   => 'classic_internet_services_header',
	   'label'	=> __('Check to show topbar','classic-internet-services'),
	   'type'      => 'checkbox'
 	));	

	$wp_customize->add_setting('classic_internet_services_stickyheader',array(
		'default' => false,
		'sanitize_callback' => 'classic_internet_services_sanitize_checkbox',
	));
	$wp_customize->add_control( 'classic_internet_services_stickyheader', array(
	   'section'   => 'classic_internet_services_header',
	   'label'	=> __('Check To Show Sticky Header','classic-internet-services'),
	   'type'      => 'checkbox'
 	));

	// topheader color
	$wp_customize->add_setting('classic_internet_services_topheaderbg_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_topheaderbg_color', array(
	   'settings' => 'classic_internet_services_topheaderbg_color',
	   'section'   => 'classic_internet_services_header',
	   'label' => __('Top BG Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// header_accounticon_col
	$wp_customize->add_setting('classic_internet_services_header_accounticon_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_header_accounticon_col', array(
	   'settings' => 'classic_internet_services_header_accounticon_col',
	   'section'   => 'classic_internet_services_header',
	   'label' => __('Account Icon Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// header_carticon_col
	$wp_customize->add_setting('classic_internet_services_header_carticon_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_header_carticon_col', array(
	   'settings' => 'classic_internet_services_header_carticon_col',
	   'section'   => 'classic_internet_services_header',
	   'label' => __('Cart Icon Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// header bottombg col
	$wp_customize->add_setting('classic_internet_services_header_bottombg_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_header_bottombg_col', array(
	   'settings' => 'classic_internet_services_header_bottombg_col',
	   'section'   => 'classic_internet_services_header',
	   'label' => __('Bottom BG Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// header menus col
	$wp_customize->add_setting('classic_internet_services_header_menus_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_header_menus_col', array(
	   'settings' => 'classic_internet_services_header_menus_col',
	   'section'   => 'classic_internet_services_header',
	   'label' => __('Menus Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// header menushov col
	$wp_customize->add_setting('classic_internet_services_header_menushov_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_header_menushov_col', array(
	   'settings' => 'classic_internet_services_header_menushov_col',
	   'section'   => 'classic_internet_services_header',
	   'label' => __('Menus Hover Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// header menushover col
	$wp_customize->add_setting('classic_internet_services_header_menushover1_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_header_menushover1_col', array(
	   'settings' => 'classic_internet_services_header_menushover1_col',
	   'section'   => 'classic_internet_services_header',
	   'label' => __('Menus BG Hover Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// header submenubg1 col
	$wp_customize->add_setting('classic_internet_services_header_submenubg1_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_header_submenubg1_col', array(
	   'settings' => 'classic_internet_services_header_submenubg1_col',
	   'section'   => 'classic_internet_services_header',
	   'label' => __('SubMenus BG Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// header submenu col
	$wp_customize->add_setting('classic_internet_services_header_submenu_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_header_submenu_col', array(
	   'settings' => 'classic_internet_services_header_submenu_col',
	   'section'   => 'classic_internet_services_header',
	   'label' => __('SubMenus Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// header submenuhover col
	$wp_customize->add_setting('classic_internet_services_header_submenuhover_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_header_submenuhover_col', array(
	   'settings' => 'classic_internet_services_header_submenuhover_col',
	   'section'   => 'classic_internet_services_header',
	   'label' => __('SubMenu Hover Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

    // Menu Text Transform
    $wp_customize->add_setting( 'classic_internet_services_menu_text_transform', array(
        'default'           => 'Uppercase',
		'transport' => 'refresh',
		'sanitize_callback' => 'classic_internet_services_sanitize_choices'
    ));

    $wp_customize->add_control( 'classic_internet_services_menu_text_transform', array(
        'label'    => __( 'Menu Text Transform', 'classic-internet-services' ),
        'section'  => 'classic_internet_services_header',
        'type'     => 'select',
        'choices'  => array(
			'None'       => __( 'None', 'classic-internet-services' ),
            'Capitalize' => __( 'Capitalize', 'classic-internet-services' ),
            'Uppercase'  => __( 'Uppercase', 'classic-internet-services' ),
            'Lowercase'  => __( 'Lowercase', 'classic-internet-services' ),
        ),
    ));

	$wp_customize->add_setting( 'classic_internet_services_header_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('classic_internet_services_header_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
			<a target='_blank' href='". esc_url('https://www.theclassictemplates.com/products/internet-service-provider-wordpres-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'classic_internet_services_header'
	 ));

	// Home Category Dropdown Section
	$wp_customize->add_section('classic_internet_services_one_cols_section',array(
		'title'	=> __('Manage Slider Section','classic-internet-services'),
		'description'	=> __('Select Category from the Dropdowns for slider, Also use the given image dimension (1400 x 600).','classic-internet-services'),
		'priority'	=> null,
		'panel' => 'classic_internet_services_panel_area'
	));

	//Hide Section
	$wp_customize->add_setting('classic_internet_services_hide_categorysec',array(
		'default' => false,
		'sanitize_callback' => 'classic_internet_services_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_hide_categorysec', array(
	   'settings' => 'classic_internet_services_hide_categorysec',
	   'section'   => 'classic_internet_services_one_cols_section',
	   'label'     => __('Check To Enable This Section','classic-internet-services'),
	   'type'      => 'checkbox'
	));

	// Add a category dropdown Slider Coloumn
	$wp_customize->add_setting( 'classic_internet_services_pageboxes', array(
		'default'	=> '0',	
		'sanitize_callback'	=> 'absint'
	) );
	$wp_customize->add_control( new Classic_Internet_Services_Category_Dropdown_Custom_Control( $wp_customize, 'classic_internet_services_pageboxes', array(
		'section' => 'classic_internet_services_one_cols_section',
		'label'     => __('Select Category to Display SLider','classic-internet-services'),
		'settings'   => 'classic_internet_services_pageboxes',
	) ) );

	$wp_customize->add_setting('classic_internet_services_pgboxes_title',array(
		'sanitize_callback' => 'sanitize_text_field',
	));	
	$wp_customize->add_control( 'classic_internet_services_pgboxes_title', array(
	   'section' 	=> 'classic_internet_services_one_cols_section',
	   'label'	 	=> __('Short Text','classic-internet-services'),
	   'type'    	=> 'text',
	   'priority' 	=> null,
    ));

    $wp_customize->add_setting('classic_internet_services_button_text',array(
		'default' => 'Read More',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_button_text', array(
	   'settings' => 'classic_internet_services_button_text',
	   'section'   => 'classic_internet_services_one_cols_section',
	   'label' => __('Add Button Text', 'classic-internet-services'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('classic_internet_services_button_link_slider',array(
        'default'=> '',
        'sanitize_callback' => 'esc_url_raw'
    ));
    $wp_customize->add_control('classic_internet_services_button_link_slider',array(
        'label' => esc_html__('Add Button Link','classic-internet-services'),
        'section'=> 'classic_internet_services_one_cols_section',
        'type'=> 'url'
    ));

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

    // slider shorttext col
	$wp_customize->add_setting('classic_internet_services_slider_shorttext_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_slider_shorttext_col', array(
	   'settings' => 'classic_internet_services_slider_shorttext_col',
	   'section'   => 'classic_internet_services_one_cols_section',
	   'label' => __('Short Text Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// slider title col
	$wp_customize->add_setting('classic_internet_services_slider_title_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_slider_title_col', array(
	   'settings' => 'classic_internet_services_slider_title_col',
	   'section'   => 'classic_internet_services_one_cols_section',
	   'label' => __('Title Color', 'classic-internet-services'),
	   'type'      => 'color'
	));
	
	// slider buttontext col
	$wp_customize->add_setting('classic_internet_services_slider_buttontext_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_slider_buttontext_col', array(
	   'settings' => 'classic_internet_services_slider_buttontext_col',
	   'section'   => 'classic_internet_services_one_cols_section',
	   'label' => __('Button Text Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// slider buttonbg col
	$wp_customize->add_setting('classic_internet_services_slider_buttonbg_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_slider_buttonbg_col', array(
	   'settings' => 'classic_internet_services_slider_buttonbg_col',
	   'section'   => 'classic_internet_services_one_cols_section',
	   'label' => __('Button BG Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// slider buttonbghover col
	$wp_customize->add_setting('classic_internet_services_slider_buttonbghover_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_slider_buttonbghover_col', array(
	   'settings' => 'classic_internet_services_slider_buttonbghover_col',
	   'section'   => 'classic_internet_services_one_cols_section',
	   'label' => __('Button BG Hover Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// slider bg1 col
	$wp_customize->add_setting('classic_internet_services_slider_bg1_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_slider_bg1_col', array(
	   'settings' => 'classic_internet_services_slider_bg1_col',
	   'section'   => 'classic_internet_services_one_cols_section',
	   'label' => __('BG Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// slider arrow col
	$wp_customize->add_setting('classic_internet_services_slider_arrow_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_slider_arrow_col', array(
	   'settings' => 'classic_internet_services_slider_arrow_col',
	   'section'   => 'classic_internet_services_one_cols_section',
	   'label' => __('Arrows Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// slider arrowhover col
	$wp_customize->add_setting('classic_internet_services_slider_arrowhover_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_slider_arrowhover_col', array(
	   'settings' => 'classic_internet_services_slider_arrowhover_col',
	   'section'   => 'classic_internet_services_one_cols_section',
	   'label' => __('Arrows hover Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting( 'classic_internet_services_slider_settings_upgraded_features',array(
	  'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('classic_internet_services_slider_settings_upgraded_features', array(
	    'type'=> 'hidden',
	    'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
	        <a target='_blank' href='". esc_url('https://www.theclassictemplates.com/products/internet-service-provider-wordpres-theme') ." '>Upgrade to Pro</a></span>",
	    'section' => 'classic_internet_services_one_cols_section'
	));

	// Home Three Boxes Section 
	$wp_customize->add_section('classic_internet_services_below_banner_section', array(
		'title'	=> __('Manage Services Section','classic-internet-services'),
		'description'	=> __('Select Pages from the dropdown for Services, Also use the given image dimension (500 x 500).','classic-internet-services'),
		'priority'	=> null,
		'panel' => 'classic_internet_services_panel_area',
	));

	$wp_customize->add_setting('classic_internet_services_disabled_pgboxes',array(
		'default' => false,
		'sanitize_callback' => 'classic_internet_services_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_disabled_pgboxes', array(
	   'settings' => 'classic_internet_services_disabled_pgboxes',
	   'section'   => 'classic_internet_services_below_banner_section',
	   'label'     => __('Check To Enable This Section','classic-internet-services'),
	   'type'      => 'checkbox'
	));

	$wp_customize->add_setting('classic_internet_services_servicebox_title',array(
		'default'	=> '',
		'capability' => 'edit_theme_options',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(	'classic_internet_services_servicebox_title',array(
		'type' => 'text',
		'label'	 	=> __('Heading','classic-internet-services'),
		'section' => 'classic_internet_services_below_banner_section',
	));

	$wp_customize->add_setting('classic_internet_services_pageboxes1',array(
		'default'	=> '0',
		'capability' => 'edit_theme_options',
		'sanitize_callback'	=> 'classic_internet_services_sanitize_dropdown_pages'
	));
	$wp_customize->add_control(	'classic_internet_services_pageboxes1',array(
		'type' => 'dropdown-pages',
		'label'	 	=> __('Select Page to display Services','classic-internet-services'),
		'section' => 'classic_internet_services_below_banner_section',
	));	
	
	$wp_customize->add_setting('classic_internet_services_pageboxes2',array(
		'default'	=> '0',
		'capability' => 'edit_theme_options',
		'sanitize_callback'	=> 'classic_internet_services_sanitize_dropdown_pages'
	)); 
	$wp_customize->add_control(	'classic_internet_services_pageboxes2',array(
		'type' => 'dropdown-pages',
		'section' => 'classic_internet_services_below_banner_section',
	));
	
	$wp_customize->add_setting('classic_internet_services_pageboxes3',array(
		'default'	=> '0',
		'capability' => 'edit_theme_options',
		'sanitize_callback'	=> 'classic_internet_services_sanitize_dropdown_pages'
	));
	$wp_customize->add_control(	'classic_internet_services_pageboxes3',array(
		'type' => 'dropdown-pages',
		'section' => 'classic_internet_services_below_banner_section',
	));

	$wp_customize->add_setting('classic_internet_services_button_text1',array(
		'default' => 'Read More',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_button_text1', array(
	   'settings' => 'classic_internet_services_button_text1',
	   'section'   => 'classic_internet_services_below_banner_section',
	   'label' => __('Add Button Text', 'classic-internet-services'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('classic_internet_services_servicebox_btn_link',array(
		'default'	=> '',
		'capability' => 'edit_theme_options',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control(	'classic_internet_services_servicebox_btn_link',array(
		'type' => 'url',
		'label'	 	=> __('Heading Button URL','classic-internet-services'),
		'section' => 'classic_internet_services_below_banner_section',
	));

	// services heading col
	$wp_customize->add_setting('classic_internet_services_services_heading_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_services_heading_col', array(
	   'settings' => 'classic_internet_services_services_heading_col',
	   'section'   => 'classic_internet_services_below_banner_section',
	   'label' => __('Heading Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// services buton bg col
	$wp_customize->add_setting('classic_internet_services_services_btnbg_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_services_btnbg_col', array(
	   'settings' => 'classic_internet_services_services_btnbg_col',
	   'section'   => 'classic_internet_services_below_banner_section',
	   'label' => __('Button Bg Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// services buton text col
	$wp_customize->add_setting('classic_internet_services_services_btntxt_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_services_btntxt_col', array(
	   'settings' => 'classic_internet_services_services_btntxt_col',
	   'section'   => 'classic_internet_services_below_banner_section',
	   'label' => __('Button Text Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// services butonbghover col
	$wp_customize->add_setting('classic_internet_services_services_btnbghover_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_services_btnbghover_col', array(
	   'settings' => 'classic_internet_services_services_btnbghover_col',
	   'section'   => 'classic_internet_services_below_banner_section',
	   'label' => __('Button Bg Hover Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// services butontxthover col
	$wp_customize->add_setting('classic_internet_services_services_btntxthover_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_services_btntxthover_col', array(
	   'settings' => 'classic_internet_services_services_btntxthover_col',
	   'section'   => 'classic_internet_services_below_banner_section',
	   'label' => __('Button Text Hover Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// services boxbg col
	$wp_customize->add_setting('classic_internet_services_services_boxbg_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_services_boxbg_col', array(
	   'settings' => 'classic_internet_services_services_boxbg_col',
	   'section'   => 'classic_internet_services_below_banner_section',
	   'label' => __('Service Bg Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// services boxheading col
	$wp_customize->add_setting('classic_internet_services_services_boxheading_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_services_boxheading_col', array(
	   'settings' => 'classic_internet_services_services_boxheading_col',
	   'section'   => 'classic_internet_services_below_banner_section',
	   'label' => __('Service Heading Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// services boxheadinghover col
	$wp_customize->add_setting('classic_internet_services_services_boxheadinghover_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_services_boxheadinghover_col', array(
	   'settings' => 'classic_internet_services_services_boxheadinghover_col',
	   'section'   => 'classic_internet_services_below_banner_section',
	   'label' => __('Service Heading Hover Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// services boxtxt col
	$wp_customize->add_setting('classic_internet_services_services_boxtxt_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_services_boxtxt_col', array(
	   'settings' => 'classic_internet_services_services_boxtxt_col',
	   'section'   => 'classic_internet_services_below_banner_section',
	   'label' => __('Service Text Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting( 'classic_internet_services_secondsec_settings_upgraded_features',array(
	   'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('classic_internet_services_secondsec_settings_upgraded_features', array(
	   'type'=> 'hidden',
	   'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
	      <a target='_blank' href='". esc_url('https://www.theclassictemplates.com/products/internet-service-provider-wordpres-theme') ." '>Upgrade to Pro</a></span>",
	   'section' => 'classic_internet_services_below_banner_section'
	));

	//Blog post
	$wp_customize->add_section('classic_internet_services_blog_post_settings',array(
        'title' => __('Manage Post Section', 'classic-internet-services'),
        'priority' => null,
        'panel' => 'classic_internet_services_panel_area'
    ));

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

	$wp_customize->add_control(
		new Classic_Internet_Services_Image_Radio_Control(
			$wp_customize,
			'classic_internet_services_blog_layout_option_setting',
			array(
				'label'   => __( 'Post Layouts', 'classic-internet-services' ),
				'section' => 'classic_internet_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('classic_internet_services_metafields_date', array(
	    'default' => true,
	    'sanitize_callback' => 'classic_internet_services_sanitize_checkbox',
	));
	$wp_customize->add_control('classic_internet_services_metafields_date', array(
	    'settings' => 'classic_internet_services_metafields_date', 
	    'section'   => 'classic_internet_services_blog_post_settings',
	    'label'     => __('Check to Enable Date', 'classic-internet-services'),
	    'type'      => 'checkbox',
	));

	$wp_customize->add_setting('classic_internet_services_metafields_comments', array(
		'default' => true,
		'sanitize_callback' => 'classic_internet_services_sanitize_checkbox',
	));	
	$wp_customize->add_control('classic_internet_services_metafields_comments', array(
		'settings' => 'classic_internet_services_metafields_comments',
		'section'  => 'classic_internet_services_blog_post_settings',
		'label'    => __('Check to Enable Comments', 'classic-internet-services'),
		'type'     => 'checkbox',
	));

	$wp_customize->add_setting('classic_internet_services_metafields_author', array(
		'default' => true,
		'sanitize_callback' => 'classic_internet_services_sanitize_checkbox',
	));
	$wp_customize->add_control('classic_internet_services_metafields_author', array(
		'settings' => 'classic_internet_services_metafields_author',
		'section'  => 'classic_internet_services_blog_post_settings',
		'label'    => __('Check to Enable Author', 'classic-internet-services'),
		'type'     => 'checkbox',
	));		

	$wp_customize->add_setting('classic_internet_services_metafields_time', array(
		'default' => true,
		'sanitize_callback' => 'classic_internet_services_sanitize_checkbox',
	));
	$wp_customize->add_control('classic_internet_services_metafields_time', array(
		'settings' => 'classic_internet_services_metafields_time',
		'section'  => 'classic_internet_services_blog_post_settings',
		'label'    => __('Check to Enable Time', 'classic-internet-services'),
		'type'     => 'checkbox',
	));	

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

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

	$wp_customize->add_setting('classic_internet_services_blog_post_description_option',array(
    	'default'   => 'Full Content', 
        'sanitize_callback' => 'classic_internet_services_sanitize_choices'
	));
	$wp_customize->add_control('classic_internet_services_blog_post_description_option',array(
        'type' => 'radio',
        'label' => __('Post Description Length','classic-internet-services'),
        'section' => 'classic_internet_services_blog_post_settings',
        'choices' => array(
            'No Content' => __('No Content','classic-internet-services'),
            'Excerpt Content' => __('Excerpt Content','classic-internet-services'),
            'Full Content' => __('Full Content','classic-internet-services'),
        ),
	) );

	$wp_customize->add_setting('classic_internet_services_blog_post_thumb',array(
        'sanitize_callback' => 'classic_internet_services_sanitize_checkbox',
        'default'           => 1,
    ));
    $wp_customize->add_control('classic_internet_services_blog_post_thumb',array(
        'type'        => 'checkbox',
        'label'       => esc_html__('Show / Hide Blog Post Thumbnail', 'classic-internet-services'),
        'section'     => 'classic_internet_services_blog_post_settings',
    ));

	$wp_customize->add_setting( 'classic_internet_services_post_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('classic_internet_services_post_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
			<a target='_blank' href='". esc_url('https://www.theclassictemplates.com/products/internet-service-provider-wordpres-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'classic_internet_services_blog_post_settings'
	));

	//Single Post Settings
	$wp_customize->add_section('classic_internet_services_single_post_settings',array(
		'title' => __('Manage Single Post Section', 'classic-internet-services'),
		'priority' => null,
		'panel' => 'classic_internet_services_panel_area'
	));

	$wp_customize->add_setting('classic_internet_services_single_post_date',array(
		'default' => true,
		'sanitize_callback'	=> 'classic_internet_services_sanitize_checkbox'
	));
	$wp_customize->add_control('classic_internet_services_single_post_date',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Date ','classic-internet-services'),
		'section' => 'classic_internet_services_single_post_settings'
	));	

	$wp_customize->add_setting('classic_internet_services_single_post_author',array(
		'default' => true,
		'sanitize_callback'	=> 'classic_internet_services_sanitize_checkbox'
	));
	$wp_customize->add_control('classic_internet_services_single_post_author',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Author','classic-internet-services'),
		'section' => 'classic_internet_services_single_post_settings'
	));

	$wp_customize->add_setting('classic_internet_services_single_post_comment',array(
		'default' => true,
		'sanitize_callback'	=> 'classic_internet_services_sanitize_checkbox'
	));
	$wp_customize->add_control('classic_internet_services_single_post_comment',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Comments','classic-internet-services'),
		'section' => 'classic_internet_services_single_post_settings'
	));	

	$wp_customize->add_setting('classic_internet_services_single_post_time',array(
		'default' => true,
		'sanitize_callback'	=> 'classic_internet_services_sanitize_checkbox'
	));
	$wp_customize->add_control('classic_internet_services_single_post_time',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Time','classic-internet-services'),
		'section' => 'classic_internet_services_single_post_settings'
	));	

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

	$wp_customize->add_setting('classic_internet_services_sidebar_single_post_layout',array(
    	'default' => 'right',
    	 'sanitize_callback' => 'classic_internet_services_sanitize_choices'
	));
	$wp_customize->add_control('classic_internet_services_sidebar_single_post_layout',array(
   		'type' => 'radio',
    	'label'     => __('Single post sidebar layout', 'classic-internet-services'),
     	'section' => 'classic_internet_services_single_post_settings',
     	'choices' => array(
			'left' => __('Left','classic-internet-services'),
			'right' => __('Right','classic-internet-services'),
			'full' => __('No Sidebar','classic-internet-services')
     ),
	));

	$wp_customize->add_setting( 'classic_internet_services_single_post_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('classic_internet_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('https://www.theclassictemplates.com/products/internet-service-provider-wordpres-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'classic_internet_services_single_post_settings'
	));

	//Page Settings
	$wp_customize->add_section('classic_internet_services_page_settings',array(
		'title' => __('Manage Page Section', 'classic-internet-services'),
		'priority' => null,
		'panel' => 'classic_internet_services_panel_area'
	));

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

	// 404 Page Settings
	$wp_customize->add_section('classic_internet_services_page_not_found', array(
		'title'	=> __('Manage 404 Page Section','classic-internet-services'),
		'priority'	=> null,
		'panel' => 'classic_internet_services_panel_area',
	));

	$wp_customize->add_setting('classic_internet_services_page_not_found_heading',array(
		'default'=> __('404 Not Found','classic-internet-services'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('classic_internet_services_page_not_found_heading',array(
		'label'	=> __('404 Heading','classic-internet-services'),
		'section'=> 'classic_internet_services_page_not_found',
		'type'=> 'text'
	));

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

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

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

	$wp_customize->add_setting( 'classic_internet_services_page_not_found_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('classic_internet_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(CLASSIC_INTERNET_SERVICES_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'classic_internet_services_page_not_found'
	));

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

	$wp_customize->add_setting('classic_internet_services_animation_enabled',array(
		'default' => true,
		'sanitize_callback' => 'classic_internet_services_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_animation_enabled', array(
	   'settings' => 'classic_internet_services_animation_enabled',
	   'section'   => 'classic_internet_services_animation',
	   'label'     => __('Check To Enable Animation','classic-internet-services'),
	   'type'      => 'checkbox'
	));

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

	// Footer Section 
	$wp_customize->add_section('classic_internet_services_footer', array(
		'title'	=> __('Manage Footer Section','classic-internet-services'),
		'priority'	=> null,
		'panel' => 'classic_internet_services_panel_area',
	));

	$wp_customize->add_setting('classic_internet_services_footer_widget', array(
	    'default' => true,
	    'sanitize_callback' => 'classic_internet_services_sanitize_checkbox',
	));
	$wp_customize->add_control('classic_internet_services_footer_widget', array(
	    'settings' => 'classic_internet_services_footer_widget', // Corrected setting name
	    'section'   => 'classic_internet_services_footer',
	    'label'     => __('Check to Enable Footer Widget', 'classic-internet-services'),
	    'type'      => 'checkbox',
	));

	$wp_customize->add_setting('classic_internet_services_footer_bg_image',array(
        'default'   => '',
        'sanitize_callback' => 'esc_url_raw',
    ));
    $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'classic_internet_services_footer_bg_image',array(
        'label' => __('Footer Background Image','classic-internet-services'),
        'section' => 'classic_internet_services_footer',
    )));

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

	$wp_customize->add_setting('classic_internet_services_copyright_line',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
	));	
	$wp_customize->add_control( 'classic_internet_services_copyright_line', array(
	   'section' 	=> 'classic_internet_services_footer',
	   'label'	 	=> __('Copyright Line','classic-internet-services'),
	   'type'    	=> 'text',
	   'priority' 	=> null,
    ));

    $wp_customize->add_setting('classic_internet_services_copyright_link',array( 
    	'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
	));	
	$wp_customize->add_control( 'classic_internet_services_copyright_link', array(
	   'section' 	=> 'classic_internet_services_footer',
	   'label'	 	=> __('Copyright Link','classic-internet-services'),
	   'type'    	=> 'text',
	   'priority' 	=> null,
    ));

	// footer bg color
	$wp_customize->add_setting('classic_internet_services_footer_topbg_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_footer_topbg_col', array(
		'settings' => 'classic_internet_services_footer_topbg_col',
		'section'   => 'classic_internet_services_footer',
		'label' => __('BG Color', 'classic-internet-services'),
		'type'      => 'color'
	));

    // footer coypright col
	$wp_customize->add_setting('classic_internet_services_footer_coypright_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_footer_coypright_col', array(
	   'settings' => 'classic_internet_services_footer_coypright_col',
	   'section'   => 'classic_internet_services_footer',
	   'label' => __('Copyright Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// footer coyprightbg col
	$wp_customize->add_setting('classic_internet_services_footer_coyprightbg_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_footer_coyprightbg_col', array(
	   'settings' => 'classic_internet_services_footer_coyprightbg_col',
	   'section'   => 'classic_internet_services_footer',
	   'label' => __('Copyright BG Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// footer heading col
	$wp_customize->add_setting('classic_internet_services_footer_heading_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_footer_heading_col', array(
	   'settings' => 'classic_internet_services_footer_heading_col',
	   'section'   => 'classic_internet_services_footer',
	   'label' => __('Heading Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// footer text col
	$wp_customize->add_setting('classic_internet_services_footer_text_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_footer_text_col', array(
	   'settings' => 'classic_internet_services_footer_text_col',
	   'section'   => 'classic_internet_services_footer',
	   'label' => __('Text Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// footer list col
	$wp_customize->add_setting('classic_internet_services_footer_list_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_footer_list_col', array(
	   'settings' => 'classic_internet_services_footer_list_col',
	   'section'   => 'classic_internet_services_footer',
	   'label' => __('List Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	// footer listhover col
	$wp_customize->add_setting('classic_internet_services_footer_listhover_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_footer_listhover_col', array(
	   'settings' => 'classic_internet_services_footer_listhover_col',
	   'section'   => 'classic_internet_services_footer',
	   'label' => __('List Hover Color', 'classic-internet-services'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('classic_internet_services_scroll_hide', array(
        'default' => true,
        'sanitize_callback' => 'classic_internet_services_sanitize_checkbox'
    ));
    $wp_customize->add_control( new WP_Customize_Control($wp_customize,'classic_internet_services_scroll_hide',array(
        'label'          => __( 'Check To Show Scroll To Top', 'classic-internet-services' ),
        'section'        => 'classic_internet_services_footer',
        'settings'       => 'classic_internet_services_scroll_hide',
        'type'           => 'checkbox',
    )));

    $wp_customize->add_setting('classic_internet_services_scroll_position',array(
        'default' => 'Right',
        'sanitize_callback' => 'classic_internet_services_sanitize_choices'
    ));
    $wp_customize->add_control('classic_internet_services_scroll_position',array(
        'type' => 'radio',
        'section' => 'classic_internet_services_footer',
        'label'	 	=> __('Scroll To Top Positions','classic-internet-services'),
        'choices' => array(
            'Right' => __('Right','classic-internet-services'),
            'Left' => __('Left','classic-internet-services'),
            'Center' => __('Center','classic-internet-services')
        ),
    ) );

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

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

	$wp_customize->add_setting('classic_internet_services_footer_widget_areas',array(
		'default'           => 4,
		'sanitize_callback' => 'classic_internet_services_sanitize_choices',
	));
	$wp_customize->add_control('classic_internet_services_footer_widget_areas',array(
		'type'        => 'radio',
		'section' => 'classic_internet_services_footer',
		'label'       => __('Footer widget area', 'classic-internet-services'),
		'choices' => array(
		   '1'     => __('One', 'classic-internet-services'),
		   '2'     => __('Two', 'classic-internet-services'),
		   '3'     => __('Three', 'classic-internet-services'),
		   '4'     => __('Four', 'classic-internet-services')
		),
	));

    $wp_customize->add_setting( 'classic_internet_services_footer_settings_upgraded_features',array(
	  'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('classic_internet_services_footer_settings_upgraded_features', array(
	    'type'=> 'hidden',
	    'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
	        <a target='_blank' href='". esc_url('https://www.theclassictemplates.com/products/internet-service-provider-wordpres-theme') ." '>Upgrade to Pro</a></span>",
	    'section' => 'classic_internet_services_footer'
	));

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

	$wp_customize->add_setting('classic_internet_services_footer_facebook_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_footer_facebook_link', array(
		'settings' => 'classic_internet_services_footer_facebook_link',
		'section'   => 'classic_internet_services_footer_social_icons',
		'label' => __('Facebook Link', 'classic-internet-services'),
		'type'      => 'url'
	));

	$wp_customize->add_setting('classic_internet_services_footer_instagram_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_footer_instagram_link', array(
		'settings' => 'classic_internet_services_footer_instagram_link',
		'section'   => 'classic_internet_services_footer_social_icons',
		'label' => __('Instagram Link', 'classic-internet-services'),
		'type'      => 'url'
	));

	$wp_customize->add_setting('classic_internet_services_footer_pinterest_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_footer_pinterest_link', array(
		'settings' => 'classic_internet_services_footer_pinterest_link',
		'section'   => 'classic_internet_services_footer_social_icons',
		'label' => __('Pinterest Link', 'classic-internet-services'),
		'type'      => 'url'
	));

	$wp_customize->add_setting('classic_internet_services_footer_twitter_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_footer_twitter_link', array(
		'settings' => 'classic_internet_services_footer_twitter_link',
		'section'   => 'classic_internet_services_footer_social_icons',
		'label' => __('Twitter Link', 'classic-internet-services'),
		'type'      => 'url'
	));
	
	$wp_customize->add_setting('classic_internet_services_footer_youtube_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_internet_services_footer_youtube_link', array(
		'settings' => 'classic_internet_services_footer_youtube_link',
		'section'   => 'classic_internet_services_footer_social_icons',
		'label' => __('Youtube Link', 'classic-internet-services'),
		'type'      => 'url'
	));

	$wp_customize->add_setting( 'classic_internet_services_footer_social_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('classic_internet_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('https://www.theclassictemplates.com/products/internet-service-provider-wordpres-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'classic_internet_services_footer_social_icons'
	));

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

	$wp_customize->add_setting( 'classic_internet_services_body_fonts', array(
		'sanitize_callback' => 'classic_internet_services_sanitize_fonts'
	));
	$wp_customize->add_control( 'classic_internet_services_body_fonts', array(
		'type' => 'select',
		'description' => __( 'Select your desired font for the body.', 'classic-internet-services' ),
		'section' => 'classic_internet_services_google_fonts_section',
		'choices' => $font_choices
	));
}
add_action( 'customize_register', 'Classic_Internet_Services_Customize_register' );

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