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

	/*=========================================
	Social Media
	=========================================*/
	$wp_customize->add_section(
        'expert_makeup_stylist_social_media_header',
        array(
        	'priority'      => 3,
            'title' 		=> __('Social Media','expert-makeup-stylist'),
			'panel'  		=> 'expert_makeup_stylist_frontpage_sections',
		)
    );

   	$wp_customize->add_setting(
    	'expert_makeup_stylist_social_media_facebook',
    	array(
			'default' => '#',
			'sanitize_callback' => 'esc_url_raw',
		)
	);	
	$wp_customize->add_control( 
		'expert_makeup_stylist_social_media_facebook',
		array(
		    'label'   		=> __('Facebook URL','expert-makeup-stylist'),
		    'section'		=> 'expert_makeup_stylist_social_media_header',
			'type' 			=> 'url',
			'transport'         => $selective_refresh,
		)  
	);

	$wp_customize->add_setting(
    	'expert_makeup_stylist_social_media_twitter',
    	array(
			'default' => '#',
			'sanitize_callback' => 'esc_url_raw',
		)
	);	
	$wp_customize->add_control( 
		'expert_makeup_stylist_social_media_twitter',
		array(
		    'label'   		=> __('Twitter URL','expert-makeup-stylist'),
		    'section'		=> 'expert_makeup_stylist_social_media_header',
			'type' 			=> 'url',
			'transport'         => $selective_refresh,
		)  
	);	

	$wp_customize->add_setting(
    	'expert_makeup_stylist_social_media_instagram',
    	array(
			'default' => '#',
			'sanitize_callback' => 'esc_url_raw',
		)
	);	
	$wp_customize->add_control( 
		'expert_makeup_stylist_social_media_instagram',
		array(
		    'label'   		=> __('Instagram URL','expert-makeup-stylist'),
		    'section'		=> 'expert_makeup_stylist_social_media_header',
			'type' 			=> 'url',
			'transport'         => $selective_refresh,
		)  
	);

	$wp_customize->add_setting(
    	'expert_makeup_stylist_social_media_pinterest',
    	array(
			'default' => '#',
			'sanitize_callback' => 'esc_url_raw',
		)
	);	
	$wp_customize->add_control( 
		'expert_makeup_stylist_social_media_pinterest',
		array(
		    'label'   		=> __('Pinterest URL','expert-makeup-stylist'),
		    'section'		=> 'expert_makeup_stylist_social_media_header',
			'type' 			=> 'url',
			'transport'         => $selective_refresh,
		)  
	);

	$wp_customize->add_setting(
    	'expert_makeup_stylist_social_media_linkedin',
    	array(
			'default' => '#',
			'sanitize_callback' => 'esc_url_raw',
		)
	);	
	$wp_customize->add_control( 
		'expert_makeup_stylist_social_media_linkedin',
		array(
		    'label'   		=> __('Linkedin URL','expert-makeup-stylist'),
		    'section'		=> 'expert_makeup_stylist_social_media_header',
			'type' 			=> 'url',
			'transport'         => $selective_refresh,
		)  
	);

	$wp_customize->add_setting( 'expert_makeup_stylist_upgrade_page_settings_13',
        array(
            'sanitize_callback' => 'sanitize_text_field'
        )
    );
	$wp_customize->add_control( new Expert_Makeup_Stylist_Control_Upgrade(
	    $wp_customize, 'expert_makeup_stylist_upgrade_page_settings_13',
	        array(
	            'priority'      => 200,
	            'section'       => 'expert_makeup_stylist_social_media_header',
	            'settings'      => 'expert_makeup_stylist_upgrade_page_settings_13',
	            'label'         => __( 'Expert Makeup Stylist Pro comes with additional features.', 'expert-makeup-stylist' ),
	            'choices'       => array( __( '15+ Ready-Made Sections', 'expert-makeup-stylist' ), __( 'One-Click Demo Import', 'expert-makeup-stylist' ), __( 'WooCommerce Integrated', 'expert-makeup-stylist' ), __( 'Drag & Drop Section Reordering', 'expert-makeup-stylist' ),__( 'Advanced Typography Control', 'expert-makeup-stylist' ),__( 'Intuitive Customization Options', 'expert-makeup-stylist' ),__( '24/7 Support', 'expert-makeup-stylist' ), )
	        )
	    )
	); 

}
add_action( 'customize_register', 'expert_makeup_stylist_social_media_header_settings' );