<?php
function wallstreet_social_customizer( $wp_customize ) {
/* Header Section */
	$wp_customize->add_panel( 'social_link_options', array(
		'priority'       => 450,
		'capability'     => 'edit_theme_options',
		'title'      => __('Social Link Setting', 'wallstreet'),
	) );
	
	//Header social Icon

	$wp_customize->add_section(
        'social_icon',
        array(
            'title' => __('Social Link ','wallstreet'),
           'priority'    => 400,
			'panel' => 'social_link_options',
        )
    );
	
	//Show and hide Header Social Icons
	$wp_customize->add_setting(
	'wallstreet_pro_options[header_social_media_enabled]'
    ,
    array(
        'default' => true,
		'capability'     => 'edit_theme_options',
		'sanitize_callback' => 'sanitize_text_field',
		'type' => 'option',
    )	
	);
	$wp_customize->add_control(
    'wallstreet_pro_options[header_social_media_enabled]',
    array(
        'label' => __('Enable social media links on header section','wallstreet'),
        'section' => 'social_icon',
        'type' => 'checkbox',
    )
	);
	//Footer enable/disable social icon
	$wp_customize->add_setting(
	'wallstreet_pro_options[footer_social_media_enabled]'
    ,
    array(
        'default' => true,
		'capability'     => 'edit_theme_options',
		'sanitize_callback' => 'sanitize_text_field',
		'type' => 'option',
    )	
	);
	$wp_customize->add_control(
    'wallstreet_pro_options[footer_social_media_enabled]',
    array(
        'label' => __('Enable social media links on Footer section','wallstreet'),
        'section' => 'social_icon',
        'type' => 'checkbox',
    )
	);
	
	
	//twitter link
	
	$wp_customize->add_setting(
    'wallstreet_pro_options[social_media_twitter_link]',
    array(
        'default' => '#',
		'type' => 'theme_mod',
		'sanitize_callback' => 'esc_url_raw',
		'type' => 'option',
    )
	
	);
	$wp_customize->add_control(
    'wallstreet_pro_options[social_media_twitter_link]',
    array(
        'label' => __('Twitter Profile Link:','wallstreet'),
        'section' => 'social_icon',
        'type' => 'text',
    )
	);

	// Facebook link
	$wp_customize->add_setting(
    'wallstreet_pro_options[social_media_facebook_link]',
    array(
        'default' => '#',
		'sanitize_callback' => 'esc_url_raw',
		'type' => 'option',
    )
	
	);
	$wp_customize->add_control(
    'wallstreet_pro_options[social_media_facebook_link]',
    array(
        'label' => __('Facebook Profile Link:','wallstreet'),
        'section' => 'social_icon',
        'type' => 'text',
    )
	);

	//Google plus
	
	$wp_customize->add_setting(
	'wallstreet_pro_options[social_media_googleplus_link]' ,
    array(
        'default' => '#',
		'sanitize_callback' => 'esc_url_raw',
		'type' => 'option',
    )
	
	);
	$wp_customize->add_control(
    'wallstreet_pro_options[social_media_googleplus_link]',
    array(
        'label' => __('Google Plus Profile Link:','wallstreet'),
        'section' => 'social_icon',
        'type' => 'text',
    )
	);	

	
	//Linkdin link
	
	$wp_customize->add_setting(
	'wallstreet_pro_options[social_media_linkedin_link]' ,
    array(
        'default' => '#',
		'sanitize_callback' => 'esc_url_raw',
		'type' => 'option',
    )
	
	);
	$wp_customize->add_control(
    'wallstreet_pro_options[social_media_linkedin_link]',
    array(
        'label' => __('Linkedin Profile Link:','wallstreet'),
        'section' => 'social_icon',
        'type' => 'text',
    )
	);
	
	//Youtube Profile Link:
	
	$wp_customize->add_setting(
	'wallstreet_pro_options[social_media_youtube_link]' ,
    array(
        'default' => '#',
		'sanitize_callback' => 'esc_url_raw',
		'type' => 'option',
    )
	
	);
	$wp_customize->add_control(
    'wallstreet_pro_options[social_media_youtube_link]',
    array(
        'label' => __('Youtube Profile Link:','wallstreet'),
        'section' => 'social_icon',
        'type' => 'text',
    )
	);
	}
	add_action( 'customize_register', 'wallstreet_social_customizer' );
	?>