<?php
/**
* Social Icons Settings
*
*
*/

$wp_customize->add_section( 'cww_social_icons_section', array(
	      'title'   	=> esc_html__( 'Social Icons', 'portfolio-one' ),
		  'panel'    	=> 'cww_additional_panel',
	      'priority' 	=> 40
	    )
	  );


$icon_arrays = array(

	'cww_icon_fb'		=> esc_html__('Facebook','portfolio-one'),
	'cww_icon_insta' 	=> esc_html__('Instagram','portfolio-one'),
	'cww_icon_twitter'  => esc_html__('Twitter','portfolio-one'),
	'cww_icon_lnkedin'  => esc_html__('LinkedIn','portfolio-one'),
	'cww_icon_git'  	=> esc_html__('GitHub','portfolio-one'),
	'cww_icon_yt'  	=> esc_html__('YouTube','portfolio-one'),

);

foreach( $icon_arrays as 	$key => $value ){

	$wp_customize->add_setting( $key , array(
	    'default'               => $default[$key],
	    'sanitize_callback'     => 'esc_url_raw',
	  ) );

	$wp_customize->add_control( $key , array(
        'label'         => $value,
        'description'   => esc_html__('Add url for your social media page','portfolio-one'),
        'section'       => 'cww_social_icons_section',
        'type'      	=> 'text',
        
      ) );

}