<?php
/**
 * One Login Business: Customizer-home-page
 *
 * @subpackage One Login Business
 * @since 1.0
 */

	//  Home Page Panel
	$wp_customize->add_panel( 'one_login_business_custompage_panel', array(
		'title' => esc_html__( 'Custom Page Settings', 'one-login-business' ),
		'priority' => 2,
	));
	//Top Bar
  	$wp_customize->add_section('one_login_business_topbar',array(
    	'title' => esc_html__('Topbar Section','one-login-business'),
    	'priority'  => 2,
    	'panel' => 'one_login_business_custompage_panel',
  	));

  	$wp_customize->add_setting( 'one_login_business_section_contact_heading', array(
		'default'           => '',
		'transport'         => 'refresh',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new One_Login_Business_Customizer_Customcontrol_Section_Heading( $wp_customize, 'one_login_business_section_contact_heading', array(
		'label'       => esc_html__( 'Topbar Settings', 'one-login-business' ),	
		'description' => esc_html__('Add topbar content','one-login-business'),	
		'section'     => 'one_login_business_topbar',
		'settings'    => 'one_login_business_section_contact_heading',
	) ) );

	$wp_customize->add_setting('one_login_business_call1',array(
    	'default' => '',
    	'sanitize_callback' => 'one_login_business_sanitize_phone_number',
  	));
  	$wp_customize->add_control('one_login_business_call1',array(
    	'label' => esc_html__('Phone Number','one-login-business'),
    	'section' => 'one_login_business_topbar',
    	'type'  => 'text',
    	
  	));

	$wp_customize->add_setting('one_login_business_call_icon',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new One_Login_Business_Fontawesome_Icon_Chooser(
        $wp_customize,'one_login_business_call_icon',array(
		'label'	=> __('Add Phone Icon','one-login-business'),
		'transport' => 'refresh',
		'section'	=> 'one_login_business_topbar',
		'setting'	=> 'one_login_business_call_icon',
		'type'		=> 'icon'
	)));

  	$wp_customize->add_setting('one_login_business_mail1',array(
    	'default' => '',
    	'sanitize_callback' => 'sanitize_email',
  	));
  	$wp_customize->add_control('one_login_business_mail1',array(
    	'label' => esc_html__('Mail','one-login-business'),
    	'section' => 'one_login_business_topbar',
    	'type'  => 'text',
    	
  	));

  	$wp_customize->add_setting('one_login_business_mail_icon',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new One_Login_Business_Fontawesome_Icon_Chooser(
        $wp_customize,'one_login_business_mail_icon',array(
		'label'	=> __('Add Email Icon','one-login-business'),
		'transport' => 'refresh',
		'section'	=> 'one_login_business_topbar',
		'setting'	=> 'one_login_business_mail_icon',
		'type'		=> 'icon'
	)));

  	$wp_customize->add_setting('one_login_business_time1',array(
    	'default' => '',
    	'sanitize_callback' => 'sanitize_text_field',
  	));
  	$wp_customize->add_control('one_login_business_time1',array(
    	'label' => esc_html__('Timing','one-login-business'),
    	'section' => 'one_login_business_topbar',
    	'type'  => 'text',
    	
  	));

  	$wp_customize->add_setting('one_login_business_clock_icon',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new One_Login_Business_Fontawesome_Icon_Chooser(
        $wp_customize,'one_login_business_clock_icon',array(
		'label'	=> __('Add Timing Icon','one-login-business'),
		'transport' => 'refresh',
		'section'	=> 'one_login_business_topbar',
		'setting'	=> 'one_login_business_clock_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('one_login_business_free1',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field'
	)); 
	$wp_customize->add_control('one_login_business_free1',array(
		'label' => esc_html__('Button text','one-login-business'),
		'section' => 'one_login_business_topbar',
		'type'  => 'text',
		
	));

	$wp_customize->add_setting('one_login_business_free',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
	)); 
	$wp_customize->add_control('one_login_business_free',array(
		'label' => esc_html__('Add Link','one-login-business'),
		'section' => 'one_login_business_topbar',
		'setting' => 'one_login_business_free',
		'type'  => 'url',
		
	));

	// Social Media
    $wp_customize->add_section('one_login_business_urls',array(
        'title' => __('Social Media', 'one-login-business'),
        'priority'=> 2,
        'panel' => 'one_login_business_custompage_panel',
    ) );

     $wp_customize->add_setting( 'one_login_business_section_social_heading', array(
			'default'           => '',
			'transport'         => 'refresh',
			'sanitize_callback' => 'sanitize_text_field',
		) );
	$wp_customize->add_control( new One_Login_Business_Customizer_Customcontrol_Section_Heading( $wp_customize, 'one_login_business_section_social_heading', array(
		'label'       => esc_html__( 'Social Media Settings', 'one-login-business' ),
		'description' => __( 'Add social media links in the below feilds', 'one-login-business' ),			
		'section'     => 'one_login_business_urls',
		'settings'    => 'one_login_business_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'    => 'one_login_business_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new One_Login_Business_Customizer_Customcontrol_Switch(
			$wp_customize,
			'header_social_icon_enable',
			array(
				'settings'        => 'header_social_icon_enable',
				'section'         => 'one_login_business_urls',
				'label'           => __( 'Check to show social fields', 'one-login-business' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'one-login-business' ),
					'off'    => __( 'Off', 'one-login-business' ),
				),
				'active_callback' => '',
			)
		)
	);

    $wp_customize->add_setting('one_login_business_twitter_icon',array(
		'default'	=> 'fab fa-twitter',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new One_Login_Business_Fontawesome_Icon_Chooser(
        $wp_customize,'one_login_business_twitter_icon',array(
		'label'	=> __('Add Twitter Icon','one-login-business'),
		'transport' => 'refresh',
		'section'	=> 'one_login_business_urls',
		'setting'	=> 'one_login_business_twitter_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('one_login_business_twitter',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
	));
	$wp_customize->add_control('one_login_business_twitter',array(
		'label' => esc_html__('Twitter URL','one-login-business'),
		'section' => 'one_login_business_urls',
		'setting' => 'one_login_business_twitter',
		'type'    => 'url'
	));

	$wp_customize->add_setting(
		'one_login_business_header_twt_target',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'one_login_business_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new One_Login_Business_Customizer_Customcontrol_Switch(
			$wp_customize,
			'one_login_business_header_twt_target',
			array(
				'settings'        => 'one_login_business_header_twt_target',
				'section'         => 'one_login_business_urls',
				'label'           => __( 'Open link in a new tab', 'one-login-business' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'one-login-business' ),
					'off'    => __( 'Off', 'one-login-business' ),
				),
				'active_callback' => '',
			)
		)
	);

	$wp_customize->add_setting('one_login_business_linkedin_icon',array(
		'default'	=> 'fab fa-linkedin',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new One_Login_Business_Fontawesome_Icon_Chooser(
        $wp_customize,'one_login_business_linkedin_icon',array(
		'label'	=> __('Add Linkedin Icon','one-login-business'),
		'transport' => 'refresh',
		'section'	=> 'one_login_business_urls',
		'setting'	=> 'one_login_business_linkedin_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('one_login_business_linkedin',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
	));
	$wp_customize->add_control('one_login_business_linkedin',array(
		'label' => esc_html__('Linkedin URL','one-login-business'),
		'section' => 'one_login_business_urls',
		'setting' => 'one_login_business_linkedin',
		'type'    => 'url'
	));

	$wp_customize->add_setting(
		'one_login_business_header_linkedin_target',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'one_login_business_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new One_Login_Business_Customizer_Customcontrol_Switch(
			$wp_customize,
			'one_login_business_header_linkedin_target',
			array(
				'settings'        => 'one_login_business_header_linkedin_target',
				'section'         => 'one_login_business_urls',
				'label'           => __( 'Open link in a new tab', 'one-login-business' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'one-login-business' ),
					'off'    => __( 'Off', 'one-login-business' ),
				),
				'active_callback' => '',
			)
		)
	);

	$wp_customize->add_setting('one_login_business_youtube_icon',array(
		'default'	=> 'fab fa-youtube',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new One_Login_Business_Fontawesome_Icon_Chooser(
        $wp_customize,'one_login_business_youtube_icon',array(
		'label'	=> __('Add Youtube Icon','one-login-business'),
		'transport' => 'refresh',
		'section'	=> 'one_login_business_urls',
		'setting'	=> 'one_login_business_youtube_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('one_login_business_youtube',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
	));
	$wp_customize->add_control('one_login_business_youtube',array(
		'label' => esc_html__('Youtube URL','one-login-business'),
		'section' => 'one_login_business_urls',
		'setting' => 'one_login_business_youtube',
		'type'    => 'url'
	));

	$wp_customize->add_setting(
		'one_login_business_header_youtube_target',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'one_login_business_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new One_Login_Business_Customizer_Customcontrol_Switch(
			$wp_customize,
			'one_login_business_header_youtube_target',
			array(
				'settings'        => 'one_login_business_header_youtube_target',
				'section'         => 'one_login_business_urls',
				'label'           => __( 'Open link in a new tab', 'one-login-business' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'one-login-business' ),
					'off'    => __( 'Off', 'one-login-business' ),
				),
				'active_callback' => '',
			)
		)
	);
	$wp_customize->add_setting('one_login_business_instagram_icon',array(
		'default'	=> 'fab fa-instagram',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new One_Login_Business_Fontawesome_Icon_Chooser(
        $wp_customize,'one_login_business_instagram_icon',array(
		'label'	=> __('Add Instagram Icon','one-login-business'),
		'transport' => 'refresh',
		'section'	=> 'one_login_business_urls',
		'setting'	=> 'one_login_business_instagram_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('one_login_business_instagram',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
	));
	$wp_customize->add_control('one_login_business_instagram',array(
		'label' => esc_html__('Instagram URL','one-login-business'),
		'section' => 'one_login_business_urls',
		'setting' => 'one_login_business_instagram',
		'type'    => 'url'
	));

	$wp_customize->add_setting(
		'one_login_business_header_instagram_target',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'one_login_business_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new One_Login_Business_Customizer_Customcontrol_Switch(
			$wp_customize,
			'one_login_business_header_instagram_target',
			array(
				'settings'        => 'one_login_business_header_instagram_target',
				'section'         => 'one_login_business_urls',
				'label'           => __( 'Open link in a new tab', 'one-login-business' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'one-login-business' ),
					'off'    => __( 'Off', 'one-login-business' ),
				),
				'active_callback' => '',
			)
		)
	);


	//home page slider
	$wp_customize->add_section( 'one_login_business_slidersettings' , array(
    	'title'      => esc_html__( 'Slider Settings', 'one-login-business' ),
    	'priority'=> 2,
    	'panel' => 'one_login_business_custompage_panel',
	) );

	$wp_customize->add_setting( 'one_login_business_section_slide_heading', array(
			'default'           => '',
			'transport'         => 'refresh',
			'sanitize_callback' => 'sanitize_text_field',
		) );
		$wp_customize->add_control( new One_Login_Business_Customizer_Customcontrol_Section_Heading( $wp_customize, 'one_login_business_section_slide_heading', array(
			'label'       => esc_html__( 'Slider Settings', 'one-login-business' ),	
			'section'     => 'one_login_business_slidersettings',
			'settings'    => 'one_login_business_section_slide_heading',
		) ) );

		$wp_customize->add_setting(
		'one_login_business_hide_show',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'one_login_business_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new One_Login_Business_Customizer_Customcontrol_Switch(
			$wp_customize,
			'one_login_business_hide_show',
			array(
				'settings'        => 'one_login_business_hide_show',
				'section'         => 'one_login_business_slidersettings',
				'label'           => __( 'Check To Show Slider', 'one-login-business' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'one-login-business' ),
					'off'    => __( 'Off', 'one-login-business' ),
				),
				'active_callback' => '',
			)
		)
	);

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

	$one_login_business_slider_count = get_theme_mod('one_login_business_slider_count');

	for ( $count = 1; $count <= $one_login_business_slider_count; $count++ ) {

		$wp_customize->add_setting( 'one_login_business_slider_page' . $count, array(
			'default'           => '',
			'sanitize_callback' => 'one_login_business_sanitize_dropdown_pages'
		) );

		$wp_customize->add_control( 'one_login_business_slider_page' . $count, array(
			'label'    => esc_html__( 'Select Slider Page', 'one-login-business' ),
			'section'  => 'one_login_business_slidersettings',
			'type'     => 'dropdown-pages'
		) );
	}
	$wp_customize->add_setting(
		'one_login_business_slider_excerpt_show_hide',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'one_login_business_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new One_Login_Business_Customizer_Customcontrol_Switch(
			$wp_customize,
			'one_login_business_slider_excerpt_show_hide',
			array(
				'settings'        => 'one_login_business_slider_excerpt_show_hide',
				'section'         => 'one_login_business_slidersettings',
				'label'           => __( 'Show Hide excerpt', 'one-login-business' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'one-login-business' ),
					'off'    => __( 'Off', 'one-login-business' ),
				),
				
			)
		)
	);
	$wp_customize->add_setting('one_login_business_slider_excerpt_count',array(
		'default'=> 20,
		'transport' => 'refresh',
		'sanitize_callback' => 'one_login_business_sanitize_integer'
	));
	$wp_customize->add_control(new One_Login_Business_Slider_Custom_Control( $wp_customize, 'one_login_business_slider_excerpt_count',array(
		'label' => esc_html__( 'Excerpt Limit','one-login-business' ),
		'section'=> 'one_login_business_slidersettings',
		'settings'=>'one_login_business_slider_excerpt_count',
		'input_attrs' => array(
			'reset'			   => 20,
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
        
	)));
	$wp_customize->add_setting(
		'one_login_business_slider_button_show_hide',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'one_login_business_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new One_Login_Business_Customizer_Customcontrol_Switch(
			$wp_customize,
			'one_login_business_slider_button_show_hide',
			array(
				'settings'        => 'one_login_business_slider_button_show_hide',
				'section'         => 'one_login_business_slidersettings',
				'label'           => __( 'Show Hide Button', 'one-login-business' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'one-login-business' ),
					'off'    => __( 'Off', 'one-login-business' ),
				),
			)
		)
	);
	$wp_customize->add_setting('one_login_business_slider_read_more',array(
		'default' => 'READ MORE',
		'sanitize_callback' => 'sanitize_text_field'
	)); 
	$wp_customize->add_control('one_login_business_slider_read_more',array(
		'label' => esc_html__('Button Text','one-login-business'),
		'section' => 'one_login_business_slidersettings',
		'setting' => 'one_login_business_slider_read_more',
		'type'    => 'text',
	));
	$wp_customize->add_setting('one_login_business_slider_content_alignment',array(
        'default' => 'CENTER-ALIGN',
        'sanitize_callback' => 'one_login_business_sanitize_choices'
	));
	$wp_customize->add_control('one_login_business_slider_content_alignment',array(
        'type' => 'select',
        'label' => __('Slider Content Alignment','one-login-business'),
        'section' => 'one_login_business_slidersettings',
        'choices' => array(
            'LEFT-ALIGN' => __('LEFT-ALIGN','one-login-business'),
            'CENTER-ALIGN' => __('CENTER-ALIGN','one-login-business'),
            'RIGHT-ALIGN' => __('RIGHT-ALIGN','one-login-business'),),
	) );
	$wp_customize->add_setting('one_login_business_slider_opacity',array(
        'default' => '0.7',
        'sanitize_callback' => 'one_login_business_sanitize_choices'
	));
	$wp_customize->add_control('one_login_business_slider_opacity',array(
		'type' => 'radio',
		'label'     => __('Slider Opacity', 'one-login-business'),
		'section' => 'one_login_business_slider_section',
		'type' => 'select',
		'choices' => array(
			'0' => __('0','one-login-business'),
			'0.1' => __('0.1','one-login-business'),
			'0.2' => __('0.2','one-login-business'),
			'0.3' => __('0.3','one-login-business'),
			'0.4' => __('0.4','one-login-business'),
			'0.5' => __('0.5','one-login-business'),
			'0.6' => __('0.6','one-login-business'),
			'0.7' => __('0.7','one-login-business'),
			'0.8' => __('0.8','one-login-business'),
			'0.9' => __('0.9','one-login-business'),
			'1' => __('1','one-login-business')
		),
	) );

	
	// OUR services
	$wp_customize->add_section('one_login_business_service',array(
		'title' => esc_html__('Our Services','one-login-business'),
		'priority'=> 2,
		'panel' => 'one_login_business_custompage_panel',
	));

	$wp_customize->add_setting( 'one_login_business_section_service_heading', array(
			'default'           => '',
			'transport'         => 'refresh',
			'sanitize_callback' => 'sanitize_text_field',
		) );
	$wp_customize->add_control( new One_Login_Business_Customizer_Customcontrol_Section_Heading( $wp_customize, 'one_login_business_section_service_heading', array(
		'label'       => esc_html__( 'Services Settings', 'one-login-business' ),	
		'section'     => 'one_login_business_service',
		'settings'    => 'one_login_business_section_service_heading',
	) ) );
	$wp_customize->add_setting(
		'one_login_business_service_hide_show',
		array(
			'type'                 => 'option',
			'capability'           => 'edit_theme_options',
			'theme_supports'       => '',
			'default'              => '1',
			'transport'            => 'refresh',
			'sanitize_callback'    => 'one_login_business_callback_sanitize_switch',
		)
	);
	$wp_customize->add_control(
		new One_Login_Business_Customizer_Customcontrol_Switch(
			$wp_customize,
			'one_login_business_service_hide_show',
			array(
				'settings'        => 'one_login_business_service_hide_show',
				'section'         => 'one_login_business_service',
				'label'           => __( 'Check To Show Services ', 'one-login-business' ),				
				'choices'		  => array(
					'1'      => __( 'On', 'one-login-business' ),
					'off'    => __( 'Off', 'one-login-business' ),
				),
				'active_callback' => '',
			)
		)
	);


	$wp_customize->add_setting('one_login_business_our_services_title',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field'
	)); 
	$wp_customize->add_control('one_login_business_our_services_title',array(
		'label' => esc_html__('Section Title','one-login-business'),
		'section' => 'one_login_business_service',
		'setting' => 'one_login_business_our_services_title',
		'type'    => 'text',
		
	));

	$wp_customize->add_setting('one_login_business_our_services_subtitle',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field'
	)); 
	$wp_customize->add_control('one_login_business_our_services_subtitle',array(
		'label' => esc_html__('Section Sub-title','one-login-business'),
		'section' => 'one_login_business_service',
		'setting' => 'one_login_business_our_services_subtitle',
		'type'    => 'text',
		
	));

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

	$wp_customize->add_setting('one_login_business_category_setting',array(
		'default' => 'select',
		'sanitize_callback' => 'one_login_business_sanitize_choices',
	));
	$wp_customize->add_control('one_login_business_category_setting',array(
		'type'    => 'select',
		'choices' => $cat_post,
		'label' => esc_html__('Select Category to display Post','one-login-business'),
		'section' => 'one_login_business_service',
		
	));

	$wp_customize->add_setting('one_login_business_category_order_type',array(
        'default' => 'ascending',
        'sanitize_callback' => 'one_login_business_sanitize_choices'
	));
	$wp_customize->add_control('one_login_business_category_order_type',array(
        'type' => 'select',
        'label' => __('Post Order','one-login-business'),
        'section' => 'one_login_business_service',
        'choices' => array(
            'ascending' => __('Oldest to Newest','one-login-business'),
            'descending' => __('Newest to Oldest','one-login-business'),
            'a-to-z' => __('A&rarr;Z','one-login-business'),
            'z-to-a' => __('Z&rarr;A','one-login-business'),
        ),
	) );

	$wp_customize->add_setting('one_login_business_service_count',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('one_login_business_service_count',array(
		'label'	=> esc_html__('Service Count','one-login-business'),
		'section'	=> 'one_login_business_service',
		'type'		=> 'number',
	));

	//Footer
    $wp_customize->add_section( 'one_login_business_footer_copyright', array(
    	'title'      => esc_html__( 'Footer Text', 'one-login-business' ),
    	'priority'       => 5,
    	'panel' => 'one_login_business_custompage_panel',
	) );
	$wp_customize->add_setting( 'one_login_business_section_footer_heading', array(
		'default'           => '',
		'transport'         => 'refresh',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	$wp_customize->add_control( new One_Login_Business_Customizer_Customcontrol_Section_Heading( $wp_customize, 'one_login_business_section_footer_heading', array(
		'label'       => esc_html__( 'Footer Settings', 'one-login-business' ),		
		'section'     => 'one_login_business_footer_copyright',
		'settings'    => 'one_login_business_section_footer_heading',
		'priority'       => 1,
	) ) );
    $wp_customize->add_setting('one_login_business_footer_text',array(
			'default'	=> 'One Login Business WordPress Theme',
			'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('one_login_business_footer_text',array(
			'label'	=> esc_html__('Copyright Text','one-login-business'),
			'section'	=> 'one_login_business_footer_copyright',
			'type'		=> 'textarea'
	));
	$wp_customize->selective_refresh->add_partial( 'one_login_business_footer_text', array(
			'selector' => '.site-info a',
			'render_callback' => 'one_login_business_customize_partial_one_login_business_footer_text',
	) );
	$wp_customize->add_setting('one_login_business_footer_content_alignment',array(
        'default' => 'CENTER-ALIGN',
        'sanitize_callback' => 'one_login_business_sanitize_choices'
	));
	$wp_customize->add_control('one_login_business_footer_content_alignment',array(
		'type' => 'radio',
		'label'     => __('Footer Content Alignment', 'one-login-business'),
		'section' => 'one_login_business_footer_copyright',
		'type' => 'select',
		'choices' => array(
			'LEFT-ALIGN' => __('LEFT','one-login-business'),
            'CENTER-ALIGN' => __('CENTER','one-login-business'),
            'RIGHT-ALIGN' => __('RIGHT','one-login-business'),
		),
	) );

	$wp_customize->add_setting('one_login_business_footer_widget',array(
        'default' => '4',
        'sanitize_callback' => 'one_login_business_sanitize_choices'
	));
	$wp_customize->add_control('one_login_business_footer_widget',array(
		'type' => 'radio',
		'label'     => __('Footer Per Column', 'one-login-business'),
		'section' => 'one_login_business_footer_copyright',
		'type' => 'select',
		'choices' => array(
			'1' => __('1','one-login-business'),
            '2' => __('2','one-login-business'),
            '3' => __('3','one-login-business'),
            '4' => __('4','one-login-business'),
		)
	) );

