<?php
/**
 * Luxury Interior Theme Customizer
 *
 * @package Luxury Interior
 */

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

	wp_enqueue_style('luxury-interior-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';

	// Enable / Disable Logo
	$wp_customize->add_setting('luxury_interior_logo_enable',array(
		'default' => true,
		'sanitize_callback' => 'luxury_interior_sanitize_checkbox',
	));
	$wp_customize->add_control( 'luxury_interior_logo_enable', array(
		'settings' => 'luxury_interior_logo_enable',
		'section'   => 'title_tagline',
		'label'     => __('Enable Logo','luxury-interior'),
		'type'      => 'checkbox'
	));

	//Logo
    $wp_customize->add_setting('luxury_interior_logo_width',array(
		'default'=> '',
		'transport' => 'refresh',
		'sanitize_callback' => 'luxury_interior_sanitize_integer'
	));
	$wp_customize->add_control(new Luxury_Interior_Slider_Custom_Control( $wp_customize, 'luxury_interior_logo_width',array(
		'label'	=> esc_html__('Logo Width','luxury-interior'),
		'section'=> 'title_tagline',
		'settings'=>'luxury_interior_logo_width',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 100,
        ),
	)));

	$wp_customize->add_setting('luxury_interior_title_enable',array(
		'default' => false,
		'sanitize_callback' => 'luxury_interior_sanitize_checkbox',
	));
	$wp_customize->add_control( 'luxury_interior_title_enable', array(
	   'settings' => 'luxury_interior_title_enable',
	   'section'   => 'title_tagline',
	   'label'     => __('Enable Site Title','luxury-interior'),
	   'type'      => 'checkbox'
	));

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

	$wp_customize->add_setting('luxury_interior_tagline_enable',array(
		'default' => false,
		'sanitize_callback' => 'luxury_interior_sanitize_checkbox',
	));
	$wp_customize->add_control( 'luxury_interior_tagline_enable', array(
	   'settings' => 'luxury_interior_tagline_enable',
	   'section'   => 'title_tagline',
	   'label'     => __('Enable Site Tagline','luxury-interior'),
	   'type'      => 'checkbox'
	));

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

	// woocommerce section
	$wp_customize->add_section('luxury_interior_woocommerce_page_settings', array(
		'title'    => __('WooCommerce Page Settings', 'luxury-interior'),
		'priority' => null,
		'panel'    => 'woocommerce',
	));

	$wp_customize->add_setting('luxury_interior_shop_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'luxury_interior_sanitize_checkbox'
	));
	$wp_customize->add_control('luxury_interior_shop_page_sidebar',array(
		'type' => 'checkbox',
		'label' => __(' Check To Enable Shop page sidebar','luxury-interior'),
		'section' => 'luxury_interior_woocommerce_page_settings',
	));

    // shop page sidebar alignment
    $wp_customize->add_setting('luxury_interior_shop_page_sidebar_position', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'luxury_interior_sanitize_choices',
	));
	$wp_customize->add_control('luxury_interior_shop_page_sidebar_position',array(
		'type'           => 'radio',
		'label'          => __('Shop Page Sidebar', 'luxury-interior'),
		'section'        => 'luxury_interior_woocommerce_page_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'luxury-interior'),
			'Right Sidebar' => __('Right Sidebar', 'luxury-interior'),
		),
	));	 

	$wp_customize->add_setting('luxury_interior_wooproducts_nav',array(
		'default' => 'Yes',
		'sanitize_callback'	=> 'luxury_interior_sanitize_choices'
	));
	$wp_customize->add_control('luxury_interior_wooproducts_nav',array(
		'type' => 'select',
		'label' => __('Shop Page Products Navigation','luxury-interior'),
		'choices' => array(
			 'Yes' => __('Yes','luxury-interior'),
			 'No' => __('No','luxury-interior'),
		 ),
		'section' => 'luxury_interior_woocommerce_page_settings',
	));	

	$wp_customize->add_setting( 'luxury_interior_single_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'luxury_interior_sanitize_checkbox'
    ) );
    $wp_customize->add_control('luxury_interior_single_page_sidebar',array(
    	'type' => 'checkbox',
       	'label' => __('Check To Enable Single Product Page Sidebar','luxury-interior'),
		'section' => 'luxury_interior_woocommerce_page_settings'
    ));

	// single product page sidebar alignment
    $wp_customize->add_setting('luxury_interior_single_product_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'luxury_interior_sanitize_choices',
	));
	$wp_customize->add_control('luxury_interior_single_product_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Single product Page Sidebar', 'luxury-interior'),
		'section'        => 'luxury_interior_woocommerce_page_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'luxury-interior'),
			'Right Sidebar' => __('Right Sidebar', 'luxury-interior'),
		),
	));	

	$wp_customize->add_setting('luxury_interior_related_product_enable',array(
		'default' => true,
		'sanitize_callback'	=> 'luxury_interior_sanitize_checkbox'
	));
	$wp_customize->add_control('luxury_interior_related_product_enable',array(
		'type' => 'checkbox',
		'label' => __('Check To Enable Related product','luxury-interior'),
		'section' => 'luxury_interior_woocommerce_page_settings',
	));	

	$wp_customize->add_setting( 'luxury_interior_woo_product_img_border_radius', array(
        'default'              => '0',
        'transport'            => 'refresh',
        'sanitize_callback'    => 'luxury_interior_sanitize_integer'
    ) );
    $wp_customize->add_control(new Luxury_Interior_Slider_Custom_Control( $wp_customize, 'luxury_interior_woo_product_img_border_radius',array(
		'label'	=> esc_html__('Woo Product Img Border Radius','luxury-interior'),
		'section'=> 'luxury_interior_woocommerce_page_settings',
		'settings'=>'luxury_interior_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('luxury_interior_products_per_row', array(
	   'default'   => '4',
	   'transport' => 'refresh',
	   'sanitize_callback' => 'luxury_interior_sanitize_integer'
    ));
    $wp_customize->add_control('luxury_interior_products_per_row', array(
	   'label'    => __('Woo Products Per Row', 'luxury-interior'),
	   'section'  => 'luxury_interior_woocommerce_page_settings',
	   'settings' => 'luxury_interior_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('luxury_interior_products_per_page', array(
	  'default'   => '9',
	  'transport' => 'refresh',
	  'sanitize_callback' => 'luxury_interior_sanitize_integer'
   ));
   $wp_customize->add_control('luxury_interior_products_per_page', array(
	  'label'    => __('Woo Products Per Page', 'luxury-interior'),
	  'section'  => 'luxury_interior_woocommerce_page_settings',
	  'settings' => 'luxury_interior_products_per_page',
	  'type'     => 'number',
	  'input_attrs' => array(
		 'min'  => 1,
		 'step' => 1,
	 ),
   ));

    $wp_customize->add_setting('luxury_interior_product_sale_position',array(
        'default' => 'Left',
        'sanitize_callback' => 'luxury_interior_sanitize_choices'
	));
	$wp_customize->add_control('luxury_interior_product_sale_position',array(
        'type' => 'radio',
        'label' => __('Product Sale Position','luxury-interior'),
        'section' => 'luxury_interior_woocommerce_page_settings',
        'choices' => array(
            'Left' => __('Left','luxury-interior'),
            'Right' => __('Right','luxury-interior'),
        ),
	) );   

	//Theme Options
	$wp_customize->add_panel( 'luxury_interior_panel_area', array(
		'priority' => 10,
		'capability' => 'edit_theme_options',
		'title' => __( 'Theme Options Panel', 'luxury-interior' ),
	) );

 	//Site Layout Section
	$wp_customize->add_section('luxury_interior_site_layoutsec',array(
		'title'	=> __('Manage Site Layout Section ','luxury-interior'),
		'description' => __('<p class="sec-title">Manage Site Layout Section</p>','luxury-interior'),
		'priority'	=> 1,
		'panel' => 'luxury_interior_panel_area',
	));

	$wp_customize->add_setting('luxury_interior_preloader',array(
		'default' => false,
		'sanitize_callback' => 'luxury_interior_sanitize_checkbox',
	));
	$wp_customize->add_control( 'luxury_interior_preloader', array(
	   'section'   => 'luxury_interior_site_layoutsec',
	   'label'	=> __('Check to Show preloader','luxury-interior'),
	   'type'      => 'checkbox'
 	));

	$wp_customize->add_setting('luxury_interior_box_layout',array(
		'default' => false,
		'sanitize_callback' => 'luxury_interior_sanitize_checkbox',
	));
	$wp_customize->add_control( 'luxury_interior_box_layout', array(
	   'section'   => 'luxury_interior_site_layoutsec',
	   'label'	=> __('Check to Show Box Layout','luxury-interior'),
	   'type'      => 'checkbox'
 	));	

	$wp_customize->add_setting( 'luxury_interior_layout_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('luxury_interior_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/interior-design-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'luxury_interior_site_layoutsec'
    ));

	//Global Color
	$wp_customize->add_section('luxury_interior_global_color', array(
		'title'    => __('Manage Global Color Section', 'luxury-interior'),
		'panel'    => 'luxury_interior_panel_area',
	));

	$wp_customize->add_setting('luxury_interior_color_scheme_one', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'luxury_interior_color_scheme_one', array(
		'label'    => __('Theme Color', 'luxury-interior'),
		'section'  => 'luxury_interior_global_color',
		'settings' => 'luxury_interior_color_scheme_one',
	)));

	$wp_customize->add_setting( 'luxury_interior_global_color_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('luxury_interior_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/interior-design-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'luxury_interior_global_color'
	));   

	// Header Section
	$wp_customize->add_section('luxury_interior_header_section', array(
        'title' => __('Manage Header Section', 'luxury-interior'),
		'description' => __('<p class="sec-title">Manage Header Section</p>','luxury-interior'),
        'priority' => null,
		'panel' => 'luxury_interior_panel_area',
 	));

 	$wp_customize->add_setting('luxury_interior_topbar',array(
		'default' => false,
		'sanitize_callback' => 'luxury_interior_sanitize_checkbox',
	));
	$wp_customize->add_control( 'luxury_interior_topbar', array(
	   'section'   => 'luxury_interior_header_section',
	   'label'	=> __('Check To Show Topbar','luxury-interior'),
	   'type'      => 'checkbox',
	   'priority' => 1,
 	));

 	$wp_customize->add_setting('luxury_interior_stickyheader',array(
		'default' => false,
		'sanitize_callback' => 'luxury_interior_sanitize_checkbox',
	));
	$wp_customize->add_control( 'luxury_interior_stickyheader', array(
	   'section'   => 'luxury_interior_header_section',
	   'label'	=> __('Check To Show Sticky Header','luxury-interior'),
	   'type'      => 'checkbox',
	   'priority' => 2,
 	));

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

    $wp_customize->add_control( 'luxury_interior_menu_text_transform', array(
        'label'    => __( 'Menu Text Transform', 'luxury-interior' ),
        'section'  => 'luxury_interior_header_section',
        'type'     => 'select',
        'choices'  => array(
			'None'       => __( 'None', 'luxury-interior' ),
            'Capitalize' => __( 'Capitalize', 'luxury-interior' ),
            'Uppercase'  => __( 'Uppercase', 'luxury-interior' ),
            'Lowercase'  => __( 'Lowercase', 'luxury-interior' ),
        ),
    ));

 	// bg color
	$wp_customize->add_setting('luxury_interior_bg_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_bg_color', array(
	   'settings' => 'luxury_interior_bg_color',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('BG Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('luxury_interior_email_address',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_email',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_email_address', array(
	   'settings' => 'luxury_interior_email_address',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('Add Email Address', 'luxury-interior'),
	   'type'      => 'text',
	   'priority' => 3,
	));

	// email icon color
	$wp_customize->add_setting('luxury_interior_emailicon_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_emailicon_color', array(
	   'settings' => 'luxury_interior_emailicon_color',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('Email Icon Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// email text color
	$wp_customize->add_setting('luxury_interior_emailtext_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_emailtext_color', array(
	   'settings' => 'luxury_interior_emailtext_color',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('Email Text Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('luxury_interior_fb_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_fb_link', array(
	   'settings' => 'luxury_interior_fb_link',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('Facebook Link', 'luxury-interior'),
	   'type'      => 'url',
	   'priority' => 4,
	));

	// Facebook color
	$wp_customize->add_setting('luxury_interior_facebook_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_facebook_color', array(
	   'settings' => 'luxury_interior_facebook_color',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('Facebook Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('luxury_interior_twitt_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_twitt_link', array(
	   'settings' => 'luxury_interior_twitt_link',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('Twitter Link', 'luxury-interior'),
	   'type'      => 'url',
	   'priority' => 5,
	));

	// twitter color
	$wp_customize->add_setting('luxury_interior_twitter_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_twitter_color', array(
	   'settings' => 'luxury_interior_twitter_color',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('Twitter Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('luxury_interior_linked_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_linked_link', array(
	   'settings' => 'luxury_interior_linked_link',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('Linkdin Link', 'luxury-interior'),
	   'type'      => 'url',
	   'priority' => 6,
	));

	// linkedin color
	$wp_customize->add_setting('luxury_interior_linkedin_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_linkedin_color', array(
	   'settings' => 'luxury_interior_linkedin_color',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('Linkedin Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('luxury_interior_insta_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_insta_link', array(
	   'settings' => 'luxury_interior_insta_link',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('Instagram Link', 'luxury-interior'),
	   'type'      => 'url',
	   'priority' => 7,
	));

	// instagram color
	$wp_customize->add_setting('luxury_interior_instagram_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_instagram_color', array(
	   'settings' => 'luxury_interior_instagram_color',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('Instagram Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('luxury_interior_youtube_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_youtube_link', array(
	   'settings' => 'luxury_interior_youtube_link',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('Youtube Link', 'luxury-interior'),
	   'type'      => 'url',
	   'priority' => 8,
	));

	// youtube color
	$wp_customize->add_setting('luxury_interior_youtube_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_youtube_color', array(
	   'settings' => 'luxury_interior_youtube_color',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('Youtube Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// menu color
	$wp_customize->add_setting('luxury_interior_menu_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_menu_color', array(
	   'settings' => 'luxury_interior_menu_color',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('Menu Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// actmenuhrv color
	$wp_customize->add_setting('luxury_interior_actmenuhrv_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_actmenuhrv_color', array(
	   'settings' => 'luxury_interior_actmenuhrv_color',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('Active Menu & Hover Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// submenu color
	$wp_customize->add_setting('luxury_interior_submenu_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_submenu_color', array(
	   'settings' => 'luxury_interior_submenu_color',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('Sub Menu Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// submenubg color
	$wp_customize->add_setting('luxury_interior_submenubg_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_submenubg_color', array(
	   'settings' => 'luxury_interior_submenubg_color',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('Sub Menu BG Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// submenuhover color
	$wp_customize->add_setting('luxury_interior_submenuhover_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_submenuhover_color', array(
	   'settings' => 'luxury_interior_submenuhover_color',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('SubMenu Hover Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// submenuhvrbg color
	$wp_customize->add_setting('luxury_interior_submenuhvrbg_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_submenuhvrbg_color', array(
	   'settings' => 'luxury_interior_submenuhvrbg_color',
	   'section'   => 'luxury_interior_header_section',
	   'label' => __('SubMenu Hover BG Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting( 'luxury_interior_header_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('luxury_interior_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/interior-design-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'luxury_interior_header_section'
    ));

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

	//Hide Section
	$wp_customize->add_setting('luxury_interior_hide_categorysec',array(
		'default' => false,
		'sanitize_callback' => 'luxury_interior_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_hide_categorysec', array(
	   'settings' => 'luxury_interior_hide_categorysec',
	   'section'   => 'luxury_interior_one_cols_section',
	   'label'     => __('Check To Enable This Section','luxury-interior'),
	   'type'      => 'checkbox'
	));

	// Add a category dropdown Slider Coloumn
	$wp_customize->add_setting( 'luxury_interior_slidersection', array(
		'default'	=> '0',
		'sanitize_callback'	=> 'absint'
	) );
	$wp_customize->add_control( new Luxury_Interior_Category_Dropdown_Custom_Control( $wp_customize, 'luxury_interior_slidersection', array(
		'section' => 'luxury_interior_one_cols_section',
	   'label'     => __('Select Category to display Slider','luxury-interior'),
		'settings'   => 'luxury_interior_slidersection',
	) ) );

	$wp_customize->add_setting('luxury_interior_button_text',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_button_text', array(
	   'settings' => 'luxury_interior_button_text',
	   'section'   => 'luxury_interior_one_cols_section',
	   'label' => __('Add Button Text', 'luxury-interior'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('luxury_interior_button_link_slider',array(
        'default'=> '',
        'sanitize_callback' => 'esc_url_raw'
    ));
    $wp_customize->add_control('luxury_interior_button_link_slider',array(
        'label' => esc_html__('Add Button Link','luxury-interior'),
        'section'=> 'luxury_interior_one_cols_section',
        'type'=> 'url'
    ));

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

	// slider curve color
	$wp_customize->add_setting('luxury_interior_slider_curve_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_slider_curve_color', array(
	   'settings' => 'luxury_interior_slider_curve_color',
	   'section'   => 'luxury_interior_one_cols_section',
	   'label' => __('Curve Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// slider title color
	$wp_customize->add_setting('luxury_interior_slider_title_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_slider_title_color', array(
	   'settings' => 'luxury_interior_slider_title_color',
	   'section'   => 'luxury_interior_one_cols_section',
	   'label' => __('Title Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// slider buttontext color
	$wp_customize->add_setting('luxury_interior_slider_buttontext_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_slider_buttontext_color', array(
	   'settings' => 'luxury_interior_slider_buttontext_color',
	   'section'   => 'luxury_interior_one_cols_section',
	   'label' => __('Button Text Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// slider button color
	$wp_customize->add_setting('luxury_interior_slider_button_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_slider_button_color', array(
	   'settings' => 'luxury_interior_slider_button_color',
	   'section'   => 'luxury_interior_one_cols_section',
	   'label' => __('Button Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// slider buttonhrv color
	$wp_customize->add_setting('luxury_interior_slider_buttonhrv_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_slider_buttonhrv_color', array(
	   'settings' => 'luxury_interior_slider_buttonhrv_color',
	   'section'   => 'luxury_interior_one_cols_section',
	   'label' => __('Button Hover Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// slider arrow color
	$wp_customize->add_setting('luxury_interior_slider_arrow_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_slider_arrow_color', array(
	   'settings' => 'luxury_interior_slider_arrow_color',
	   'section'   => 'luxury_interior_one_cols_section',
	   'label' => __('Arrow Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting( 'luxury_interior_slider_settings_upgraded_features',array(
	  'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('luxury_interior_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/interior-design-wordpress-theme') ." '>Upgrade to Pro</a></span>",
	    'section' => 'luxury_interior_one_cols_section'
	));

	// Services Section
	$wp_customize->add_section('luxury_interior_below_slider_section', array(
		'title'	=> __('Manage Services Section','luxury-interior'),
		'description'	=> __('<p class="sec-title">Manage Services Section</p> Select Pages from the dropdown for Services.','luxury-interior'),
		'priority'	=> null,
		'panel' => 'luxury_interior_panel_area',
	));

	$wp_customize->add_setting('luxury_interior_disabled_pgboxes',array(
		'default' => false,
		'sanitize_callback' => 'luxury_interior_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_disabled_pgboxes', array(
	   'settings' => 'luxury_interior_disabled_pgboxes',
	   'section'   => 'luxury_interior_below_slider_section',
	   'label'     => __('Check To Enable This Section','luxury-interior'),
	   'type'      => 'checkbox',
	   'priority'	=> 1,
	));

	// Add a category dropdown Slider Coloumn
	$wp_customize->add_setting( 'luxury_interior_services_cat', array(
		'default'	=> '0',
		'sanitize_callback'	=> 'absint'
	) );
	$wp_customize->add_control( new Luxury_Interior_Category_Dropdown_Custom_Control( $wp_customize, 'luxury_interior_services_cat', array(
		'section' => 'luxury_interior_below_slider_section',
	   'label'     => __('Select Category to display Services','luxury-interior'),
		'settings'   => 'luxury_interior_services_cat',
	) ) );

	$wp_customize->add_setting('luxury_interior_headingtext1',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_headingtext1', array(
	   'settings' => 'luxury_interior_headingtext1',
	   'section'   => 'luxury_interior_below_slider_section',
	   'label' => __('Add Heading 1', 'luxury-interior'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('luxury_interior_headingtext2',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_headingtext2', array(
	   'settings' => 'luxury_interior_headingtext2',
	   'section'   => 'luxury_interior_below_slider_section',
	   'label' => __('Add Heading 2', 'luxury-interior'),
	   'type'      => 'text'
	));

	// heading 1 color
	$wp_customize->add_setting('luxury_interior_service_heading1_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_service_heading1_color', array(
	   'settings' => 'luxury_interior_service_heading1_color',
	   'section'   => 'luxury_interior_below_slider_section',
	   'label' => __('Heading 1 Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// heading 2 color
	$wp_customize->add_setting('luxury_interior_service_heading2_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_service_heading2_color', array(
	   'settings' => 'luxury_interior_service_heading2_color',
	   'section'   => 'luxury_interior_below_slider_section',
	   'label' => __('Heading 2 Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// heading content color
	$wp_customize->add_setting('luxury_interior_service_headingcontent_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_service_headingcontent_color', array(
	   'settings' => 'luxury_interior_service_headingcontent_color',
	   'section'   => 'luxury_interior_below_slider_section',
	   'label' => __('Content Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// service border 1 color
	$wp_customize->add_setting('luxury_interior_service_border1_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_service_border1_color', array(
	   'settings' => 'luxury_interior_service_border1_color',
	   'section'   => 'luxury_interior_below_slider_section',
	   'label' => __('Border 1 Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// service border 2 color
	$wp_customize->add_setting('luxury_interior_service_border2_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_service_border2_color', array(
	   'settings' => 'luxury_interior_service_border2_color',
	   'section'   => 'luxury_interior_below_slider_section',
	   'label' => __('Border 2 Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// service title color
	$wp_customize->add_setting('luxury_interior_service_title_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_service_title_color', array(
	   'settings' => 'luxury_interior_service_title_color',
	   'section'   => 'luxury_interior_below_slider_section',
	   'label' => __('Title Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// service description color
	$wp_customize->add_setting('luxury_interior_service_description_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_service_description_color', array(
	   'settings' => 'luxury_interior_service_description_color',
	   'section'   => 'luxury_interior_below_slider_section',
	   'label' => __('Description Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// service buttontext color
	$wp_customize->add_setting('luxury_interior_service_buttontext_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_service_buttontext_color', array(
	   'settings' => 'luxury_interior_service_buttontext_color',
	   'section'   => 'luxury_interior_below_slider_section',
	   'label' => __('Button Text Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// service buttontexthover color
	$wp_customize->add_setting('luxury_interior_service_buttontexthover_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_service_buttontexthover_color', array(
	   'settings' => 'luxury_interior_service_buttontexthover_color',
	   'section'   => 'luxury_interior_below_slider_section',
	   'label' => __('Button Text Hover Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// service button color
	$wp_customize->add_setting('luxury_interior_service_button_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_service_button_color', array(
	   'settings' => 'luxury_interior_service_button_color',
	   'section'   => 'luxury_interior_below_slider_section',
	   'label' => __('Button Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// service buttonhover color
	$wp_customize->add_setting('luxury_interior_service_buttonhover_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_service_buttonhover_color', array(
	   'settings' => 'luxury_interior_service_buttonhover_color',
	   'section'   => 'luxury_interior_below_slider_section',
	   'label' => __('Button Hover Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting( 'luxury_interior_secondsec_settings_upgraded_features',array(
	  'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('luxury_interior_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/interior-design-wordpress-theme') ." '>Upgrade to Pro</a></span>",
	  'section' => 'luxury_interior_below_slider_section'
	));

	//Blog post
	$wp_customize->add_section('luxury_interior_blog_post_settings',array(
        'title' => __('Manage Post Section', 'luxury-interior'),
        'priority' => null,
        'panel' => 'luxury_interior_panel_area'
    ) );

	$wp_customize->add_setting('luxury_interior_metafields_date', array(
	    'default' => true,
	    'sanitize_callback' => 'luxury_interior_sanitize_checkbox',
	));
	$wp_customize->add_control('luxury_interior_metafields_date', array(
	    'settings' => 'luxury_interior_metafields_date', 
	    'section'   => 'luxury_interior_blog_post_settings',
	    'label'     => __('Check to Enable Date', 'luxury-interior'),
	    'type'      => 'checkbox',
	));

	$wp_customize->add_setting('luxury_interior_metafields_comments', array(
		'default' => true,
		'sanitize_callback' => 'luxury_interior_sanitize_checkbox',
	));	
	$wp_customize->add_control('luxury_interior_metafields_comments', array(
		'settings' => 'luxury_interior_metafields_comments',
		'section'  => 'luxury_interior_blog_post_settings',
		'label'    => __('Check to Enable Comments', 'luxury-interior'),
		'type'     => 'checkbox',
	));

	$wp_customize->add_setting('luxury_interior_metafields_author', array(
		'default' => true,
		'sanitize_callback' => 'luxury_interior_sanitize_checkbox',
	));
	$wp_customize->add_control('luxury_interior_metafields_author', array(
		'settings' => 'luxury_interior_metafields_author',
		'section'  => 'luxury_interior_blog_post_settings',
		'label'    => __('Check to Enable Author', 'luxury-interior'),
		'type'     => 'checkbox',
	));		

	$wp_customize->add_setting('luxury_interior_metafields_time', array(
		'default' => true,
		'sanitize_callback' => 'luxury_interior_sanitize_checkbox',
	));
	$wp_customize->add_control('luxury_interior_metafields_time', array(
		'settings' => 'luxury_interior_metafields_time',
		'section'  => 'luxury_interior_blog_post_settings',
		'label'    => __('Check to Enable Time', 'luxury-interior'),
		'type'     => 'checkbox',
	));	

	$wp_customize->add_setting('luxury_interior_metabox_seperator',array(
		'default' => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luxury_interior_metabox_seperator',array(
		'type' => 'text',
		'label' => __('Metabox Seperator','luxury-interior'),
		'description' => __('Ex: "/", "|", "-", ...','luxury-interior'),
		'section' => 'luxury_interior_blog_post_settings'
	)); 

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

	$wp_customize->add_setting('luxury_interior_blog_post_description_option',array(
    	'default'   => 'Full Content', 
        'sanitize_callback' => 'luxury_interior_sanitize_choices'
	));
	$wp_customize->add_control('luxury_interior_blog_post_description_option',array(
        'type' => 'radio',
        'label' => __('Post Description Length','luxury-interior'),
        'section' => 'luxury_interior_blog_post_settings',
        'choices' => array(
            'No Content' => __('No Content','luxury-interior'),
            'Excerpt Content' => __('Excerpt Content','luxury-interior'),
            'Full Content' => __('Full Content','luxury-interior'),
        ),
	) );

	$wp_customize->add_setting('luxury_interior_blog_post_thumb',array(
        'sanitize_callback' => 'luxury_interior_sanitize_checkbox',
        'default'           => 1,
    ));
    $wp_customize->add_control('luxury_interior_blog_post_thumb',array(
        'type'        => 'checkbox',
        'label'       => esc_html__('Show / Hide Blog Post Thumbnail', 'luxury-interior'),
        'section'     => 'luxury_interior_blog_post_settings',
    ));

	$wp_customize->add_setting( 'luxury_interior_post_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('luxury_interior_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/interior-design-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'luxury_interior_blog_post_settings'
    ));

	//Single Post Settings
	$wp_customize->add_section('luxury_interior_single_post_settings',array(
		'title' => __('Manage Single Post Section', 'luxury-interior'),
		'priority' => null,
		'panel' => 'luxury_interior_panel_area'
	));

	$wp_customize->add_setting('luxury_interior_single_post_date',array(
		'default' => true,
		'sanitize_callback'	=> 'luxury_interior_sanitize_checkbox'
	));
	$wp_customize->add_control('luxury_interior_single_post_date',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Date ','luxury-interior'),
		'section' => 'luxury_interior_single_post_settings'
	));	

	$wp_customize->add_setting('luxury_interior_single_post_author',array(
		'default' => true,
		'sanitize_callback'	=> 'luxury_interior_sanitize_checkbox'
	));
	$wp_customize->add_control('luxury_interior_single_post_author',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Author','luxury-interior'),
		'section' => 'luxury_interior_single_post_settings'
	));

	$wp_customize->add_setting('luxury_interior_single_post_comment',array(
		'default' => true,
		'sanitize_callback'	=> 'luxury_interior_sanitize_checkbox'
	));
	$wp_customize->add_control('luxury_interior_single_post_comment',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Comments','luxury-interior'),
		'section' => 'luxury_interior_single_post_settings'
	));	

	$wp_customize->add_setting('luxury_interior_single_post_time',array(
		'default' => true,
		'sanitize_callback'	=> 'luxury_interior_sanitize_checkbox'
	));
	$wp_customize->add_control('luxury_interior_single_post_time',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Time','luxury-interior'),
		'section' => 'luxury_interior_single_post_settings'
	));	

	$wp_customize->add_setting('luxury_interior_single_post_metabox_seperator',array(
		'default' => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luxury_interior_single_post_metabox_seperator',array(
		'type' => 'text',
		'label' => __('Metabox Seperator','luxury-interior'),
		'description' => __('Ex: "/", "|", "-", ...','luxury-interior'),
		'section' => 'luxury_interior_single_post_settings'
	)); 

	$wp_customize->add_setting('luxury_interior_sidebar_single_post_layout',array(
    	'default' => 'right',
    	 'sanitize_callback' => 'luxury_interior_sanitize_choices'
	));
	$wp_customize->add_control('luxury_interior_sidebar_single_post_layout',array(
   		'type' => 'radio',
    	'label'     => __('Single post sidebar layout', 'luxury-interior'),
     	'section' => 'luxury_interior_single_post_settings',
     	'choices' => array(
			'left' => __('Left','luxury-interior'),
			'right' => __('Right','luxury-interior'),
			'full' => __('No Sidebar','luxury-interior'),
     ),
	));

	$wp_customize->add_setting( 'luxury_interior_single_post_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('luxury_interior_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/interior-design-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'luxury_interior_single_post_settings'
	)); 

	//Page Settings
	$wp_customize->add_section('luxury_interior_page_settings',array(
		'title' => __('Manage Page Section', 'luxury-interior'),
		'priority' => null,
		'panel' => 'luxury_interior_panel_area'
	));

	// Add Settings and Controls for Page Layout
	$wp_customize->add_setting('luxury_interior_sidebar_page_layout',array(
		'default' => 'full',
			'sanitize_callback' => 'luxury_interior_sanitize_choices'
	));
	$wp_customize->add_control('luxury_interior_sidebar_page_layout',array(
		'type' => 'radio',
		'label'     => __('Theme Page Sidebar Position', 'luxury-interior'),
		'section' => 'luxury_interior_page_settings',
		'choices' => array(
			'left' => __('Left','luxury-interior'),
			'right' => __('Right','luxury-interior'),
			'full' => __('No Sidebar','luxury-interior')
	),
	));	

	$wp_customize->add_setting( 'luxury_interior_page_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('luxury_interior_page_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/interior-design-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'luxury_interior_page_settings'
	));

	// 404 Page Settings
	$wp_customize->add_section('luxury_interior_page_not_found', array(
		'title'	=> __('Manage 404 Page Section','luxury-interior'),
		'priority'	=> null,
		'panel' => 'luxury_interior_panel_area',
	));
	
	$wp_customize->add_setting('luxury_interior_page_not_found_heading',array(
		'default'=> __('404 Not Found','luxury-interior'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luxury_interior_page_not_found_heading',array(
		'label'	=> __('404 Heading','luxury-interior'),
		'section'=> 'luxury_interior_page_not_found',
		'type'=> 'text'
	));

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

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

	$wp_customize->add_setting('luxury_interior_page_not_found_btn',array(
		'default' => 'Homepage',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_page_not_found_btn', array(
	   'settings' => 'luxury_interior_page_not_found_btn',
	   'section'   => 'luxury_interior_page_not_found',
	   'label' => __('404 Button', 'luxury-interior'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting( 'luxury_interior_page_not_found_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('luxury_interior_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('https://www.theclassictemplates.com/products/interior-design-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'luxury_interior_page_not_found'
	));

	// Footer Section
	$wp_customize->add_section('luxury_interior_footer', array(
		'title'	=> __('Manage Footer Section','luxury-interior'),
		'description'	=> __('<p class="sec-title">Manage Footer Section</p>','luxury-interior'),
		'priority'	=> null,
		'panel' => 'luxury_interior_panel_area',
	));

	$wp_customize->add_setting('luxury_interior_footer_widget', array(
	    'default' => true,
	    'sanitize_callback' => 'luxury_interior_sanitize_checkbox',
	));
	$wp_customize->add_control('luxury_interior_footer_widget', array(
	    'settings' => 'luxury_interior_footer_widget', // Corrected setting name
	    'section'   => 'luxury_interior_footer',
	    'label'     => __('Check to Enable Footer Widget', 'luxury-interior'),
	    'type'      => 'checkbox',
	));

	$wp_customize->add_setting('luxury_interior_footer_bg_image',array(
        'default'   => '',
        'sanitize_callback' => 'esc_url_raw',
    ));
    $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'luxury_interior_footer_bg_image',array(
        'label' => __('Footer Background Image','luxury-interior'),
        'section' => 'luxury_interior_footer',
    )));

	$wp_customize->add_setting('luxury_interior_footer_img_position',array(
		'default' => 'center center',
		'transport' => 'refresh',
		'sanitize_callback' => 'luxury_interior_sanitize_choices'
	));
	$wp_customize->add_control('luxury_interior_footer_img_position',array(
		'type' => 'select',
		'label' => __('Footer Image Position','luxury-interior'),
		'section' => 'luxury_interior_footer',
		'choices' 	=> array(
			'center center'   => esc_html__( 'Center', 'luxury-interior' ),
			'center top'   => esc_html__( 'Top', 'luxury-interior' ),
			'left center'   => esc_html__( 'Left', 'luxury-interior' ),
			'right center'   => esc_html__( 'Right', 'luxury-interior' ),
			'center bottom'   => esc_html__( 'Bottom', 'luxury-interior' ),
		),
	));	

	$wp_customize->add_setting('luxury_interior_copyright_line',array(
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control( 'luxury_interior_copyright_line', array(
	   'section' 	=> 'luxury_interior_footer',
	   'label'	 	=> __('Copyright Line','luxury-interior'),
	   'type'    	=> 'text',
	   'priority' 	=> null,
    ));

	$wp_customize->add_setting('luxury_interior_copyright_link',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
	));	
	$wp_customize->add_control( 'luxury_interior_copyright_link', array(
	   'section' 	=> 'luxury_interior_footer',
	   'label'	 	=> __('Copyright Link','luxury-interior'),
	   'type'    	=> 'text',
	   'priority' 	=> null,
    ));

	// FOOTER BG COLOR
	$wp_customize->add_setting('luxury_interior_footerbg_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_footerbg_color', array(
		'settings' => 'luxury_interior_footerbg_color',
		'section'   => 'luxury_interior_footer',
		'label' => __('BG Color', 'luxury-interior'),
		'type'      => 'color'
	));

	// FOOTER copyrightbg COLOR
	$wp_customize->add_setting('luxury_interior_footer_copyrightbg_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_footer_copyrightbg_color', array(
	   'settings' => 'luxury_interior_footer_copyrightbg_color',
	   'section'   => 'luxury_interior_footer',
	   'label' => __('Copyright BG Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// FOOTER copyrighthrv COLOR
	$wp_customize->add_setting('luxury_interior_footer_copyrighthrv_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_footer_copyrighthrv_color', array(
	   'settings' => 'luxury_interior_footer_copyrighthrv_color',
	   'section'   => 'luxury_interior_footer',
	   'label' => __('Copyright Hover Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// FOOTER heading COLOR
	$wp_customize->add_setting('luxury_interior_footer_heading_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_footer_heading_color', array(
	   'settings' => 'luxury_interior_footer_heading_color',
	   'section'   => 'luxury_interior_footer',
	   'label' => __('Heading Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// FOOTER border COLOR
	$wp_customize->add_setting('luxury_interior_footer_border_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_footer_border_color', array(
	   'settings' => 'luxury_interior_footer_border_color',
	   'section'   => 'luxury_interior_footer',
	   'label' => __('Border Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// FOOTER list COLOR
	$wp_customize->add_setting('luxury_interior_footer_list_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_footer_list_color', array(
	   'settings' => 'luxury_interior_footer_list_color',
	   'section'   => 'luxury_interior_footer',
	   'label' => __('List Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// FOOTER listhover COLOR
	$wp_customize->add_setting('luxury_interior_footer_listhover_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_footer_listhover_color', array(
	   'settings' => 'luxury_interior_footer_listhover_color',
	   'section'   => 'luxury_interior_footer',
	   'label' => __('Listhover Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	// FOOTER text COLOR
	$wp_customize->add_setting('luxury_interior_footer_text_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_footer_text_color', array(
	   'settings' => 'luxury_interior_footer_text_color',
	   'section'   => 'luxury_interior_footer',
	   'label' => __('Text Color', 'luxury-interior'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('luxury_interior_scroll_hide', array(
        'default' => true,
        'sanitize_callback' => 'luxury_interior_sanitize_checkbox'
    ));
    $wp_customize->add_control( new WP_Customize_Control($wp_customize,'luxury_interior_scroll_hide',array(
        'label'          => __( 'Check To Show Scroll To Top', 'luxury-interior' ),
        'section'        => 'luxury_interior_footer',
        'settings'       => 'luxury_interior_scroll_hide',
        'type'           => 'checkbox',
    )));

    $wp_customize->add_setting('luxury_interior_scroll_position',array(
        'default' => 'Right',
        'sanitize_callback' => 'luxury_interior_sanitize_choices'
    ));
    $wp_customize->add_control('luxury_interior_scroll_position',array(
        'type' => 'radio',
        'section' => 'luxury_interior_footer',
        'label'	 	=> __('Scroll To Top Positions','luxury-interior'),
        'choices' => array(
            'Right' => __('Right','luxury-interior'),
            'Left' => __('Left','luxury-interior'),
            'Center' => __('Center','luxury-interior')
        ),
    ) );

	$wp_customize->add_setting('luxury_interior_scroll_text',array(
		'default'	=> __('TOP','luxury-interior'),
		'sanitize_callback'	=> 'sanitize_text_field',
	));	
	$wp_customize->add_control('luxury_interior_scroll_text',array(
		'label'	=> __('Scroll To Top Button Text','luxury-interior'),
		'section'	=> 'luxury_interior_footer',
		'type'		=> 'text'
	));

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

	$wp_customize->add_setting('luxury_interior_footer_widget_areas',array(
		'default'           => 4,
		'sanitize_callback' => 'luxury_interior_sanitize_choices',
	));
	$wp_customize->add_control('luxury_interior_footer_widget_areas',array(
		'type'        => 'radio',
		'section' => 'luxury_interior_footer',
		'label'       => __('Footer widget area', 'luxury-interior'),
		'choices' => array(
		   '1'     => __('One', 'luxury-interior'),
		   '2'     => __('Two', 'luxury-interior'),
		   '3'     => __('Three', 'luxury-interior'),
		   '4'     => __('Four', 'luxury-interior')
		),
	));
    // Progress Bar
	$wp_customize->add_setting('luxury_interior_progress_bar', array(
		'default' => false,
		'sanitize_callback' => 'luxury_interior_sanitize_checkbox',
	));

	$wp_customize->add_control(
		new WP_Customize_Control(
			$wp_customize,
			'luxury_interior_progress_bar',
			array(
				'label' => __('Check To Show Progress Bar', 'luxury-interior'),
				'section' => 'luxury_interior_footer',
				'settings' => 'luxury_interior_progress_bar',
				'type' => 'checkbox',
			)
		)
	);
    // Sticky Copyright Enable / Disable
	$wp_customize->add_setting('luxury_interior_sticky_copyright_enable',array(
		'default' => false,
		'sanitize_callback' => 'luxury_interior_sanitize_checkbox',
	));
	$wp_customize->add_control( 'luxury_interior_sticky_copyright_enable', array(
	   'section'   => 'luxury_interior_footer',
	   'label'	=> __('Check To Show Sticky Copyright','luxury-interior'),
	   'type'      => 'checkbox'
 	));
    $wp_customize->add_setting( 'luxury_interior_footer_settings_upgraded_features',array(
	  'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('luxury_interior_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/interior-design-wordpress-theme') ." '>Upgrade to Pro</a></span>",
	    'section' => 'luxury_interior_footer'
	));

	// Footer Social Section
	$wp_customize->add_section('luxury_interior_footer_social_icons', array(
		'title'	=> __('Manage Footer Social Section','luxury-interior'),
		'description'	=> __('<p class="sec-title">Manage Footer Social Section</p>','luxury-interior'),
		'priority'	=> null,
		'panel' => 'luxury_interior_panel_area',
	));

	$wp_customize->add_setting('luxury_interior_footer_facebook_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_footer_facebook_link', array(
		'settings' => 'luxury_interior_footer_facebook_link',
		'section'   => 'luxury_interior_footer_social_icons',
		'label' => __('Facebook Link', 'luxury-interior'),
		'type'      => 'url'
	));

	$wp_customize->add_setting('luxury_interior_footer_twitter_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_footer_twitter_link', array(
		'settings' => 'luxury_interior_footer_twitter_link',
		'section'   => 'luxury_interior_footer_social_icons',
		'label' => __('Twitter Link', 'luxury-interior'),
		'type'      => 'url'
	));

	$wp_customize->add_setting('luxury_interior_footer_linkedin_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_footer_linkedin_link', array(
		'settings' => 'luxury_interior_footer_linkedin_link',
		'section'   => 'luxury_interior_footer_social_icons',
		'label' => __('Linkedin Link', 'luxury-interior'),
		'type'      => 'url'
	));
	
	$wp_customize->add_setting('luxury_interior_footer_instagram_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_footer_instagram_link', array(
		'settings' => 'luxury_interior_footer_instagram_link',
		'section'   => 'luxury_interior_footer_social_icons',
		'label' => __('Instagram Link', 'luxury-interior'),
		'type'      => 'url'
	));

	$wp_customize->add_setting('luxury_interior_footer_youtube_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'luxury_interior_footer_youtube_link', array(
		'settings' => 'luxury_interior_footer_youtube_link',
		'section'   => 'luxury_interior_footer_social_icons',
		'label' => __('Youtube Link', 'luxury-interior'),
		'type'      => 'url'
	));

	$wp_customize->add_setting( 'luxury_interior_footer_social_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('luxury_interior_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/interior-design-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'luxury_interior_footer_social_icons'
	));

	// Google Fonts
    $wp_customize->add_section( 'luxury_interior_google_fonts_section', array(
		'title'       => __( 'Google Fonts', 'luxury-interior' ),
		'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( 'luxury_interior_headings_fonts', array(
		'sanitize_callback' => 'luxury_interior_sanitize_fonts',
	));
	$wp_customize->add_control( 'luxury_interior_headings_fonts', array(
		'type' => 'select',
		'description' => __('Select your desired font for the headings.', 'luxury-interior'),
		'section' => 'luxury_interior_google_fonts_section',
		'choices' => $font_choices
	));

	$wp_customize->add_setting( 'luxury_interior_body_fonts', array(
		'sanitize_callback' => 'luxury_interior_sanitize_fonts'
	));
	$wp_customize->add_control( 'luxury_interior_body_fonts', array(
		'type' => 'select',
		'description' => __( 'Select your desired font for the body.', 'luxury-interior' ),
		'section' => 'luxury_interior_google_fonts_section',
		'choices' => $font_choices
	));
}
add_action( 'customize_register', 'luxury_interior_customize_register' );

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