<?php
/**
 * lz-cleaning-services: Customizer
 *
 * @subpackage lz-cleaning-services
 * @since 1.0
 */

function lz_cleaning_services_customize_register( $wp_customize ) {

	$wp_customize->add_setting('lz_cleaning_services_logo_size',array(
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_float'
	));
	$wp_customize->add_control('lz_cleaning_services_logo_size',array(
		'type' => 'number',
		'label' => __('Logo Size','lz-cleaning-services'),
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('lz_cleaning_services_logo_padding',array(
		'sanitize_callback'	=> 'esc_html'
	));
	$wp_customize->add_control('lz_cleaning_services_logo_padding',array(
		'label' => __('Logo Padding','lz-cleaning-services'),
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('lz_cleaning_services_logo_top_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_float'
	));
	$wp_customize->add_control('lz_cleaning_services_logo_top_padding',array(
		'type' => 'number',
		'description' => __('Top','lz-cleaning-services'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('lz_cleaning_services_logo_bottom_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_float'
	));
	$wp_customize->add_control('lz_cleaning_services_logo_bottom_padding',array(
		'type' => 'number',
		'description' => __('Bottom','lz-cleaning-services'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('lz_cleaning_services_logo_left_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_float'
	));
	$wp_customize->add_control('lz_cleaning_services_logo_left_padding',array(
		'type' => 'number',
		'description' => __('Left','lz-cleaning-services'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('lz_cleaning_services_logo_right_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_float'
	));
	$wp_customize->add_control('lz_cleaning_services_logo_right_padding',array(
		'type' => 'number',
		'description' => __('Right','lz-cleaning-services'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('lz_cleaning_services_show_site_title',array(
		'default' => true,
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_checkbox'
	));
	$wp_customize->add_control('lz_cleaning_services_show_site_title',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Site Title','lz-cleaning-services'),
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('lz_cleaning_services_site_title_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_float'
	));
	$wp_customize->add_control('lz_cleaning_services_site_title_font_size',array(
		'type' => 'number',
		'label' => __('Site Title Font Size','lz-cleaning-services'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting( 'lz_cleaning_services_site_title_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_site_title_color', array(
		'label' => 'Color',
		'section' => 'title_tagline',
	)));

	$wp_customize->add_setting('lz_cleaning_services_show_tagline',array(
		'default' => true,
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_checkbox'
	));
	$wp_customize->add_control('lz_cleaning_services_show_tagline',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Site Tagline','lz-cleaning-services'),
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('lz_cleaning_services_site_tagline_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_float'
	));
	$wp_customize->add_control('lz_cleaning_services_site_tagline_font_size',array(
		'type' => 'number',
		'label' => __('Site Tagline Font Size','lz-cleaning-services'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting( 'lz_cleaning_services_site_tagline_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_site_tagline_color', array(
		'label' => 'Color',
		'section' => 'title_tagline',
	)));

	$wp_customize->add_panel( 'lz_cleaning_services_panel_id', array(
	    'priority' => 10,
	    'capability' => 'edit_theme_options',
	    'theme_supports' => '',
	    'title' => __( 'Theme Settings', 'lz-cleaning-services' ),
	    'description' => __( 'Description of what this panel does.', 'lz-cleaning-services' ),
	) );

	$wp_customize->add_section( 'lz_cleaning_services_theme_options_section', array(
    	'title'      => __( 'General Settings', 'lz-cleaning-services' ),
		'priority'   => 30,
		'panel' => 'lz_cleaning_services_panel_id'
	) );

	$wp_customize->add_setting('lz_cleaning_services_blog_theme_options',array(
		'default' => 'One Column',
		'sanitize_callback' => 'lz_cleaning_services_sanitize_choices'
	));
	$wp_customize->add_control('lz_cleaning_services_blog_theme_options',array(
		'type' => 'select',
		'label' => __('Product Page Sidebar Layout','lz-cleaning-services'),
		'section' => 'lz_cleaning_services_theme_options_section',
		'choices' => array(
		   'Left Sidebar' => __('Left Sidebar','lz-cleaning-services'),
		   'Right Sidebar' => __('Right Sidebar','lz-cleaning-services'),
		   'One Column' => __('One Column','lz-cleaning-services'),
		   'Grid Layout' => __('Grid Layout','lz-cleaning-services')
		),
	));

	$wp_customize->add_setting('lz_cleaning_services_single_post_sidebar',array(
		'default' => 'Right Sidebar',
		'sanitize_callback' => 'lz_cleaning_services_sanitize_choices'
	));
	$wp_customize->add_control('lz_cleaning_services_single_post_sidebar',array(
        'type' => 'select',
        'label' => __('Single Post Sidebar Layout','lz-cleaning-services'),
        'section' => 'lz_cleaning_services_theme_options_section',
        'choices' => array(
            'Left Sidebar' => __('Left Sidebar','lz-cleaning-services'),
            'Right Sidebar' => __('Right Sidebar','lz-cleaning-services'),
            'One Column' => __('One Column','lz-cleaning-services')
        ),
	));

	$wp_customize->add_setting('lz_cleaning_services_archive_page_sidebar',array(
		'default' => 'One Column',
		'sanitize_callback' => 'lz_cleaning_services_sanitize_choices'
	));
	$wp_customize->add_control('lz_cleaning_services_archive_page_sidebar',array(
        'type' => 'select',
        'label' => __('Archive & Search Page Sidebar Layout','lz-cleaning-services'),
        'section' => 'lz_cleaning_services_theme_options_section',
        'choices' => array(
            'Left Sidebar' => __('Left Sidebar','lz-cleaning-services'),
            'Right Sidebar' => __('Right Sidebar','lz-cleaning-services'),
            'One Column' => __('One Column','lz-cleaning-services'),
            'Grid Layout' => __('Grid Layout','lz-cleaning-services')
        ),
	));

	$wp_customize->add_setting( 'lz_cleaning_services_boxfull_width', array(
		'default'           => '',
		'sanitize_callback' => 'lz_cleaning_services_sanitize_choices'
	));
	
	$wp_customize->add_control( 'lz_cleaning_services_boxfull_width', array(
		'label'    => __( 'Section Width', 'lz-cleaning-services' ),
		'section'  => 'lz_cleaning_services_theme_options_section',
		'type'     => 'select',
		'choices'  => array(
			'container'  => __('Box Width', 'lz-cleaning-services'),
			'container-fluid' => __('Full Width', 'lz-cleaning-services'),
			'none' => __('None', 'lz-cleaning-services')
		),
	));

	$wp_customize->add_setting( 'lz_cleaning_services_dropdown_anim', array(
		'default'           => 'None',
		'sanitize_callback' => 'lz_cleaning_services_sanitize_choices'
	));
	$wp_customize->add_control( 'lz_cleaning_services_dropdown_anim', array(
		'label'    => __( 'Menu Dropdown Animations', 'lz-cleaning-services' ),
		'section'  => 'lz_cleaning_services_theme_options_section',
		'type'     => 'select',
		'choices'  => array(
			'bounceInUp'  => __('bounceInUp', 'lz-cleaning-services'),
			'fadeInUp' => __('fadeInUp', 'lz-cleaning-services'),
			'zoomIn'    => __('zoomIn', 'lz-cleaning-services'),
			'None'    => __('None', 'lz-cleaning-services')
		),
	));

	// Top Bar
	$wp_customize->add_section( 'lz_cleaning_services_top_bar', array(
    	'title'      => __( 'Top Bar', 'lz-cleaning-services' ),
		'priority'   => null,
		'panel' => 'lz_cleaning_services_panel_id'
	) );

	$wp_customize->add_setting('lz_cleaning_services_hide_show_topbar',array(
    	'default' => false,
    	'sanitize_callback'	=> 'lz_cleaning_services_sanitize_checkbox'
	));
	$wp_customize->add_control('lz_cleaning_services_hide_show_topbar',array(
   	'type' => 'checkbox',
   	'label' => __('Show / Hide Topbar','lz-cleaning-services'),
   	'section' => 'lz_cleaning_services_top_bar',
	));

	$wp_customize->add_setting('lz_cleaning_services_location',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('lz_cleaning_services_location',array(
		'label'	=> __('Add Location','lz-cleaning-services'),
		'section'=> 'lz_cleaning_services_top_bar',
		'setting'=> 'lz_cleaning_services_location',
		'type'=> 'text'
	));

	$wp_customize->add_setting('lz_cleaning_services_timming',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('lz_cleaning_services_timming',array(
		'label'	=> __('Add Opening Timming','lz-cleaning-services'),
		'section'=> 'lz_cleaning_services_top_bar',
		'setting'=> 'lz_cleaning_services_timming',
		'type'=> 'text'
	));
	
	$wp_customize->add_setting('lz_cleaning_services_quote_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('lz_cleaning_services_quote_text',array(
		'label'	=> __('Add Button Text','lz-cleaning-services'),
		'section'=> 'lz_cleaning_services_top_bar',
		'setting'=> 'lz_cleaning_services_quote_text',
		'type'=> 'text'
	));

	$wp_customize->add_setting('lz_cleaning_services_quote_url',array(
		'default'=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('lz_cleaning_services_quote_url',array(
		'label'	=> __('Add Button URL','lz-cleaning-services'),
		'section'=> 'lz_cleaning_services_top_bar',
		'setting'=> 'lz_cleaning_services_quote_url',
		'type'=> 'url'
	));

	$wp_customize->add_setting('lz_cleaning_services_call_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('lz_cleaning_services_call_text',array(
		'label'	=> __('Add Call Text','lz-cleaning-services'),
		'section'=> 'lz_cleaning_services_top_bar',
		'setting'=> 'lz_cleaning_services_call_text',
		'type'=> 'text'
	));

	$wp_customize->add_setting('lz_cleaning_services_call_number',array(
		'default'=> '',
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_phone_number'
	));	
	$wp_customize->add_control('lz_cleaning_services_call_number',array(
		'label'	=> __('Add Phone Number','lz-cleaning-services'),
		'section'=> 'lz_cleaning_services_top_bar',
		'setting'=> 'lz_cleaning_services_call_number',
		'type'=> 'text'
	));

	$wp_customize->add_setting('lz_cleaning_services_email_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('lz_cleaning_services_email_text',array(
		'label'	=> __('Add Email Text','lz-cleaning-services'),
		'section'=> 'lz_cleaning_services_top_bar',
		'setting'=> 'lz_cleaning_services_email_text',
		'type'=> 'text'
	));

	$wp_customize->add_setting('lz_cleaning_services_email_address',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_email'
	));	
	$wp_customize->add_control('lz_cleaning_services_email_address',array(
		'label'	=> __('Add Email Address','lz-cleaning-services'),
		'section'=> 'lz_cleaning_services_top_bar',
		'setting'=> 'lz_cleaning_services_email_address',
		'type'=> 'text'
	));

	$wp_customize->add_setting( 'lz_cleaning_services_top_icon_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_top_icon_color', array(
	   'label' => 'Icons Color',
		'section' => 'lz_cleaning_services_top_bar',
    )));

	$wp_customize->add_setting( 'lz_cleaning_services_top_text_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_top_text_color', array(
	   'label' => 'Text Color',
		'section' => 'lz_cleaning_services_top_bar',
    )));

	$wp_customize->add_setting( 'lz_cleaning_services_top_btn_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_top_btn_color', array(
	   'label' => 'Button Text Color',
		'section' => 'lz_cleaning_services_top_bar',
    )));

	$wp_customize->add_setting( 'lz_cleaning_services_top_btnbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_top_btnbg_color', array(
	   'label' => 'Button Bg Color',
		'section' => 'lz_cleaning_services_top_bar',
    )));

	$wp_customize->add_setting( 'lz_cleaning_services_topbg_color1', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_topbg_color1', array(
	   'label' => 'Topbar Bg Color 1',
		'section' => 'lz_cleaning_services_top_bar',
    )));

	$wp_customize->add_setting( 'lz_cleaning_services_topbg_color2', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_topbg_color2', array(
	   'label' => 'Topbar Bg Color 2',
		'section' => 'lz_cleaning_services_top_bar',
    )));

	$wp_customize->add_setting( 'lz_cleaning_services_middleheader_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_middleheader_color', array(
	   'label' => 'Middle Header Bg Color',
		'section' => 'lz_cleaning_services_top_bar',
    )));

	$wp_customize->add_setting( 'lz_cleaning_services_emailicon_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_emailicon_color', array(
	   'label' => 'Email/Call Icon Color',
		'section' => 'lz_cleaning_services_top_bar',
    )));

	$wp_customize->add_setting( 'lz_cleaning_services_bottomheader_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_bottomheader_color', array(
	   'label' => 'Bottom Header Bg Color',
		'section' => 'lz_cleaning_services_top_bar',
	)));
	
	//social icons
	$wp_customize->add_section( 'lz_cleaning_services_social', array(
    	'title'      => __( 'Social Icons', 'lz-cleaning-services' ),
		'priority'   => null,
		'panel' => 'lz_cleaning_services_panel_id'
	) );

	$wp_customize->add_setting('lz_cleaning_services_facebook_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('lz_cleaning_services_facebook_url',array(
		'label'	=> __('Add Facebook link','lz-cleaning-services'),
		'section'	=> 'lz_cleaning_services_social',
		'setting'	=> 'lz_cleaning_services_facebook_url',
		'type'	=> 'url'
	));

	$wp_customize->add_setting('lz_cleaning_services_twitter_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('lz_cleaning_services_twitter_url',array(
		'label'	=> __('Add Twitter link','lz-cleaning-services'),
		'section'	=> 'lz_cleaning_services_social',
		'setting'	=> 'lz_cleaning_services_twitter_url',
		'type'	=> 'url'
	));

	$wp_customize->add_setting('lz_cleaning_services_insta_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('lz_cleaning_services_insta_url',array(
		'label'	=> __('Add Instagram link','lz-cleaning-services'),
		'section'	=> 'lz_cleaning_services_social',
		'setting'	=> 'lz_cleaning_services_insta_url',
		'type'	=> 'url'
	));

	$wp_customize->add_setting('lz_cleaning_services_linkedin_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('lz_cleaning_services_linkedin_url',array(
		'label'	=> __('Add Linkedin link','lz-cleaning-services'),
		'section'	=> 'lz_cleaning_services_social',
		'setting'	=> 'lz_cleaning_services_linkedin_url',
		'type'	=> 'url'
	));

	$wp_customize->add_setting('lz_cleaning_services_pinterest_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('lz_cleaning_services_pinterest_url',array(
		'label'	=> __('Add Pintrest link','lz-cleaning-services'),
		'section'	=> 'lz_cleaning_services_social',
		'setting'	=> 'lz_cleaning_services_pinterest_url',
		'type'	=> 'url'
	));

	$wp_customize->add_setting( 'lz_cleaning_services_social_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_social_color', array(
	   'label' => 'Icon Color',
		'section' => 'lz_cleaning_services_social',
    )));

	//home page slider
	$wp_customize->add_section( 'lz_cleaning_services_slider_section' , array(
    	'title'      => __( 'Slider Settings', 'lz-cleaning-services' ),
		'priority'   => null,
		'panel' => 'lz_cleaning_services_panel_id'
	) );

	$wp_customize->add_setting('lz_cleaning_services_slider_hide_show',array(
		'default' => false,
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_checkbox'
	));
	$wp_customize->add_control('lz_cleaning_services_slider_hide_show',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide slider','lz-cleaning-services'),
		'description' => __('Image Size ( 1600px x 582px )','lz-cleaning-services'),
		'section' => 'lz_cleaning_services_slider_section',
	));

	$wp_customize->add_setting( 'lz_cleaning_services_slider_effect', array(
		'default'           => '',
		'sanitize_callback' => 'lz_cleaning_services_sanitize_choices'
	));
	$wp_customize->add_control( 'lz_cleaning_services_slider_effect', array(
		'label'    => __( 'Onload Transactions Effects', 'lz-cleaning-services' ),
		'section'  => 'lz_cleaning_services_slider_section',
		'type'     => 'select',
		'choices'  => array(
			'bounceInLeft'  => __('bounceInLeft', 'lz-cleaning-services'),
			'bounceInRight' => __('bounceInRight', 'lz-cleaning-services'),
			'bounceInUp'    => __('bounceInUp', 'lz-cleaning-services'),
			'bounceInDown'    => __('bounceInDown', 'lz-cleaning-services'),
			'zoomIn'  => __('zoomIn', 'lz-cleaning-services'),
			'zoomOut' => __('zoomOut', 'lz-cleaning-services'),
			'fadeInDown'    => __('fadeInDown', 'lz-cleaning-services'),
			'fadeInUp'    => __('fadeInUp', 'lz-cleaning-services'),
			'fadeInLeft'  => __('fadeInLeft', 'lz-cleaning-services'),
			'fadeInRight' => __('fadeInRight', 'lz-cleaning-services'),
			'flip-up'    => __('flip-up', 'lz-cleaning-services'),
			'none'    => __('none', 'lz-cleaning-services')
		),
	));

	for ( $count = 1; $count <= 4; $count++ ) {
		$wp_customize->add_setting( 'lz_cleaning_services_slider' . $count, array(
			'default'           => '',
			'sanitize_callback' => 'lz_cleaning_services_sanitize_dropdown_pages'
		) );
		$wp_customize->add_control( 'lz_cleaning_services_slider' . $count, array(
			'label'    => __( 'Select Slide Image Page', 'lz-cleaning-services' ),
			'section'  => 'lz_cleaning_services_slider_section',
			'type'     => 'dropdown-pages'
		) );
	}

	$wp_customize->add_setting('lz_cleaning_services_slider_excerpt_length',array(
		'default' => '20',
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_float'
	));
	$wp_customize->add_control('lz_cleaning_services_slider_excerpt_length',array(
		'type' => 'number',
		'label' => __('Slider Excerpt Length','lz-cleaning-services'),
		'section' => 'lz_cleaning_services_slider_section',
	));

	$wp_customize->add_setting('lz_cleaning_services_slider_title_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_float'
	));
	$wp_customize->add_control('lz_cleaning_services_slider_title_font_size',array(
		'type' => 'number',
		'label' => __('Title Font Size','lz-cleaning-services'),
		'section' => 'lz_cleaning_services_slider_section',
	));

	$wp_customize->add_setting('lz_cleaning_services_slider_text_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_float'
	));
	$wp_customize->add_control('lz_cleaning_services_slider_text_font_size',array(
		'type' => 'number',
		'label' => __('Text Font Size','lz-cleaning-services'),
		'section' => 'lz_cleaning_services_slider_section',
	));

	$wp_customize->add_setting('lz_cleaning_services_slider_opacity',array(
		'default' => '',
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_float'
	));
	$wp_customize->add_control('lz_cleaning_services_slider_opacity',array(
		'type' => 'range',
		'label' => __('Image Opacity','lz-cleaning-services'),
		'section' => 'lz_cleaning_services_slider_section',
		'input_attrs' => array(
			'min'  => 0,
			'max'  => 1,
			'step' => 0.1,
		),
	));

	$wp_customize->add_setting( 'lz_cleaning_services_slider_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_slider_color', array(
		'label' => 'Title Color',
		'section' => 'lz_cleaning_services_slider_section',
	)));

	$wp_customize->add_setting( 'lz_cleaning_services_slider_text_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_slider_text_color', array(
		'label' => 'Text Color',
		'section' => 'lz_cleaning_services_slider_section',
	)));

	$wp_customize->add_setting( 'lz_cleaning_services_slider_btn_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_slider_btn_color', array(
		'label' => 'Button Color',
		'section' => 'lz_cleaning_services_slider_section',
	)));

	//	FEATURE 
	$wp_customize->add_section('lz_cleaning_services_feature_section',array(
		'title'	=> __('Our Features','lz-cleaning-services'),
		'description'=> __('<b>Note :</b> This section will appear below the slider.','lz-cleaning-services'),
		'panel' => 'lz_cleaning_services_panel_id',
	));
	
	$wp_customize->add_setting('cleaning_features_title',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('cleaning_features_title',array(
		'label'	=> __('Section Title','lz-cleaning-services'),
		'section'	=> 'lz_cleaning_services_feature_section',
		'setting'	=> 'cleaning_features_title',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('lz_cleaning_services_features_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_float'
	));
	$wp_customize->add_control('lz_cleaning_services_features_font_size',array(
		'type' => 'number',
		'label' => __('Title Font Size','lz-cleaning-services'),
		'section' => 'lz_cleaning_services_feature_section',
	));

	$categories = get_categories();
	$cats = array();
	$i = 0;
	$cat_pst[]= 'select';
	foreach($categories as $category){
		if($i==0){
			$default = $category->slug;
			$i++;
		}
		$cat_pst[$category->slug] = $category->name;
	}

	$wp_customize->add_setting('cleaning_features_cat',array(
		'default'	=> 'select',
		'sanitize_callback' => 'lz_cleaning_services_sanitize_choices',
	));
	$wp_customize->add_control('cleaning_features_cat',array(
		'type'    => 'select',
		'choices' => $cat_pst,
		'label' => __('Select Category to display Post','lz-cleaning-services'),
		'section' => 'lz_cleaning_services_feature_section',
	));

	$wp_customize->add_setting('lz_cleaning_services_features_img_size',array(
		'default' => '',
		'sanitize_callback' => 'lz_cleaning_services_sanitize_float'
	));
	$wp_customize->add_control('lz_cleaning_services_features_img_size',array(
		'type' => 'number',
		'label' => __('Image Size','lz-cleaning-services'),
		'section' => 'lz_cleaning_services_feature_section',
	));

	$wp_customize->add_setting('lz_cleaning_services_features_title_font_size',array(
		'default' => '',
		'sanitize_callback' => 'lz_cleaning_services_sanitize_float'
	));
	$wp_customize->add_control('lz_cleaning_services_features_title_font_size',array(
		'type' => 'number',
		'label' => __('Title Font Size','lz-cleaning-services'),
		'section' => 'lz_cleaning_services_feature_section',
	));

	$wp_customize->add_setting('lz_cleaning_services_features_text_font_size',array(
		'default' => '',
		'sanitize_callback' => 'lz_cleaning_services_sanitize_float'
	));
	$wp_customize->add_control('lz_cleaning_services_features_text_font_size',array(
		'type' => 'number',
		'label' => __('Text Font Size','lz-cleaning-services'),
		'section' => 'lz_cleaning_services_feature_section',
	));

	$wp_customize->add_setting('lz_cleaning_services_features_section_padding',array(
      'default' => '',
      'sanitize_callback' => 'lz_cleaning_services_sanitize_float'
	));
	$wp_customize->add_control('lz_cleaning_services_features_section_padding',array(
		'type' => 'number',
		'label' => __('Section Top Bottom Padding','lz-cleaning-services'),
		'section' => 'lz_cleaning_services_feature_section',
	));

   	$wp_customize->add_setting( 'lz_cleaning_services_feature_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_feature_color', array(
	   'label' => 'Section Title Color',
		'section' => 'lz_cleaning_services_feature_section',
    )));

	$wp_customize->add_setting( 'lz_cleaning_services_feature_title_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_feature_title_color', array(
	   'label' => 'Title Color',
		'section' => 'lz_cleaning_services_feature_section',
    )));

	$wp_customize->add_setting( 'lz_cleaning_services_feature_text_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_feature_text_color', array(
	   'label' => 'Text Color',
		'section' => 'lz_cleaning_services_feature_section',
    )));

	$wp_customize->add_setting( 'lz_cleaning_services_feature_btn_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_feature_btn_color', array(
	   'label' => 'Button Text Color',
		'section' => 'lz_cleaning_services_feature_section',
    )));

	//Footer
    $wp_customize->add_section( 'lz_cleaning_services_footer', array(
    	'title'      => __( 'Footer Setting', 'lz-cleaning-services' ),
		'priority'   => null,
		'panel' => 'lz_cleaning_services_panel_id'
	) );

	$wp_customize->add_setting('lz_cleaning_services_show_back_totop',array(
 		'default' => true,
   	'sanitize_callback'	=> 'lz_cleaning_services_sanitize_checkbox'
	));
	$wp_customize->add_control('lz_cleaning_services_show_back_totop',array(
   	'type' => 'checkbox',
   	'label' => __('Show / Hide Back to Top','lz-cleaning-services'),
   	'section' => 'lz_cleaning_services_footer'
	));

 	$wp_customize->add_setting('lz_cleaning_services_footer_copy',array(
		'default'	=> 'Cleaning Services WordPress Theme',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('lz_cleaning_services_footer_copy',array(
		'label'	=> __('Copyright Text','lz-cleaning-services'),
		'section'	=> 'lz_cleaning_services_footer',
		'setting'	=> 'lz_cleaning_services_footer_copy',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('lz_cleaning_services_footer_copy_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_float'
	));
	$wp_customize->add_control('lz_cleaning_services_footer_copy_font_size',array(
		'type' => 'number',
		'label' => __('Font Size','lz-cleaning-services'),
		'section' => 'lz_cleaning_services_footer',
	));

	$wp_customize->add_setting('lz_cleaning_services_copyright_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'lz_cleaning_services_sanitize_float'
 	));
 	$wp_customize->add_control('lz_cleaning_services_copyright_padding',array(
		'type' => 'number',
		'label' => __('Copyright Top Bottom Padding','lz-cleaning-services'),
		'section' => 'lz_cleaning_services_footer',
	));

	$wp_customize->add_setting( 'lz_cleaning_services_footer_widgets_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_footer_widgets_color', array(
		'label' => 'Widgets Title Color',
		'section' => 'lz_cleaning_services_footer',
	)));

	$wp_customize->add_setting( 'lz_cleaning_services_footer_widgets_text_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_footer_widgets_text_color', array(
		'label' => 'Widgets Text Color',
		'section' => 'lz_cleaning_services_footer',
	)));

	$wp_customize->add_setting( 'lz_cleaning_services_copyright_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_copyright_color', array(
		'label' => 'Copyright Text Color',
		'section' => 'lz_cleaning_services_footer',
	)));

	$wp_customize->add_setting( 'lz_cleaning_services_copyrightbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lz_cleaning_services_copyrightbg_color', array(
		'label' => 'Copyright BG Color',
		'section' => 'lz_cleaning_services_footer',
	)));

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

	$wp_customize->selective_refresh->add_partial( 'blogname', array(
		'selector' => '.site-title a',
		'render_callback' => 'lz_cleaning_services_customize_partial_blogname',
	) );
	$wp_customize->selective_refresh->add_partial( 'blogdescription', array(
		'selector' => '.site-description',
		'render_callback' => 'lz_cleaning_services_customize_partial_blogdescription',
	) );
}
add_action( 'customize_register', 'lz_cleaning_services_customize_register' );

