<?php
    function health_customize_social_tab($wp_customize, $theme_name){

        $wp_customize->add_section( 'health_social_settings' , array(
            'title'      => esc_html__( 'Social', 'health' ),
            'priority'   => 70,
        ) );

        $wp_customize->add_setting( 'health_social_facebook' , array(
		    'default'     => '',
		    'transport'   => 'refresh',
			'sanitize_callback' => 'esc_url'
		) );

		$wp_customize->add_setting( 'health_social_twitter' , array(
		    'default'     => '',
		    'transport'   => 'refresh',
			'sanitize_callback' => 'esc_url'
		) );

		$wp_customize->add_setting( 'health_social_pinterest' , array(
		    'default'     => '',
		    'transport'   => 'refresh',
			'sanitize_callback' => 'esc_url'
		) );

		$wp_customize->add_setting( 'health_social_google' , array(
		    'default'     => '',
		    'transport'   => 'refresh',
			'sanitize_callback' => 'esc_url'
		) );

		$wp_customize->add_setting( 'health_social_custom_icon_1' , array(
		    'default'     => '',
		    'transport'   => 'refresh',
			'sanitize_callback' => 'esc_attr'
		) );

		$wp_customize->add_setting( 'health_social_custom_url_1' , array(
		    'default'     => '',
		    'transport'   => 'refresh',
			'sanitize_callback' => 'esc_url'
		) );

		$wp_customize->add_setting( 'health_social_custom_icon_2' , array(
		    'default'     => '',
		    'transport'   => 'refresh',
			'sanitize_callback' => 'esc_attr'
		) );

		$wp_customize->add_setting( 'health_social_custom_url_2' , array(
		    'default'     => '',
		    'transport'   => 'refresh',
			'sanitize_callback' => 'esc_url'
		) );

		$wp_customize->add_setting( 'health_social_custom_icon_3' , array(
		    'default'     => '',
		    'transport'   => 'refresh',
			'sanitize_callback' => 'esc_attr'
		) );

		$wp_customize->add_setting( 'health_social_custom_url_3' , array(
		    'default'     => '',
		    'transport'   => 'refresh',
			'sanitize_callback' => 'esc_url'
		) );


        $wp_customize->add_control(
			'health_social_facebook',
			array(
				'label'    => esc_html__( 'Facebook URL', 'health' ),
				'section'  => 'health_social_settings',
				'settings' => 'health_social_facebook',
				'type'     => 'url',
				'priority'   => 10
			)
		);

		$wp_customize->add_control(
			'health_social_twitter',
			array(
				'label'    => esc_html__( 'Twitter URL', 'health' ),
				'section'  => 'health_social_settings',
				'settings' => 'health_social_twitter',
				'type'     => 'url',
				'priority'   => 20
			)
		);

        $wp_customize->add_control(
			'health_social_pinterest',
			array(
				'label'    => esc_html__( 'Pinterest URL', 'health' ),
				'section'  => 'health_social_settings',
				'settings' => 'health_social_pinterest',
				'type'     => 'url',
				'priority'   => 30
			)
		);

		$wp_customize->add_control(
			'health_social_google',
			array(
				'label'    => esc_html__( 'Google+ URL', 'health' ),
				'section'  => 'health_social_settings',
				'settings' => 'health_social_google',
				'type'     => 'url',
				'priority'   => 40
			)
		);

		$wp_customize->add_control(
			'health_social_custom_icon_1',
			array(
				'label'    => esc_html__( 'Custom Icon 1', 'health' ),
				'section'  => 'health_social_settings',
				'settings' => 'health_social_custom_icon_1',
				'type'     => 'text',
				'priority'   => 50
			)
		);

		$wp_customize->add_control(
			'health_social_custom_url_1',
			array(
				'label'    => esc_html__( 'Custom URL 1', 'health' ),
				'section'  => 'health_social_settings',
				'settings' => 'health_social_custom_url_1',
				'type'     => 'url',
				'priority'   => 55
			)
		);

		$wp_customize->add_control(
			'health_social_custom_icon_2',
			array(
				'label'    => esc_html__( 'Custom Icon 2', 'health' ),
				'section'  => 'health_social_settings',
				'settings' => 'health_social_custom_icon_2',
				'type'     => 'text',
				'priority'   => 60
			)
		);

		$wp_customize->add_control(
			'health_social_custom_url_2',
			array(
				'label'    => esc_html__( 'Custom URL 2', 'health' ),
				'section'  => 'health_social_settings',
				'settings' => 'health_social_custom_url_2',
				'type'     => 'url',
				'priority'   => 65
			)
		);

		$wp_customize->add_control(
			'health_social_custom_icon_3',
			array(
				'label'    => esc_html__( 'Custom Icon 3', 'health' ),
				'section'  => 'health_social_settings',
				'settings' => 'health_social_custom_icon_3',
				'type'     => 'text',
				'priority'   => 70
			)
		);

		$wp_customize->add_control(
			'health_social_custom_url_3',
			array(
				'label'    => esc_html__( 'Custom URL 3', 'health' ),
				'section'  => 'health_social_settings',
				'settings' => 'health_social_custom_url_3',
				'type'     => 'url',
				'priority'   => 75
			)
		);


    }
?>