<?php
/**
 * Classic Wedding Theme Customizer
 *
 * @package Classic Wedding
 */

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

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

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

	wp_enqueue_style('classic-wedding-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';

	//Logo
    $wp_customize->add_setting('classic_wedding_logo_width',array(
		'default'=> '',
		'transport' => 'refresh',
		'sanitize_callback' => 'classic_wedding_sanitize_integer'
	));
	$wp_customize->add_control(new Classic_Wedding_Slider_Custom_Control( $wp_customize, 'classic_wedding_logo_width',array(
		'label'	=> esc_html__('Logo Width','classic-wedding'),
		'section'=> 'title_tagline',
		'settings'=>'classic_wedding_logo_width',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 300,
        ),
	)));

	$wp_customize->add_setting('classic_wedding_title_enable',array(
		'default' => false,
		'sanitize_callback' => 'classic_wedding_sanitize_checkbox',
	));
	$wp_customize->add_control( 'classic_wedding_title_enable', array(
	   'settings' => 'classic_wedding_title_enable',
	   'section'   => 'title_tagline',
	   'label'     => __('Enable Site Title','classic-wedding'),
	   'type'      => 'checkbox'
	));

	// sitetitle color
	$wp_customize->add_setting('classic_wedding_sitetitle_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_sitetitle_col', array(
	   'settings' => 'classic_wedding_sitetitle_col',
	   'section'   => 'title_tagline',
	   'label' => __('Site Title Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('classic_wedding_tagline_enable',array(
		'default' => false,
		'sanitize_callback' => 'classic_wedding_sanitize_checkbox',
	));
	$wp_customize->add_control( 'classic_wedding_tagline_enable', array(
	   'settings' => 'classic_wedding_tagline_enable',
	   'section'   => 'title_tagline',
	   'label'     => __('Enable Site Tagline','classic-wedding'),
	   'type'      => 'checkbox'
	));

	// sitetagline color
	$wp_customize->add_setting('classic_wedding_sitetagline_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_sitetagline_col', array(
	   'settings' => 'classic_wedding_sitetagline_col',
	   'section'   => 'title_tagline',
	   'label' => __('Site Tagline Color', 'classic-wedding'),
	   'type'      => 'color'
	));

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

	$wp_customize->add_setting('classic_wedding_shop_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'classic_wedding_sanitize_checkbox'
	));
	$wp_customize->add_control('classic_wedding_shop_page_sidebar',array(
		'type' => 'checkbox',
		'label' => __(' Check To Enable Shop page sidebar','classic-wedding'),
		'section' => 'classic_wedding_woocommerce_page_settings',
	));

    // shop page sidebar alignment
    $wp_customize->add_setting('classic_wedding_shop_page_sidebar_position', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'classic_wedding_sanitize_choices',
	));
	$wp_customize->add_control('classic_wedding_shop_page_sidebar_position',array(
		'type'           => 'radio',
		'label'          => __('Shop Page Sidebar', 'classic-wedding'),
		'section'        => 'classic_wedding_woocommerce_page_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'classic-wedding'),
			'Right Sidebar' => __('Right Sidebar', 'classic-wedding'),
		),
	));	 

	$wp_customize->add_setting('classic_wedding_wooproducts_nav',array(
		'default' => 'Yes',
		'sanitize_callback'	=> 'classic_wedding_sanitize_choices'
	));
	$wp_customize->add_control('classic_wedding_wooproducts_nav',array(
		'type' => 'select',
		'label' => __('Shop Page Products Navigation','classic-wedding'),
		'choices' => array(
			 'Yes' => __('Yes','classic-wedding'),
			 'No' => __('No','classic-wedding'),
		 ),
		'section' => 'classic_wedding_woocommerce_page_settings',
	));

	 $wp_customize->add_setting( 'classic_wedding_single_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'classic_wedding_sanitize_checkbox'
    ) );
    $wp_customize->add_control('classic_wedding_single_page_sidebar',array(
    	'type' => 'checkbox',
       	'label' => __('Check To Enable Single Product Page Sidebar','classic-wedding'),
		'section' => 'classic_wedding_woocommerce_page_settings'
    ));

	// single product page sidebar alignment
    $wp_customize->add_setting('classic_wedding_single_product_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'classic_wedding_sanitize_choices',
	));
	$wp_customize->add_control('classic_wedding_single_product_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Single product Page Sidebar', 'classic-wedding'),
		'section'        => 'classic_wedding_woocommerce_page_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'classic-wedding'),
			'Right Sidebar' => __('Right Sidebar', 'classic-wedding'),
		),
	));	

	$wp_customize->add_setting('classic_wedding_related_product_enable',array(
		'default' => true,
		'sanitize_callback'	=> 'classic_wedding_sanitize_checkbox'
	));
	$wp_customize->add_control('classic_wedding_related_product_enable',array(
		'type' => 'checkbox',
		'label' => __('Check To Enable Related product','classic-wedding'),
		'section' => 'classic_wedding_woocommerce_page_settings',
	));

	$wp_customize->add_setting( 'classic_wedding_woo_product_img_border_radius', array(
        'default'              => '0',
        'transport'            => 'refresh',
        'sanitize_callback'    => 'classic_wedding_sanitize_integer'
    ) );
    $wp_customize->add_control(new Classic_Wedding_Slider_Custom_Control( $wp_customize, 'classic_wedding_woo_product_img_border_radius',array(
		'label'	=> esc_html__('Woo Product Img Border Radius','classic-wedding'),
		'section'=> 'classic_wedding_woocommerce_page_settings',
		'settings'=>'classic_wedding_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_wedding_products_per_row', array(
	   'default'   => '4',
	   'transport' => 'refresh',
	   'sanitize_callback' => 'classic_wedding_sanitize_integer'
    ));
    $wp_customize->add_control('classic_wedding_products_per_row', array(
	   'label'    => __('Woo Products Per Row', 'classic-wedding'),
	   'section'  => 'classic_wedding_woocommerce_page_settings',
	   'settings' => 'classic_wedding_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_wedding_products_per_page', array(
	  'default'   => '9',
	  'transport' => 'refresh',
	  'sanitize_callback' => 'classic_wedding_sanitize_integer'
   ));
   $wp_customize->add_control('classic_wedding_products_per_page', array(
	  'label'    => __('Woo Products Per Page', 'classic-wedding'),
	  'section'  => 'classic_wedding_woocommerce_page_settings',
	  'settings' => 'classic_wedding_products_per_page',
	  'type'     => 'number',
	  'input_attrs' => array(
		 'min'  => 1,
		 'step' => 1,
	 ),
   ));

    $wp_customize->add_setting('classic_wedding_product_sale_position',array(
        'default' => 'Left',
        'sanitize_callback' => 'classic_wedding_sanitize_choices'
	));
	$wp_customize->add_control('classic_wedding_product_sale_position',array(
        'type' => 'radio',
        'label' => __('Product Sale Position','classic-wedding'),
        'section' => 'classic_wedding_woocommerce_page_settings',
        'choices' => array(
            'Left' => __('Left','classic-wedding'),
            'Right' => __('Right','classic-wedding'),
        ),
	) );    

	//Theme Options
	$wp_customize->add_panel( 'classic_wedding_panel_area', array(
		'priority' => 10,
		'capability' => 'edit_theme_options',
		'title' => __( 'Theme Options Panel', 'classic-wedding' ),
	) );

	//Site Layout Section
	$wp_customize->add_section('classic_wedding_site_layoutsec',array(
		'title'	=> __('Manage Site Layout Section ','classic-wedding'),
		'description' => __('<p class="sec-title">Manage Site Layout Section</p>','classic-wedding'),
		'priority'	=> 1,
		'panel' => 'classic_wedding_panel_area',
	));

 	$wp_customize->add_setting('classic_wedding_preloader',array(
		'default' => false,
		'sanitize_callback' => 'classic_wedding_sanitize_checkbox',
	));
	$wp_customize->add_control( 'classic_wedding_preloader', array(
	   'section'   => 'classic_wedding_site_layoutsec',
	   'label'	=> __('Check to Show preloader','classic-wedding'),
	   'type'      => 'checkbox'
 	));

	$wp_customize->add_setting('classic_wedding_box_layout',array(
		'default' => false,
		'sanitize_callback' => 'classic_wedding_sanitize_checkbox',
	));
	$wp_customize->add_control( 'classic_wedding_box_layout', array(
	   'section'   => 'classic_wedding_site_layoutsec',
	   'label'	=> __('Check to Show Box Layout','classic-wedding'),
	   'type'      => 'checkbox'
 	));	

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

	$wp_customize->add_setting( 'classic_wedding_layout_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('classic_wedding_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/wedding-wordpress-theme') ." '>Upgrade to Pro</a></span>",
	  'section' => 'classic_wedding_site_layoutsec'
    ));

	//Global Color
	$wp_customize->add_section('classic_wedding_global_color', array(
		'title'    => __('Manage Global Color Section', 'classic-wedding'),
		'panel'    => 'classic_wedding_panel_area',
	));

	$wp_customize->add_setting('classic_wedding_color_scheme_gradiant1', array(
		'default'           => '#ceb08e',
		'sanitize_callback' => 'sanitize_hex_color',
	));	
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'classic_wedding_color_scheme_gradiant1', array(
		'label'    => __('Theme Color', 'classic-wedding'),
		'section'  => 'classic_wedding_global_color',
		'settings' => 'classic_wedding_color_scheme_gradiant1',
	)));	

	$wp_customize->add_setting('classic_wedding_color_scheme_gradiant2', array(
		'default'           => '#f3efed',
		'sanitize_callback' => 'sanitize_hex_color',
	));	
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'classic_wedding_color_scheme_gradiant2', array(
		'label'    => __('Theme Color', 'classic-wedding'),
		'section'  => 'classic_wedding_global_color',
		'settings' => 'classic_wedding_color_scheme_gradiant2',
	)));

	$wp_customize->add_setting('classic_wedding_color_scheme_gradiant3', array(
		'default'           => '#e8daca',
		'sanitize_callback' => 'sanitize_hex_color',
	));	
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'classic_wedding_color_scheme_gradiant3', array(
		'label'    => __('Theme Color', 'classic-wedding'),
		'section'  => 'classic_wedding_global_color',
		'settings' => 'classic_wedding_color_scheme_gradiant3',
	)));

 	$wp_customize->add_setting( 'classic_wedding_global_color_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('classic_wedding_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/wedding-wordpress-theme') ." '>Upgrade to Pro</a></span>",
	  'section' => 'classic_wedding_global_color'
    )); 

	// Header Section
	$wp_customize->add_section('classic_wedding_header_section', array(
        'title' => __('Manage Header Section', 'classic-wedding'),
		'description' => __('<p class="sec-title">Manage Header Section</p>','classic-wedding'),
        'priority' => null,
		'panel' => 'classic_wedding_panel_area',
 	));

	$wp_customize->add_setting('classic_wedding_rsvp_text',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_rsvp_text', array(
	   'settings' => 'classic_wedding_rsvp_text',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('Button Text', 'classic-wedding'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('classic_wedding_rsvp_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_rsvp_link', array(
	   'settings' => 'classic_wedding_rsvp_link',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('Button Link', 'classic-wedding'),
	   'type'      => 'url'
	));

	// Button text color
	$wp_customize->add_setting('classic_wedding_header_btntextcol',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_header_btntextcol', array(
	   'settings' => 'classic_wedding_header_btntextcol',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('Button Text Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// Button text color
	$wp_customize->add_setting('classic_wedding_header_btntextcol',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_header_btntextcol', array(
	   'settings' => 'classic_wedding_header_btntextcol',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('Button Text Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// Button border color
	$wp_customize->add_setting('classic_wedding_header_btnbordercol',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_header_btnbordercol', array(
	   'settings' => 'classic_wedding_header_btnbordercol',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('Button Border Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// Button hover color
	$wp_customize->add_setting('classic_wedding_header_btnhovercol',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_header_btnhovercol', array(
	   'settings' => 'classic_wedding_header_btnhovercol',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('Button BG Hover Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// Button texthover color
	$wp_customize->add_setting('classic_wedding_header_btntexthovercol',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_header_btntexthovercol', array(
	   'settings' => 'classic_wedding_header_btntexthovercol',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('Button Text Hover Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('classic_wedding_header_text',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_header_text', array(
	   'settings' => 'classic_wedding_header_text',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('Left Sidebar Text', 'classic-wedding'),
	   'type'      => 'text'
	));

	// Left Sidebar text color
	$wp_customize->add_setting('classic_wedding_header_leftsdbtxtcol',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_header_leftsdbtxtcol', array(
	   'settings' => 'classic_wedding_header_leftsdbtxtcol',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('Left Sidebar Text Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// top border color
	$wp_customize->add_setting('classic_wedding_header_bordercol',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_header_bordercol', array(
	   'settings' => 'classic_wedding_header_bordercol',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('Top Border Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// bg color
	$wp_customize->add_setting('classic_wedding_header_bgcol',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_header_bgcol', array(
	   'settings' => 'classic_wedding_header_bgcol',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('BG Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// border color
	$wp_customize->add_setting('classic_wedding_header_bordercol',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_header_bordercol', array(
	   'settings' => 'classic_wedding_header_bordercol',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('Border Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// menu color
	$wp_customize->add_setting('classic_wedding_header_menucol',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_header_menucol', array(
	   'settings' => 'classic_wedding_header_menucol',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('Menu Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// menuhover color
	$wp_customize->add_setting('classic_wedding_header_menuhovercol',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_header_menuhovercol', array(
	   'settings' => 'classic_wedding_header_menuhovercol',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('Menu Hover Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// menusub color
	$wp_customize->add_setting('classic_wedding_header_menusubcol',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_header_menusubcol', array(
	   'settings' => 'classic_wedding_header_menusubcol',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('Sub Menu Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// menusubhover color
	$wp_customize->add_setting('classic_wedding_header_menusubhovercol',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_header_menusubhovercol', array(
	   'settings' => 'classic_wedding_header_menusubhovercol',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('SubMenu Hover Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// submenubg color
	$wp_customize->add_setting('classic_wedding_header_submenubgcol',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_header_submenubgcol', array(
	   'settings' => 'classic_wedding_header_submenubgcol',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('SubMenu BG Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// submenuborder color
	$wp_customize->add_setting('classic_wedding_header_submenubordercol',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_header_submenubordercol', array(
	   'settings' => 'classic_wedding_header_submenubordercol',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('SubMenu Border Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// scrollbar color
	$wp_customize->add_setting('classic_wedding_header_scrollbarcol',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_header_scrollbarcol', array(
	   'settings' => 'classic_wedding_header_scrollbarcol',
	   'section'   => 'classic_wedding_header_section',
	   'label' => __('Scrollbar Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting( 'classic_wedding_header_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('classic_wedding_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/wedding-wordpress-theme') ." '>Upgrade to Pro</a></span>",
	  'section' => 'classic_wedding_header_section'
    ));

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

	$wp_customize->add_setting('classic_wedding_hide_categorysec',array(
		'default' => true,
		'sanitize_callback' => 'classic_wedding_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_hide_categorysec', array(
	   'settings' => 'classic_wedding_hide_categorysec',
	   'section'   => 'classic_wedding_one_cols_section',
	   'label'     => __('Check To Enable This Section','classic-wedding'),
	   'type'      => 'checkbox'
	));

	$wp_customize->add_setting( 'classic_wedding_slidersection', array(
		'default'	=> '0',
		'sanitize_callback'	=> 'absint'
	) );
	$wp_customize->add_control( new Classic_Wedding_Category_Dropdown_Custom_Control( $wp_customize, 'classic_wedding_slidersection', array(
		'section' => 'classic_wedding_one_cols_section',
		'label' => __('Select the post category to show slider', 'classic-wedding'),
		'settings'   => 'classic_wedding_slidersection',
	) ) );

	$wp_customize->add_setting( 'classic_wedding_slider_count', array(
	  	'capability' => 'edit_theme_options',
	  	'sanitize_callback' => 'classic_wedding_sanitize_number_absint',
	  	'default' => 1,
	) );
	$wp_customize->add_control( 'classic_wedding_slider_count', array(
	  	'settings' => 'classic_wedding_slider_count',
	  	'type' => 'number',
	  	'section' => 'classic_wedding_one_cols_section',
	  	'label' => __( 'Number Of Slide To Show','classic-wedding'),
	) );

	$wp_customize->add_setting('classic_wedding_button_text',array(
		'default' => 'Book Now',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_button_text', array(
	   'settings' => 'classic_wedding_button_text',
	   'section'   => 'classic_wedding_one_cols_section',
	   'label' => __('Add Button Text', 'classic-wedding'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('classic_wedding_button_link_slider',array(
        'default'=> '',
        'sanitize_callback' => 'esc_url_raw'
    ));
    $wp_customize->add_control('classic_wedding_button_link_slider',array(
        'label' => esc_html__('Add Button Link','classic-wedding'),
        'section'=> 'classic_wedding_one_cols_section',
        'type'=> 'url'
    ));

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

	// btntxt color
	$wp_customize->add_setting('classic_wedding_slider_btntxt_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_slider_btntxt_col', array(
	   'settings' => 'classic_wedding_slider_btntxt_col',
	   'section'   => 'classic_wedding_one_cols_section',
	   'label' => __('Button Text Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// btnbor color
	$wp_customize->add_setting('classic_wedding_slider_btnbor_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_slider_btnbor_col', array(
	   'settings' => 'classic_wedding_slider_btnbor_col',
	   'section'   => 'classic_wedding_one_cols_section',
	   'label' => __('Button Border Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// btnhover color
	$wp_customize->add_setting('classic_wedding_slider_btnhover_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_slider_btnhover_col', array(
	   'settings' => 'classic_wedding_slider_btnhover_col',
	   'section'   => 'classic_wedding_one_cols_section',
	   'label' => __('Button BG Hover Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// btntexthover color
	$wp_customize->add_setting('classic_wedding_slider_btntexthover_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_slider_btntexthover_col', array(
	   'settings' => 'classic_wedding_slider_btntexthover_col',
	   'section'   => 'classic_wedding_one_cols_section',
	   'label' => __('Button Text Hover Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// title color
	$wp_customize->add_setting('classic_wedding_slider_title_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_slider_title_col', array(
	   'settings' => 'classic_wedding_slider_title_col',
	   'section'   => 'classic_wedding_one_cols_section',
	   'label' => __('Title Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// description color
	$wp_customize->add_setting('classic_wedding_slider_description_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_slider_description_col', array(
	   'settings' => 'classic_wedding_slider_description_col',
	   'section'   => 'classic_wedding_one_cols_section',
	   'label' => __('Description Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// opacity color
	$wp_customize->add_setting('classic_wedding_slider_opacity_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_slider_opacity_col', array(
	   'settings' => 'classic_wedding_slider_opacity_col',
	   'section'   => 'classic_wedding_one_cols_section',
	   'label' => __('Opacity Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting( 'classic_wedding_slider_settings_upgraded_features',array(
	  	'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('classic_wedding_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/wedding-wordpress-theme') ." '>Upgrade to Pro</a></span>",
	    'section' => 'classic_wedding_one_cols_section'
	));

	// About us
	$wp_customize->add_section('classic_wedding_two_cols_section',array(
		'title'	=> __('Manage About us Section','classic-wedding'),
		'description'	=> __('<p class="sec-title">Manage About us Section</p> Select Page from the Dropdown for about us, Also use the given image dimension (470 x 600).','classic-wedding'),
		'priority'	=> null,
		'panel' => 'classic_wedding_panel_area'
	));

	$wp_customize->add_setting('classic_wedding_show_abt_sec',array(
		'default' => true,
		'sanitize_callback' => 'classic_wedding_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_show_abt_sec', array(
	   'settings' => 'classic_wedding_show_abt_sec',
	   'section'   => 'classic_wedding_two_cols_section',
	   'label'     => __('Check To Enable This Section','classic-wedding'),
	   'type'      => 'checkbox'
	));

	$wp_customize->add_setting('classic_wedding_pgboxes_title',array(
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control( 'classic_wedding_pgboxes_title', array(
	   'section'   => 'classic_wedding_two_cols_section',
	   'label'	=> __('Section Title','classic-wedding'),
	   'type'      => 'text',
	   'priority' => null,
    ));

	$wp_customize->add_setting('classic_wedding_about_us',array(
		'default'	=> '0',
		'capability' => 'edit_theme_options',
		'sanitize_callback'	=> 'classic_wedding_sanitize_dropdown_pages'
	));
	$wp_customize->add_control(	'classic_wedding_about_us',array(
		'type' => 'dropdown-pages',
		'label' => __('Select the page to show about us section', 'classic-wedding'),
		'section' => 'classic_wedding_two_cols_section',
	));

    // bg color
	$wp_customize->add_setting('classic_wedding_about_bg_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_about_bg_col', array(
	   'settings' => 'classic_wedding_about_bg_col',
	   'section'   => 'classic_wedding_two_cols_section',
	   'label' => __('BG Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// imgborder color
	$wp_customize->add_setting('classic_wedding_about_imgborder_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_about_imgborder_col', array(
	   'settings' => 'classic_wedding_about_imgborder_col',
	   'section'   => 'classic_wedding_two_cols_section',
	   'label' => __('Image Border Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// box color
	$wp_customize->add_setting('classic_wedding_about_box_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_about_box_col', array(
	   'settings' => 'classic_wedding_about_box_col',
	   'section'   => 'classic_wedding_two_cols_section',
	   'label' => __('Box BG Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// boxborderbottom color
	$wp_customize->add_setting('classic_wedding_about_boxborderbottom_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_about_boxborderbottom_col', array(
	   'settings' => 'classic_wedding_about_boxborderbottom_col',
	   'section'   => 'classic_wedding_two_cols_section',
	   'label' => __('Box Bottom Border Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// heading color
	$wp_customize->add_setting('classic_wedding_about_heading_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_about_heading_col', array(
	   'settings' => 'classic_wedding_about_heading_col',
	   'section'   => 'classic_wedding_two_cols_section',
	   'label' => __('Heading Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// headingborder color
	$wp_customize->add_setting('classic_wedding_about_headingborder_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_about_headingborder_col', array(
	   'settings' => 'classic_wedding_about_headingborder_col',
	   'section'   => 'classic_wedding_two_cols_section',
	   'label' => __('Heading Border Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// title color
	$wp_customize->add_setting('classic_wedding_about_title_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_about_title_col', array(
	   'settings' => 'classic_wedding_about_title_col',
	   'section'   => 'classic_wedding_two_cols_section',
	   'label' => __('Title Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// description color
	$wp_customize->add_setting('classic_wedding_about_description_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_about_description_col', array(
	   'settings' => 'classic_wedding_about_description_col',
	   'section'   => 'classic_wedding_two_cols_section',
	   'label' => __('Description Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting( 'classic_wedding_secondsec_settings_upgraded_features',array(
	  'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('classic_wedding_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/wedding-wordpress-theme') ." '>Upgrade to Pro</a></span>",
	  'section' => 'classic_wedding_two_cols_section'
	));

	//Blog post
	$wp_customize->add_section('classic_wedding_blog_post_settings',array(
        'title' => __('Manage Post Section', 'classic-wedding'),
        'priority' => null,
        'panel' => 'classic_wedding_panel_area'
    ) );

	$wp_customize->add_setting('classic_wedding_metafields_date', array(
	    'default' => true,
	    'sanitize_callback' => 'classic_wedding_sanitize_checkbox',
	));
	$wp_customize->add_control('classic_wedding_metafields_date', array(
	    'settings' => 'classic_wedding_metafields_date', 
	    'section'   => 'classic_wedding_blog_post_settings',
	    'label'     => __('Check to Enable Date', 'classic-wedding'),
	    'type'      => 'checkbox',
	));

	$wp_customize->add_setting('classic_wedding_metafields_comments', array(
		'default' => true,
		'sanitize_callback' => 'classic_wedding_sanitize_checkbox',
	));	
	$wp_customize->add_control('classic_wedding_metafields_comments', array(
		'settings' => 'classic_wedding_metafields_comments',
		'section'  => 'classic_wedding_blog_post_settings',
		'label'    => __('Check to Enable Comments', 'classic-wedding'),
		'type'     => 'checkbox',
	));

	$wp_customize->add_setting('classic_wedding_metafields_author', array(
		'default' => true,
		'sanitize_callback' => 'classic_wedding_sanitize_checkbox',
	));
	$wp_customize->add_control('classic_wedding_metafields_author', array(
		'settings' => 'classic_wedding_metafields_author',
		'section'  => 'classic_wedding_blog_post_settings',
		'label'    => __('Check to Enable Author', 'classic-wedding'),
		'type'     => 'checkbox',
	));		

	$wp_customize->add_setting('classic_wedding_metafields_time', array(
		'default' => true,
		'sanitize_callback' => 'classic_wedding_sanitize_checkbox',
	));
	$wp_customize->add_control('classic_wedding_metafields_time', array(
		'settings' => 'classic_wedding_metafields_time',
		'section'  => 'classic_wedding_blog_post_settings',
		'label'    => __('Check to Enable Time', 'classic-wedding'),
		'type'     => 'checkbox',
	));	

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

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

	$wp_customize->add_setting('classic_wedding_blog_post_description_option',array(
    	'default'   => 'Full Content', 
        'sanitize_callback' => 'classic_wedding_sanitize_choices'
	));
	$wp_customize->add_control('classic_wedding_blog_post_description_option',array(
        'type' => 'radio',
        'label' => __('Post Description Length','classic-wedding'),
        'section' => 'classic_wedding_blog_post_settings',
        'choices' => array(
            'No Content' => __('No Content','classic-wedding'),
            'Excerpt Content' => __('Excerpt Content','classic-wedding'),
            'Full Content' => __('Full Content','classic-wedding'),
        ),
	) );

	$wp_customize->add_setting('classic_wedding_blog_post_thumb',array(
        'sanitize_callback' => 'classic_wedding_sanitize_checkbox',
        'default'           => 1,
    ));
    $wp_customize->add_control('classic_wedding_blog_post_thumb',array(
        'type'        => 'checkbox',
        'label'       => esc_html__('Show / Hide Blog Post Thumbnail', 'classic-wedding'),
        'section'     => 'classic_wedding_blog_post_settings',
    ));

    $wp_customize->add_setting( 'classic_wedding_blog_post_page_image_box_shadow', array(
        'default'              => '0',
        'transport'            => 'refresh',
        'sanitize_callback'    => 'classic_wedding_sanitize_integer'
    ) );
    $wp_customize->add_control(new Classic_Wedding_Slider_Custom_Control( $wp_customize, 'classic_wedding_blog_post_page_image_box_shadow',array(
		'label'	=> esc_html__('Blog Page Image Box Shadow','classic-wedding'),
		'section'=> 'classic_wedding_blog_post_settings',
		'settings'=>'classic_wedding_blog_post_page_image_box_shadow',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 100,
        ),
	)));

	$wp_customize->add_setting( 'classic_wedding_post_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('classic_wedding_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/wedding-wordpress-theme') ." '>Upgrade to Pro</a></span>",
	  'section' => 'classic_wedding_blog_post_settings'
    ));

	//Single Post Settings
	$wp_customize->add_section('classic_wedding_single_post_settings',array(
		'title' => __('Manage Single Post Section', 'classic-wedding'),
		'priority' => null,
		'panel' => 'classic_wedding_panel_area'
	));

	$wp_customize->add_setting( 'classic_wedding_single_page_breadcrumb',array(
		'default' => true,
        'sanitize_callback'	=> 'classic_wedding_sanitize_checkbox',
	));
	$wp_customize->add_control('classic_wedding_single_page_breadcrumb',array(
       'section' => 'classic_wedding_single_post_settings',
	   'label' => __( 'Check To Enable Breadcrumb','classic-wedding' ),
	   'type' => 'checkbox'
    ));	

	$wp_customize->add_setting('classic_wedding_single_post_date',array(
		'default' => true,
		'sanitize_callback'	=> 'classic_wedding_sanitize_checkbox'
	));
	$wp_customize->add_control('classic_wedding_single_post_date',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Date ','classic-wedding'),
		'section' => 'classic_wedding_single_post_settings'
	));	

	$wp_customize->add_setting('classic_wedding_single_post_author',array(
		'default' => true,
		'sanitize_callback'	=> 'classic_wedding_sanitize_checkbox'
	));
	$wp_customize->add_control('classic_wedding_single_post_author',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Author','classic-wedding'),
		'section' => 'classic_wedding_single_post_settings'
	));

	$wp_customize->add_setting('classic_wedding_single_post_comment',array(
		'default' => true,
		'sanitize_callback'	=> 'classic_wedding_sanitize_checkbox'
	));
	$wp_customize->add_control('classic_wedding_single_post_comment',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Comments','classic-wedding'),
		'section' => 'classic_wedding_single_post_settings'
	));	

	$wp_customize->add_setting('classic_wedding_single_post_time',array(
		'default' => true,
		'sanitize_callback'	=> 'classic_wedding_sanitize_checkbox'
	));
	$wp_customize->add_control('classic_wedding_single_post_time',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Time','classic-wedding'),
		'section' => 'classic_wedding_single_post_settings'
	));	

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

	$wp_customize->add_setting('classic_wedding_sidebar_single_post_layout',array(
    	'default' => 'right',
    	 'sanitize_callback' => 'classic_wedding_sanitize_choices'
	));
	$wp_customize->add_control('classic_wedding_sidebar_single_post_layout',array(
   		'type' => 'radio',
    	'label'     => __('Single post sidebar layout', 'classic-wedding'),
     	'section' => 'classic_wedding_single_post_settings',
     	'choices' => array(
			'left' => __('Left','classic-wedding'),
			'right' => __('Right','classic-wedding'),
			'full' => __('No Sidebar','classic-wedding'),
     ),
	));

	$wp_customize->add_setting( 'classic_wedding_single_post_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('classic_wedding_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/wedding-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'classic_wedding_single_post_settings'
	)); 

	//Page Settings
	$wp_customize->add_section('classic_wedding_page_settings',array(
		'title' => __('Manage Page Section', 'classic-wedding'),
		'priority' => null,
		'panel' => 'classic_wedding_panel_area'
	));

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

	// 404 Page Settings
	$wp_customize->add_section('classic_wedding_page_not_found', array(
		'title'	=> __('Manage 404 Page Section','classic-wedding'),
		'priority'	=> null,
		'panel' => 'classic_wedding_panel_area',
	));
	
	$wp_customize->add_setting('classic_wedding_page_not_found_heading',array(
		'default'=> __('404 Not Found','classic-wedding'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('classic_wedding_page_not_found_heading',array(
		'label'	=> __('404 Heading','classic-wedding'),
		'section'=> 'classic_wedding_page_not_found',
		'type'=> 'text'
	));

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

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

	$wp_customize->add_setting( 'classic_wedding_page_not_found_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('classic_wedding_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/wedding-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'classic_wedding_page_not_found'
	));

	// Footer Section
	$wp_customize->add_section('classic_wedding_footer', array(
		'title'	=> __('Manage Footer Section','classic-wedding'),
		'description'	=> __('<p class="sec-title">Manage Footer Section</p>','classic-wedding'),
		'priority'	=> null,
		'panel' => 'classic_wedding_panel_area',
	));

	$wp_customize->add_setting('classic_wedding_footer_widget', array(
	    'default' => true,
	    'sanitize_callback' => 'classic_wedding_sanitize_checkbox',
	));
	$wp_customize->add_control('classic_wedding_footer_widget', array(
	    'settings' => 'classic_wedding_footer_widget', // Corrected setting name
	    'section'   => 'classic_wedding_footer',
	    'label'     => __('Check to Enable Footer Widget', 'classic-wedding'),
	    'type'      => 'checkbox',
	));

	$wp_customize->add_setting('classic_wedding_footer_bg_color', array(
        'default'           => '',
        'sanitize_callback' => 'sanitize_hex_color',
    ));
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'classic_wedding_footer_bg_color', array(
        'label'    => __('Footer Background Color', 'classic-wedding'),
        'section'  => 'classic_wedding_footer',
    )));

	$wp_customize->add_setting('classic_wedding_footer_bg_image',array(
        'default'   => '',
        'sanitize_callback' => 'esc_url_raw',
    ));
    $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'classic_wedding_footer_bg_image',array(
        'label' => __('Footer Background Image','classic-wedding'),
        'section' => 'classic_wedding_footer',
    )));

	$wp_customize->add_setting('classic_wedding_copyright_line',array(
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control( 'classic_wedding_copyright_line', array(
	   'section' 	=> 'classic_wedding_footer',
	   'label'	 	=> __('Copyright Line','classic-wedding'),
	   'type'    	=> 'text',
	   'priority' 	=> null,
    ));

    // copyrightText color
	$wp_customize->add_setting('classic_wedding_footer_copyrightText_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_footer_copyrightText_col', array(
	   'settings' => 'classic_wedding_footer_copyrightText_col',
	   'section'   => 'classic_wedding_footer',
	   'label' => __('Copyright Text Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// copyrightbg color
	$wp_customize->add_setting('classic_wedding_footer_copyrightbg_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_footer_copyrightbg_col', array(
	   'settings' => 'classic_wedding_footer_copyrightbg_col',
	   'section'   => 'classic_wedding_footer',
	   'label' => __('Copyright BG Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// heading color
	$wp_customize->add_setting('classic_wedding_footer_heading_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_footer_heading_col', array(
	   'settings' => 'classic_wedding_footer_heading_col',
	   'section'   => 'classic_wedding_footer',
	   'label' => __('Heading Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// text color
	$wp_customize->add_setting('classic_wedding_footer_text_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_footer_text_col', array(
	   'settings' => 'classic_wedding_footer_text_col',
	   'section'   => 'classic_wedding_footer',
	   'label' => __('Text Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// list color
	$wp_customize->add_setting('classic_wedding_footer_list_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_footer_list_col', array(
	   'settings' => 'classic_wedding_footer_list_col',
	   'section'   => 'classic_wedding_footer',
	   'label' => __('List Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	// listhover color
	$wp_customize->add_setting('classic_wedding_footer_listhover_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'classic_wedding_footer_listhover_col', array(
	   'settings' => 'classic_wedding_footer_listhover_col',
	   'section'   => 'classic_wedding_footer',
	   'label' => __('List Hover Color', 'classic-wedding'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('classic_wedding_scroll_hide', array(
        'default' => true,
        'sanitize_callback' => 'classic_wedding_sanitize_checkbox'
    ));
    $wp_customize->add_control( new WP_Customize_Control($wp_customize,'classic_wedding_scroll_hide',array(
        'label'          => __( 'Check To Show Scroll To Top', 'classic-wedding' ),
        'section'        => 'classic_wedding_footer',
        'settings'       => 'classic_wedding_scroll_hide',
        'type'           => 'checkbox',
    )));

    $wp_customize->add_setting('classic_wedding_scroll_position',array(
        'default' => 'Right',
        'sanitize_callback' => 'classic_wedding_sanitize_choices'
    ));
    $wp_customize->add_control('classic_wedding_scroll_position',array(
        'type' => 'radio',
        'section' => 'classic_wedding_footer',
        'label'	 	=> __('Scroll To Top Positions','classic-wedding'),
        'choices' => array(
            'Right' => __('Right','classic-wedding'),
            'Center' => __('Center','classic-wedding')
        ),
    ) );

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

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

	$wp_customize->add_setting('classic_wedding_footer_widget_areas',array(
		'default'           => 4,
		'sanitize_callback' => 'classic_wedding_sanitize_choices',
	));
	$wp_customize->add_control('classic_wedding_footer_widget_areas',array(
		'type'        => 'radio',
		'section' => 'classic_wedding_footer',
		'label'       => __('Footer widget area', 'classic-wedding'),
		'choices' => array(
		   '1'     => __('One', 'classic-wedding'),
		   '2'     => __('Two', 'classic-wedding'),
		   '3'     => __('Three', 'classic-wedding'),
		   '4'     => __('Four', 'classic-wedding')
		),
	));

    $wp_customize->add_setting( 'classic_wedding_footer_settings_upgraded_features',array(
	  'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('classic_wedding_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/wedding-wordpress-theme') ." '>Upgrade to Pro</a></span>",
	    'section' => 'classic_wedding_footer'
	));

    // Google Fonts
    $wp_customize->add_section( 'classic_wedding_google_fonts_section', array(
		'title'       => __( 'Google Fonts', 'classic-wedding' ),
		'priority'    => 24,
	) );

	$font_choices = array(
		'' => 'No Fonts',
		'Arvo:400,700,400italic,700italic' => 'Arvo',
		'Abril Fatface' => 'Abril Fatface',
		'Acme' => 'Acme',
		'Anton' => 'Anton',
		'Arimo:400,700,400italic,700italic' => 'Arimo',
		'Architects Daughter' => 'Architects Daughter',
		'Arsenal' => 'Arsenal',
		'Alegreya' => 'Alegreya',
		'Alfa Slab One' => 'Alfa Slab One',
		'Averia Serif Libre' => 'Averia Serif Libre',
		'Bitter:400,700,400italic' => 'Bitter',
		'Bangers' => 'Bangers',
		'Boogaloo' => 'Boogaloo',
		'Bad Script' => 'Bad Script',
		'Bree Serif' => 'Bree Serif',
		'BenchNine' => 'BenchNine',
		'Cabin:400,700,400italic' => 'Cabin',
		'Cardo' => 'Cardo',
		'Courgette' => 'Courgette',
		'Cherry Swash' => 'Cherry Swash',
		'Cormorant Garamond' => 'Cormorant Garamond',
		'Crimson Text' => 'Crimson Text',
		'Cuprum' => 'Cuprum',
		'Cookie' => 'Cookie',
		'Chewy' => 'Chewy',
		'Droid Serif:400,700,400italic,700italic' => 'Droid Serif',
		'Droid Sans:400,700' => 'Droid Sans',
		'Days One' => 'Days One',
		'Dosis' => 'Dosis',
		'Emilys Candy:' => 'Emilys Candy',
		'Economica' => 'Economica',
		'Fjalla One:400' => 'Fjalla One',
		'Francois One:400' => 'Francois One',
		'Fredoka One' => 'Fredoka One',
		'Frank Ruhl Libre' => 'Frank Ruhl Libre',
		'Gloria Hallelujah' => 'Gloria Hallelujah',
		'Great Vibes' => 'Great Vibes',
		'Josefin Sans:400,300,600,700' => 'Josefin Sans',
		'Kaushan Script:' => 'Kaushan Script',
		'Libre Baskerville:400,400italic,700' => 'Libre Baskerville',
		'Lora:400,700,400italic,700italic' => 'Lora',
		'Lato:400,700,400italic,700italic' => 'Lato',
		'Merriweather:400,300italic,300,400italic,700,700italic' => 'Merriweather',
		'Montserrat:400,700' => 'Montserrat',
		'Oxygen:400,300,700' => 'Oxygen',
		'Open Sans Condensed:700,300italic,300' => 'Open Sans Condensed',
		'Open Sans:400italic,700italic,400,700' => 'Open Sans',
		'Oswald:400,700' => 'Oswald',
		'PT Serif:400,700' => 'PT Serif',
		'PT Sans:400,700,400italic,700italic' => 'PT Sans',
		'PT Sans Narrow:400,700' => 'PT Sans Narrow',
		'Playfair Display:400,700,400italic' => 'Playfair Display',
		'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',
		'Roboto:400,400italic,700,700italic' => 'Roboto',
		'Roboto Condensed:400italic,700italic,400,700' => 'Roboto Condensed',
		'Roboto Slab:400,700' => 'Roboto Slab',
		'Raleway:400,700' => 'Raleway',
		'Source Sans Pro:400,700,400italic,700italic' => 'Source Sans Pro',
		'Ubuntu:400,700,400italic,700italic' => 'Ubuntu',
		'Yanone Kaffeesatz:400,700' => 'Yanone Kaffeesatz',
	);

	$wp_customize->add_setting( 'classic_wedding_headings_fonts', array(
		'sanitize_callback' => 'classic_wedding_sanitize_fonts',
	));
	$wp_customize->add_control( 'classic_wedding_headings_fonts', array(
		'type' => 'select',
		'description' => __('Select your desired font for the headings.', 'classic-wedding'),
		'section' => 'classic_wedding_google_fonts_section',
		'choices' => $font_choices
	));

	$wp_customize->add_setting( 'classic_wedding_body_fonts', array(
		'sanitize_callback' => 'classic_wedding_sanitize_fonts'
	));
	$wp_customize->add_control( 'classic_wedding_body_fonts', array(
		'type' => 'select',
		'description' => __( 'Select your desired font for the body.', 'classic-wedding' ),
		'section' => 'classic_wedding_google_fonts_section',
		'choices' => $font_choices
	));
}
add_action( 'customize_register', 'classic_wedding_customize_register' );

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