<?php
function led_tv_upper_header_settings( $wp_customize ) {
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';

	/*=========================================
	Social Media
	=========================================*/
	$wp_customize->add_section(
        'led_tv_upper_header',
        array(
        	'priority'      => 3,
            'title' 		=> __('Header Information','led-tv'),
			'panel'  		=> 'led_tv_frontpage_sections',
		)
    );

	$wp_customize->add_setting(
		'led_tv_call_text',array(
			'default'=> 'PHONE NO',
			'sanitize_callback'	=> 'sanitize_text_field'
		)
	);

	$wp_customize->add_control(
		'led_tv_call_text',array(
			'label'	=> __('Add Call Text','led-tv'),
			'section'=> 'led_tv_upper_header',
			'type'=> 'text'
		)
	);

	$wp_customize->add_setting(
		'led_tv_call',
		array(
			'default'=> '+00 123 456 7890',
			'sanitize_callback'	=> 'led_tv_sanitize_phone_number'
		)
	);

	$wp_customize->add_control(
		'led_tv_call',array(
			'label'	=> __('Add Phone Number','led-tv'),
			'section'=> 'led_tv_upper_header',
			'type'=> 'text'
		)
	);

	$wp_customize->add_setting(
   		'led_tv_mail_text',
   		array(
			'default'=> 'EMAIL ADDRESS',
			'sanitize_callback'	=> 'sanitize_text_field'
		)
	);

	$wp_customize->add_control(
		'led_tv_mail_text',
		array(
			'label'	=> __('Add Email Text','led-tv'),
			'section'=> 'led_tv_upper_header',
			'type'=> 'text'
		)
	);

	$wp_customize->add_setting(
		'led_tv_mail',array(
			'default'=> 'xyz123@example.com',
			'sanitize_callback'	=> 'sanitize_email'
		)
	);

	$wp_customize->add_control(
		'led_tv_mail',array(
			'label'	=> __('Add Mail Address','led-tv'),
			'section'=> 'led_tv_upper_header',
			'type'=> 'text'
		)
	);

	$wp_customize->add_setting( 'led_tv_upgrade_page_settings_14',
        array(
            'sanitize_callback' => 'sanitize_text_field'
        )
    );
    $wp_customize->add_control( new Led_TV_Control_Upgrade(
        $wp_customize, 'led_tv_upgrade_page_settings_14',
            array(
                'priority'      => 200,
                'section'       => 'led_tv_upper_header',
                'settings'      => 'led_tv_upgrade_page_settings_14',
                'label'         => __( 'LED TV Pro comes with additional features.', 'led-tv' ),
                'choices'       => array( __( '15+ Ready-Made Sections', 'led-tv' ), __( 'One-Click Demo Import', 'led-tv' ), __( 'WooCommerce Integrated', 'led-tv' ), __( 'Drag & Drop Section Reordering', 'led-tv' ),__( 'Advanced Typography Control', 'led-tv' ),__( 'Intuitive Customization Options', 'led-tv' ),__( '24/7 Support', 'led-tv' ), )
            )
        )
    ); 
}
add_action( 'customize_register', 'led_tv_upper_header_settings' );