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

	/*=========================================
	Social Media
	=========================================*/
	$wp_customize->add_section(
        'expert_life_coach_social_media_header',
        array(
        	'priority'      => 3,
            'title' 		=> __('Social Media','expert-life-coach'),
			'panel'  		=> 'expert_life_coach_frontpage_sections',
		)
    );

   	$wp_customize->add_setting(
    	'expert_life_coach_social_media_facebook',
    	array(
			'default' => '#',
			'sanitize_callback' => 'esc_url_raw',
		)
	);	
	$wp_customize->add_control( 
		'expert_life_coach_social_media_facebook',
		array(
		    'label'   		=> __('Facebook URL','expert-life-coach'),
		    'section'		=> 'expert_life_coach_social_media_header',
			'type' 			=> 'url',
			'transport'         => $selective_refresh,
		)  
	);

	$wp_customize->add_setting(
    	'expert_life_coach_social_media_twitter',
    	array(
			'default' => '#',
			'sanitize_callback' => 'esc_url_raw',
		)
	);	
	$wp_customize->add_control( 
		'expert_life_coach_social_media_twitter',
		array(
		    'label'   		=> __('Twitter URL','expert-life-coach'),
		    'section'		=> 'expert_life_coach_social_media_header',
			'type' 			=> 'url',
			'transport'         => $selective_refresh,
		)  
	);	

	$wp_customize->add_setting(
    	'expert_life_coach_social_media_instagram',
    	array(
			'default' => '#',
			'sanitize_callback' => 'esc_url_raw',
		)
	);	
	$wp_customize->add_control( 
		'expert_life_coach_social_media_instagram',
		array(
		    'label'   		=> __('Instagram URL','expert-life-coach'),
		    'section'		=> 'expert_life_coach_social_media_header',
			'type' 			=> 'url',
			'transport'         => $selective_refresh,
		)  
	);

	$wp_customize->add_setting(
    	'expert_life_coach_social_media_linkedin',
    	array(
			'default' => '#',
			'sanitize_callback' => 'esc_url_raw',
		)
	);	
	$wp_customize->add_control( 
		'expert_life_coach_social_media_linkedin',
		array(
		    'label'   		=> __('Linkedin URL','expert-life-coach'),
		    'section'		=> 'expert_life_coach_social_media_header',
			'type' 			=> 'url',
			'transport'         => $selective_refresh,
		)  
	);

	$wp_customize->add_setting(
    	'expert_life_coach_social_media_youtube',
    	array(
			'default' => '#',
			'sanitize_callback' => 'esc_url_raw',
		)
	);	
	$wp_customize->add_control( 
		'expert_life_coach_social_media_youtube',
		array(
		    'label'   		=> __('Youtube URL','expert-life-coach'),
		    'section'		=> 'expert_life_coach_social_media_header',
			'type' 			=> 'url',
			'transport'         => $selective_refresh,
		)  
	);

	 $wp_customize->add_setting( 'expert_life_coach_upgrade_page_settings_153',
        array(
            'sanitize_callback' => 'sanitize_text_field'
        )
    );
    $wp_customize->add_control( new Expert_Life_Coach_Control_Upgrade(
        $wp_customize, 'expert_life_coach_upgrade_page_settings_153',
            array(
                'priority'      => 200,
                'section'       => 'expert_life_coach_social_media_header',
                'settings'      => 'expert_life_coach_upgrade_page_settings_153',
                'label'         => __( 'Life Coach Pro comes with additional features.', 'expert-life-coach' ),
                'choices'       => array( __( '15+ Ready-Made Sections', 'expert-life-coach' ), __( 'One-Click Demo Import', 'expert-life-coach' ), __( 'WooCommerce Integrated', 'expert-life-coach' ), __( 'Drag & Drop Section Reordering', 'expert-life-coach' ),__( 'Advanced Typography Control', 'expert-life-coach' ),__( 'Intuitive Customization Options', 'expert-life-coach' ),__( '24/7 Support', 'expert-life-coach' ), )
            )
        )
    );
}
add_action( 'customize_register', 'expert_life_coach_social_media_header_settings' );