<?php
/**
 * Business Consulting Lite: Customizer-home-page
 *
 * @subpackage Business Consulting Lite
 * @since 1.0
 */

//  Home Page Panel
	$wp_customize->add_panel( 'business_consulting_lite_custompage_panel', array(
		'title' => esc_html__( 'Custom Page Settings', 'business-consulting-lite' ),
		'priority' => 2,
	));
	// Top Header
    $wp_customize->add_section('business_consulting_lite_top',array(
        'title' => __('Header Settings', 'business-consulting-lite'),
        'panel' => 'business_consulting_lite_custompage_panel',
    ) );
    $wp_customize->add_setting( 'business_consulting_lite_section_contact_heading', array(
			'default'           => '',
			'transport'         => 'refresh',
			'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new Business_Consulting_Lite_Customizer_Customcontrol_Section_Heading( $wp_customize, 'business_consulting_lite_section_contact_heading', array(
			'label'       => esc_html__( 'Header Settings', 'business-consulting-lite' ),	
			'description' => __( 'Add contact info in the below feilds', 'business-consulting-lite' ),		
			'section'     => 'business_consulting_lite_top',
			'settings'    => 'business_consulting_lite_section_contact_heading',
	) ) );
	$wp_customize->add_setting(
		'header_enable',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'business_consulting_lite_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Business_Consulting_Lite_Customizer_Customcontrol_Switch(
			$wp_customize,
			'header_enable',
			array(
				'settings'        => 'header_enable',
				'section'         => 'business_consulting_lite_top',
				'label'           => __( 'Check to show contact details', 'business-consulting-lite' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'business-consulting-lite' ),
					'off'    => __( 'Off', 'business-consulting-lite' ),
				),
				'active_callback' => '',
			)
		)
	);
	$wp_customize->add_setting('business_consulting_lite_call',array(
		'default' => '',
		'sanitize_callback' => 'business_consulting_lite_sanitize_phone_number'
	));
	$wp_customize->add_control('business_consulting_lite_call',array(
		'label' => esc_html__('Add Phone Number','business-consulting-lite'),
		'section' => 'business_consulting_lite_top',
		'setting' => 'business_consulting_lite_call',
		'type'    => 'text'
	));
	$wp_customize->add_setting('business_consulting_lite_call_icon',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Business_Consulting_Lite_Fontawesome_Icon_Chooser(
        $wp_customize,'business_consulting_lite_call_icon',array(
		'label'	=> __('Add call Icon','business-consulting-lite'),
		'transport' => 'refresh',
		'section'	=> 'business_consulting_lite_top',
		'setting'	=> 'business_consulting_lite_call_icon',
		'type'		=> 'icon'
	)));
	$wp_customize->selective_refresh->add_partial( 'business_consulting_lite_call', array(
		'selector' => '.top_header i',
		'render_callback' => 'business_consulting_lite_customize_partial_business_consulting_lite_call',
	) );
	$wp_customize->add_setting('business_consulting_lite_email',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_email'
	));
	$wp_customize->add_control('business_consulting_lite_email',array(
		'label' => esc_html__('Add Email Address','business-consulting-lite'),
		'section' => 'business_consulting_lite_top',
		'setting' => 'business_consulting_lite_email',
		'type'    => 'text',
	));
	$wp_customize->add_setting('business_consulting_lite_email_icon',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Business_Consulting_Lite_Fontawesome_Icon_Chooser(
        $wp_customize,'business_consulting_lite_email_icon',array(
		'label'	=> __('Add email Icon','business-consulting-lite'),
		'transport' => 'refresh',
		'section'	=> 'business_consulting_lite_top',
		'setting'	=> 'business_consulting_lite_email_icon',
		'type'		=> 'icon'
	)));
    $wp_customize->add_setting('business_consulting_lite_talk_btn_text',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('business_consulting_lite_talk_btn_text',array(
		'label' => esc_html__('Add Button Text','business-consulting-lite'),
		'section' => 'business_consulting_lite_top',
		'setting' => 'business_consulting_lite_talk_btn_text',
		'type'    => 'text',
	));
    $wp_customize->add_setting('business_consulting_lite_talk_btn_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
	));
	$wp_customize->add_control('business_consulting_lite_talk_btn_link',array(
		'label' => esc_html__('Add Button URL','business-consulting-lite'),
		'section' => 'business_consulting_lite_top',
		'setting' => 'business_consulting_lite_talk_btn_link',
		'type'    => 'url',
	));

	// Social Media
    $wp_customize->add_section('business_consulting_lite_urls',array(
        'title' => __('Social Media', 'business-consulting-lite'),
		'panel' => 'business_consulting_lite_custompage_panel',
    ) );
    $wp_customize->add_setting( 'business_consulting_lite_section_social_heading', array(
		'default'           => '',
		'transport'         => 'refresh',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new Business_Consulting_Lite_Customizer_Customcontrol_Section_Heading( $wp_customize, 'business_consulting_lite_section_social_heading', array(
		'label'       => esc_html__( 'Social Media Settings', 'business-consulting-lite' ),
		'description' => __( 'Add social media links in the below feilds', 'business-consulting-lite' ),			
		'section'     => 'business_consulting_lite_urls',
		'settings'    => 'business_consulting_lite_section_social_heading',
	) ) );
	$wp_customize->add_setting(
		'header_social_icon_enable',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'business_consulting_lite_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Business_Consulting_Lite_Customizer_Customcontrol_Switch(
			$wp_customize,
			'header_social_icon_enable',
			array(
				'settings'        => 'header_social_icon_enable',
				'section'         => 'business_consulting_lite_urls',
				'label'           => __( 'Check to show social fields', 'business-consulting-lite' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'business-consulting-lite' ),
					'off'    => __( 'Off', 'business-consulting-lite' ),
				),
				'active_callback' => '',
			)
		)
	);
	$wp_customize->add_setting( 'business_consulting_lite_twitter_heading', array(
		'default'           => '',
		'transport'         => 'refresh',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new Business_Consulting_Lite_Customizer_Customcontrol_Section_Heading( $wp_customize, 'business_consulting_lite_twitter_heading', array(
		'label'       => esc_html__( 'Twitter Settings', 'business-consulting-lite' ),		
		'section'     => 'business_consulting_lite_urls',
		'settings'    => 'business_consulting_lite_twitter_heading',
	) ) );
    $wp_customize->add_setting('business_consulting_lite_twitter_icon',array(
		'default'	=> 'fab fa-x-twitter',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Business_Consulting_Lite_Fontawesome_Icon_Chooser(
        $wp_customize,'business_consulting_lite_twitter_icon',array(
		'label'	=> __('Add Icon','business-consulting-lite'),
		'transport' => 'refresh',
		'section'	=> 'business_consulting_lite_urls',
		'setting'	=> 'business_consulting_lite_twitter_icon',
		'type'		=> 'icon'
	)));
	$wp_customize->add_setting('business_consulting_lite_twitter',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
	));
	$wp_customize->add_control('business_consulting_lite_twitter',array(
		'label' => esc_html__('Add URL','business-consulting-lite'),
		'section' => 'business_consulting_lite_urls',
		'setting' => 'business_consulting_lite_twitter',
		'type'    => 'url'
	));
	$wp_customize->add_setting(
		'business_consulting_lite_header_twt_target',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'business_consulting_lite_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Business_Consulting_Lite_Customizer_Customcontrol_Switch(
			$wp_customize,
			'business_consulting_lite_header_twt_target',
			array(
				'settings'        => 'business_consulting_lite_header_twt_target',
				'section'         => 'business_consulting_lite_urls',
				'label'           => __( 'Open link in a new tab', 'business-consulting-lite' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'business-consulting-lite' ),
					'off'    => __( 'Off', 'business-consulting-lite' ),
				),
				'active_callback' => '',
			)
		)
	);
	$wp_customize->add_setting( 'business_consulting_lite_linkedin_heading', array(
			'default'           => '',
			'transport'         => 'refresh',
			'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new Business_Consulting_Lite_Customizer_Customcontrol_Section_Heading( $wp_customize, 'business_consulting_lite_linkedin_heading', array(
		'label'       => esc_html__( 'Linkedin Settings', 'business-consulting-lite' ),		
		'section'     => 'business_consulting_lite_urls',
		'settings'    => 'business_consulting_lite_linkedin_heading',
	) ) );
	$wp_customize->add_setting('business_consulting_lite_linkedin_icon',array(
		'default'	=> 'fab fa-linkedin',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Business_Consulting_Lite_Fontawesome_Icon_Chooser(
        $wp_customize,'business_consulting_lite_linkedin_icon',array(
		'label'	=> __('Add Icon','business-consulting-lite'),
		'transport' => 'refresh',
		'section'	=> 'business_consulting_lite_urls',
		'setting'	=> 'business_consulting_lite_linkedin_icon',
		'type'		=> 'icon'
	)));
	$wp_customize->add_setting('business_consulting_lite_linkedin',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
	));
	$wp_customize->add_control('business_consulting_lite_linkedin',array(
		'label' => esc_html__('Add URL','business-consulting-lite'),
		'section' => 'business_consulting_lite_urls',
		'setting' => 'business_consulting_lite_linkedin',
		'type'    => 'url'
	));
	$wp_customize->add_setting(
		'business_consulting_lite_header_linkedin_target',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'business_consulting_lite_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Business_Consulting_Lite_Customizer_Customcontrol_Switch(
			$wp_customize,
			'business_consulting_lite_header_linkedin_target',
			array(
				'settings'        => 'business_consulting_lite_header_linkedin_target',
				'section'         => 'business_consulting_lite_urls',
				'label'           => __( 'Open link in a new tab', 'business-consulting-lite' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'business-consulting-lite' ),
					'off'    => __( 'Off', 'business-consulting-lite' ),
				),
				'active_callback' => '',
			)
		)
	);
	$wp_customize->add_setting( 'business_consulting_lite_youtube_heading', array(
		'default'           => '',
		'transport'         => 'refresh',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new Business_Consulting_Lite_Customizer_Customcontrol_Section_Heading( $wp_customize, 'business_consulting_lite_youtube_heading', array(
		'label'       => esc_html__( 'Youtube Settings', 'business-consulting-lite' ),		
		'section'     => 'business_consulting_lite_urls',
		'settings'    => 'business_consulting_lite_youtube_heading',
	) ) );
	$wp_customize->add_setting('business_consulting_lite_youtube_icon',array(
		'default'	=> 'fab fa-youtube',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Business_Consulting_Lite_Fontawesome_Icon_Chooser(
        $wp_customize,'business_consulting_lite_youtube_icon',array(
		'label'	=> __('Add Icon','business-consulting-lite'),
		'transport' => 'refresh',
		'section'	=> 'business_consulting_lite_urls',
		'setting'	=> 'business_consulting_lite_youtube_icon',
		'type'		=> 'icon'
	)));
	$wp_customize->add_setting('business_consulting_lite_youtube',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
	));
	$wp_customize->add_control('business_consulting_lite_youtube',array(
		'label' => esc_html__('Add URL','business-consulting-lite'),
		'section' => 'business_consulting_lite_urls',
		'setting' => 'business_consulting_lite_youtube',
		'type'    => 'url'
	));
	$wp_customize->add_setting(
		'business_consulting_lite_header_youtube_target',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'business_consulting_lite_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Business_Consulting_Lite_Customizer_Customcontrol_Switch(
			$wp_customize,
			'business_consulting_lite_header_youtube_target',
			array(
				'settings'        => 'business_consulting_lite_header_youtube_target',
				'section'         => 'business_consulting_lite_urls',
				'label'           => __( 'Open link in a new tab', 'business-consulting-lite' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'business-consulting-lite' ),
					'off'    => __( 'Off', 'business-consulting-lite' ),
				),
				'active_callback' => '',
			)
		)
	);
	$wp_customize->add_setting( 'business_consulting_lite_instagram_heading', array(
		'default'           => '',
		'transport'         => 'refresh',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new Business_Consulting_Lite_Customizer_Customcontrol_Section_Heading( $wp_customize, 'business_consulting_lite_instagram_heading', array(
		'label'       => esc_html__( 'Instagram Settings', 'business-consulting-lite' ),		
		'section'     => 'business_consulting_lite_urls',
		'settings'    => 'business_consulting_lite_instagram_heading',
	) ) );
	$wp_customize->add_setting('business_consulting_lite_instagram_icon',array(
		'default'	=> 'fab fa-instagram',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Business_Consulting_Lite_Fontawesome_Icon_Chooser(
        $wp_customize,'business_consulting_lite_instagram_icon',array(
		'label'	=> __('Add Icon','business-consulting-lite'),
		'transport' => 'refresh',
		'section'	=> 'business_consulting_lite_urls',
		'setting'	=> 'business_consulting_lite_instagram_icon',
		'type'		=> 'icon'
	)));
	$wp_customize->add_setting('business_consulting_lite_instagram',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
	));
	$wp_customize->add_control('business_consulting_lite_instagram',array(
		'label' => esc_html__('Add URL','business-consulting-lite'),
		'section' => 'business_consulting_lite_urls',
		'setting' => 'business_consulting_lite_instagram',
		'type'    => 'url'
	));
	$wp_customize->add_setting(
		'business_consulting_lite_header_instagram_target',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'business_consulting_lite_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Business_Consulting_Lite_Customizer_Customcontrol_Switch(
			$wp_customize,
			'business_consulting_lite_header_instagram_target',
			array(
				'settings'        => 'business_consulting_lite_header_instagram_target',
				'section'         => 'business_consulting_lite_urls',
				'label'           => __( 'Open link in a new tab', 'business-consulting-lite' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'business-consulting-lite' ),
					'off'    => __( 'Off', 'business-consulting-lite' ),
				),
				'active_callback' => '',
			)
		)
	);

    //Slider
	$wp_customize->add_section( 'business_consulting_lite_slider_section' , array(
    	'title'      => __( 'Slider Settings', 'business-consulting-lite' ),
		'panel' => 'business_consulting_lite_custompage_panel',
	) );
	$wp_customize->add_setting( 'business_consulting_lite_section_slide_heading', array(
			'default'           => '',
			'transport'         => 'refresh',
			'sanitize_callback' => 'sanitize_text_field',
		) );
		$wp_customize->add_control( new Business_Consulting_Lite_Customizer_Customcontrol_Section_Heading( $wp_customize, 'business_consulting_lite_section_slide_heading', array(
			'label'       => esc_html__( 'Slider Settings', 'business-consulting-lite' ),
			'description' => __( 'Slider Image Dimension ( 600px x 700px )', 'business-consulting-lite' ),		
			'section'     => 'business_consulting_lite_slider_section',
			'settings'    => 'business_consulting_lite_section_slide_heading',
		) ) );

		$wp_customize->add_setting(
		'business_consulting_lite_hide_show',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'business_consulting_lite_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Business_Consulting_Lite_Customizer_Customcontrol_Switch(
			$wp_customize,
			'business_consulting_lite_hide_show',
			array(
				'settings'        => 'business_consulting_lite_hide_show',
				'section'         => 'business_consulting_lite_slider_section',
				'label'           => __( 'Check To show slider', 'business-consulting-lite' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'business-consulting-lite' ),
					'off'    => __( 'Off', 'business-consulting-lite' ),
				),
				'active_callback' => '',
			)
		)
	);

	$wp_customize->add_setting('business_consulting_lite_slider_count',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('business_consulting_lite_slider_count',array(
		'label'	=> esc_html__('Slider Count','business-consulting-lite'),
		'section'	=> 'business_consulting_lite_slider_section',
		'description' => __( 'After increasing/decreasing counter refresh site for changes to be applied.', 'business-consulting-lite' ),
		'type'		=> 'number',
	));

	$business_consulting_lite_slider_count = get_theme_mod('business_consulting_lite_slider_count');
	
	$business_consulting_lite_args = array('numberposts' => -1);
	$post_list = get_posts($business_consulting_lite_args);
	$i = 0;
	$pst_sls[]= __('Select','business-consulting-lite');
	foreach ($post_list as $key => $p_post) {
		$pst_sls[$p_post->ID]=$p_post->post_title;
	}
	for ( $i = 1; $i <= $business_consulting_lite_slider_count; $i++ ) {
		$wp_customize->add_setting('business_consulting_lite_post_setting'.$i,array(
			'sanitize_callback' => 'business_consulting_lite_sanitize_select',
		));
		$wp_customize->add_control('business_consulting_lite_post_setting'.$i,array(
			'type'    => 'select',
			'choices' => $pst_sls,
			'label' => __('Select post','business-consulting-lite'),
			'section' => 'business_consulting_lite_slider_section',
			
		));
	}
	wp_reset_postdata();

	$wp_customize->add_setting('business_consulting_lite_slider_heading_color', array(
	    'default' => '#ffffff',
	    'sanitize_callback' => 'sanitize_hex_color',
	    'transport' => 'refresh',
	));

	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'business_consulting_lite_slider_heading_color', array(
	    'section' => 'business_consulting_lite_slider_section',
	    'label' => esc_html__('Slider Title Color', 'business-consulting-lite'),
	)));

	$wp_customize->add_setting(
		'business_consulting_lite_slider_excerpt_show_hide',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'business_consulting_lite_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Business_Consulting_Lite_Customizer_Customcontrol_Switch(
			$wp_customize,
			'business_consulting_lite_slider_excerpt_show_hide',
			array(
				'settings'        => 'business_consulting_lite_slider_excerpt_show_hide',
				'section'         => 'business_consulting_lite_slider_section',
				'label'           => __( 'Show Hide excerpt', 'business-consulting-lite' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'business-consulting-lite' ),
					'off'    => __( 'Off', 'business-consulting-lite' ),
				),
			)
		)
	);
	$wp_customize->add_setting('business_consulting_lite_slider_excerpt_count',array(
		'default'=> 20,
		'transport' => 'refresh',
		'sanitize_callback' => 'business_consulting_lite_sanitize_integer'
	));
	$wp_customize->add_control(new Business_Consulting_Lite_Slider_Custom_Control( $wp_customize, 'business_consulting_lite_slider_excerpt_count',array(
		'label' => esc_html__( 'Excerpt Limit','business-consulting-lite' ),
		'section'=> 'business_consulting_lite_slider_section',
		'settings'=>'business_consulting_lite_slider_excerpt_count',
		'input_attrs' => array(
			'reset'			   => 20,
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
	)));
	$wp_customize->add_setting('business_consulting_lite_slider_excerpt_color', array(
	    'default' => '#ffffff',
	    'sanitize_callback' => 'sanitize_hex_color',
	    'transport' => 'refresh',
	));

	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'business_consulting_lite_slider_excerpt_color', array(
	    'section' => 'business_consulting_lite_slider_section',
	    'label' => esc_html__('Slider Excerpt Color', 'business-consulting-lite'),
	)));
	$wp_customize->add_setting(
		'business_consulting_lite_slider_button_show_hide',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'business_consulting_lite_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Business_Consulting_Lite_Customizer_Customcontrol_Switch(
			$wp_customize,
			'business_consulting_lite_slider_button_show_hide',
			array(
				'settings'        => 'business_consulting_lite_slider_button_show_hide',
				'section'         => 'business_consulting_lite_slider_section',
				'label'           => __( 'Show Hide Button', 'business-consulting-lite' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'business-consulting-lite' ),
					'off'    => __( 'Off', 'business-consulting-lite' ),
				),
			)
		)
	);
	$wp_customize->add_setting('business_consulting_lite_slider_read_more',array(
		'default' => 'READ MORE',
		'sanitize_callback' => 'sanitize_text_field'
	)); 
	$wp_customize->add_control('business_consulting_lite_slider_read_more',array(
		'label' => esc_html__('Button Text','business-consulting-lite'),
		'section' => 'business_consulting_lite_slider_section',
		'setting' => 'business_consulting_lite_slider_read_more',
		'type'    => 'text',
	));

	$wp_customize->add_setting('business_consulting_lite_slider_content_alignment',array(
        'default' => 'CENTER-ALIGN',
        'sanitize_callback' => 'business_consulting_lite_sanitize_choices'
	));
	$wp_customize->add_control('business_consulting_lite_slider_content_alignment',array(
		'type' => 'radio',
		'label'     => __('Slider Content Alignment', 'business-consulting-lite'),
		'section' => 'business_consulting_lite_slider_section',
		'type' => 'select',
		'choices' => array(
			'LEFT-ALIGN' => __('LEFT','business-consulting-lite'),
            'CENTER-ALIGN' => __('CENTER','business-consulting-lite'),
            'RIGHT-ALIGN' => __('RIGHT','business-consulting-lite'),
		),
	) );
	$wp_customize->add_setting('business_consulting_lite_slider_overlay', array(
	    'default' => '#084588',
	    'sanitize_callback' => 'sanitize_hex_color',
	    'transport' => 'refresh',
	));

	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'business_consulting_lite_slider_overlay', array(
	    'section' => 'business_consulting_lite_slider_section',
	    'label' => esc_html__('Slider Overlay Color', 'business-consulting-lite'),
	)));
	$wp_customize->add_setting('business_consulting_lite_slider_opacity',array(
        'default' => '0.5',
        'sanitize_callback' => 'business_consulting_lite_sanitize_choices'
	));
	$wp_customize->add_control('business_consulting_lite_slider_opacity',array(
		'type' => 'radio',
		'label'     => __('Slider Opacity', 'business-consulting-lite'),
		'section' => 'business_consulting_lite_slider_section',
		'type' => 'select',
		'choices' => array(
			'0' => __('0','business-consulting-lite'),
			'0.1' => __('0.1','business-consulting-lite'),
			'0.2' => __('0.2','business-consulting-lite'),
			'0.3' => __('0.3','business-consulting-lite'),
			'0.4' => __('0.4','business-consulting-lite'),
			'0.5' => __('0.5','business-consulting-lite'),
			'0.6' => __('0.6','business-consulting-lite'),
			'0.7' => __('0.7','business-consulting-lite'),
			'0.8' => __('0.8','business-consulting-lite'),
			'0.9' => __('0.9','business-consulting-lite'),
			'1' => __('1','business-consulting-lite')
		),
	) );

	// Skills Section
	$wp_customize->add_section( 'business_consulting_lite_skill_section' , array(
    	'title'      => __( 'Skills Section Settings', 'business-consulting-lite' ),
		'panel' => 'business_consulting_lite_custompage_panel',
	) );
	$wp_customize->add_setting( 'business_consulting_lite_section_skill_heading', array(
		'default'           => '',
		'transport'         => 'refresh',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new Business_Consulting_Lite_Customizer_Customcontrol_Section_Heading( $wp_customize, 'business_consulting_lite_section_skill_heading', array(
			'label'       => esc_html__( 'Skills Section Settings', 'business-consulting-lite' ),	
			'section'     => 'business_consulting_lite_skill_section',
			'settings'    => 'business_consulting_lite_section_skill_heading',
	) ) );
	$wp_customize->add_setting(
		'business_consulting_lite_skill_enable',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'business_consulting_lite_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Business_Consulting_Lite_Customizer_Customcontrol_Switch(
			$wp_customize,
			'business_consulting_lite_skill_enable',
			array(
				'settings'        => 'business_consulting_lite_skill_enable',
				'section'         => 'business_consulting_lite_skill_section',
				'label'           => __( 'Check To show Section', 'business-consulting-lite' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'business-consulting-lite' ),
					'off'    => __( 'Off', 'business-consulting-lite' ),
				),
				'active_callback' => '',
			)
		)
	);
	$wp_customize->add_setting('business_consulting_lite_skill_title',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('business_consulting_lite_skill_title',array(
		'label'	=> esc_html__('Section Title ','business-consulting-lite'),
		'section'	=> 'business_consulting_lite_skill_section',
		'type'		=> 'text',
	));
	$wp_customize->add_setting('business_consulting_lite_skill_btn_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('business_consulting_lite_skill_btn_text',array(
		'label'	=> esc_html__('Section Text','business-consulting-lite'),
		'section'	=> 'business_consulting_lite_skill_section',
		'type'		=> 'text',
	));
	$wp_customize->add_setting('business_consulting_lite_skill_increament',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('business_consulting_lite_skill_increament',array(
		'label'	=> esc_html__('skill Box Increament','business-consulting-lite'),
		'section'	=> 'business_consulting_lite_skill_section',
		'type'		=> 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 8,
		),
	));
	$business_consulting_lite_skill = get_theme_mod('business_consulting_lite_skill_increament');

	for ($i=1; $i <= $business_consulting_lite_skill ; $i++) {
		
		$wp_customize->add_setting('business_consulting_lite_skill_box_icon'.$i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));	
		$wp_customize->add_control(new Business_Consulting_Lite_Fontawesome_Icon_Chooser(
	        $wp_customize,'business_consulting_lite_skill_box_icon'.$i,array(
			'label'	=> __('Icon','business-consulting-lite'),
			'transport' => 'refresh',
			'section'	=> 'business_consulting_lite_skill_section',
			'setting'	=> 'business_consulting_lite_skill_box_icon',
			'type'		=> 'icon',
		)));

		$wp_customize->add_setting('business_consulting_lite_skill_box_number'.$i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));
		$wp_customize->add_control('business_consulting_lite_skill_box_number'.$i,array(
			'label'	=> esc_html__('Title ','business-consulting-lite').$i,
			'section'	=> 'business_consulting_lite_skill_section',
			'type'		=> 'text',
		));

		$wp_customize->add_setting('business_consulting_lite_skill_box_title'.$i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));
		$wp_customize->add_control('business_consulting_lite_skill_box_title'.$i,array(
			'label'	=> esc_html__('Text ','business-consulting-lite').$i,
			'section'	=> 'business_consulting_lite_skill_section',
			'type'		=> 'text',
		));
	}

	//Footer
    $wp_customize->add_section( 'business_consulting_lite_footer_copyright', array(
    	'title'      => esc_html__( 'Footer Text', 'business-consulting-lite' ),
		'panel' => 'business_consulting_lite_custompage_panel',
	) );
    $wp_customize->add_setting( 'business_consulting_lite_section_footer_heading', array(
		'default'           => '',
		'transport'         => 'refresh',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new Business_Consulting_Lite_Customizer_Customcontrol_Section_Heading( $wp_customize, 'business_consulting_lite_section_footer_heading', array(
		'label'       => esc_html__( 'Footer Settings', 'business-consulting-lite' ),		
		'section'     => 'business_consulting_lite_footer_copyright',
		'settings'    => 'business_consulting_lite_section_footer_heading',
	) ) );
    $wp_customize->add_setting('business_consulting_lite_footer_text',array(
		'default'	=> 'Business Consulting WordPress Theme',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('business_consulting_lite_footer_text',array(
		'label'	=> esc_html__('Copyright Text','business-consulting-lite'),
		'section'	=> 'business_consulting_lite_footer_copyright',
		'type'		=> 'textarea'
	));
	$wp_customize->add_setting('business_consulting_lite_footer_content_alignment',array(
        'default' => 'CENTER-ALIGN',
        'sanitize_callback' => 'business_consulting_lite_sanitize_choices'
	));
	$wp_customize->add_control('business_consulting_lite_footer_content_alignment',array(
		'type' => 'radio',
		'label'     => __('Footer Content Alignment', 'business-consulting-lite'),
		'section' => 'business_consulting_lite_footer_copyright',
		'type' => 'select',
		'choices' => array(
			'LEFT-ALIGN' => __('LEFT','business-consulting-lite'),
            'CENTER-ALIGN' => __('CENTER','business-consulting-lite'),
            'RIGHT-ALIGN' => __('RIGHT','business-consulting-lite'),
		),
	) );

	$wp_customize->add_setting(
		'business_consulting_lite_footer_widgets_show_hide',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'business_consulting_lite_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new Business_Consulting_Lite_Customizer_Customcontrol_Switch(
			$wp_customize,
			'business_consulting_lite_footer_widgets_show_hide',
			array(
				'settings'        => 'business_consulting_lite_footer_widgets_show_hide',
				'section'         => 'business_consulting_lite_footer_copyright',
				'label'           => __( 'Check To show Footer Widgets', 'business-consulting-lite' ),
				'choices'		  => array(
					'1'      => __( 'On', 'business-consulting-lite' ),
					'off'    => __( 'Off', 'business-consulting-lite' ),
				),
				'active_callback' => '',
			)
		)
	);

	$wp_customize->add_setting('business_consulting_lite_footer_widget',array(
        'default' => '4',
        'sanitize_callback' => 'business_consulting_lite_sanitize_choices'
	));
	$wp_customize->add_control('business_consulting_lite_footer_widget',array(
		'type' => 'radio',
		'label'     => __('Footer Per Column', 'business-consulting-lite'),
		'section' => 'business_consulting_lite_footer_copyright',
		'type' => 'select',
		'choices' => array(
			'1' => __('1','business-consulting-lite'),
            '2' => __('2','business-consulting-lite'),
            '3' => __('3','business-consulting-lite'),
            '4' => __('4','business-consulting-lite'),
		)
	) );