function lz_cleaning_services_customize_partial_blogname() {
	bloginfo( 'name' );
}

function lz_cleaning_services_customize_partial_blogdescription() {
	bloginfo( 'description' );
}

function lz_cleaning_services_is_static_front_page() {
	return ( is_front_page() && ! is_home() );
}

function lz_cleaning_services_is_view_with_layout_option() {
	// This option is available on all pages. It's also available on archives when there isn't a sidebar.
	return ( is_page() || ( is_archive() && ! is_active_sidebar( 'sidebar-1' ) ) );
}

/**
 * Singleton class for handling the theme's customizer integration.
 *
 * @since  1.0.0
 * @access public
 */
final class LZ_Cleaning_Services_Customize {

	/**
	 * Returns the instance.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return object
	 */
	public static function get_instance() {

		static $instance = null;

		if ( is_null( $instance ) ) {
			$instance = new self;
			$instance->setup_actions();
		}

		return $instance;
	}

	/**
	 * Constructor method.
	 *
	 * @since  1.0.0
	 * @access private
	 * @return void
	 */
	private function __construct() {}

	/**
	 * Sets up initial actions.
	 *
	 * @since  1.0.0
	 * @access private
	 * @return void
	 */
	private function setup_actions() {

		// Register panels, sections, settings, controls, and partials.
		add_action( 'customize_register', array( $this, 'sections' ) );

		// Register scripts and styles for the controls.
		add_action( 'customize_controls_enqueue_scripts', array( $this, 'enqueue_control_scripts' ), 0 );
	}

	/**
	 * Sets up the customizer sections.
	 *
	 * @since  1.0.0
	 * @access public
	 * @param  object  $manager
	 * @return void
	 */
	public function sections( $manager ) {

		// Load custom sections.
		load_template( trailingslashit( get_template_directory() ) . '/inc/section-pro.php' );

		// Register custom section types.
		$manager->register_section_type( 'LZ_Cleaning_Services_Customize_Section_Pro' );

		// Register sections.
		$manager->add_section(
			new LZ_Cleaning_Services_Customize_Section_Pro(
				$manager,
				'lz_cleaning_services_example_1',
				array(
					'priority' => 9,
					'title'    => esc_html__( 'Cleaning Services Pro', 'lz-cleaning-services' ),
					'pro_text' => esc_html__( 'Go Pro','lz-cleaning-services' ),
					'pro_url'  => esc_url( 'https://www.luzuk.com/products/cleaning-services-wordpress-theme/' ),
				)
			)
		);
	}

	/**
	 * Loads theme customizer CSS.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return void
	 */
	public function enqueue_control_scripts() {

		wp_enqueue_script( 'lz-cleaning-services-customize-controls', trailingslashit( esc_url(get_template_directory_uri()) ) . '/assets/js/customize-controls.js', array( 'customize-controls' ) );

		wp_enqueue_style( 'lz-cleaning-services-customize-controls', trailingslashit( esc_url(get_template_directory_uri()) ) . '/assets/css/customize-controls.css' );
	}
}

// Doing this customizer thang!
LZ_Cleaning_Services_Customize::get_instance();