<?php if( ! defined( 'ABSPATH' ) ) exit;

	function live_news_social_section () { ?>
		
			<div <?php if(get_theme_mod( 'social_media_activate' )){ ?> style="float: none;"<?php } ?> class="seos-fa-icons">
			
				<?php if (get_theme_mod( 'live_news_facebook' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'facebook_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_facebook' )); ?>"><i class="fa fa-facebook-f"></i></a>
				<?php endif; ?>
							
				<?php if (get_theme_mod( 'live_news_twitter' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'twitter_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_twitter' )); ?>"><i class="fa fa-twitter"></i></a>
				<?php endif; ?>

				<?php if (get_theme_mod( 'live_news_youtube' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'youtube_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_youtube' )); ?>"><i class="fa fa-youtube"></i></a>
				<?php endif; ?>
																			
				<?php if (get_theme_mod( 'live_news_vimeo' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'vimeo_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_vimeo' )); ?>"><i class="fa fa-vimeo"></i></a>
				<?php endif; ?>
																			
				<?php if (get_theme_mod( 'live_news_pinterest' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'pinterest_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_pinterest' )); ?>"><i class="fa fa-pinterest"></i></a>
				<?php endif; ?>	
				
				<?php if (get_theme_mod( 'live_news_instagram' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'instagram_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_instagram' )); ?>"><i class="fa fa-instagram" aria-hidden="true"></i></a>
				<?php endif; ?>
																			
				<?php if (get_theme_mod( 'live_news_linkedin' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'linkedin_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_linkedin' )); ?>"><i class="fa fa-linkedin"></i></a>
				<?php endif; ?>
																			
				<?php if (get_theme_mod( 'live_news_rss' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'rss_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_rss' )); ?>"><i class="fa fa-rss"></i></a>
				<?php endif; ?>
																			
				<?php if (get_theme_mod( 'live_news_stumbleupon' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'stumbleupon_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_stumbleupon' )); ?>"><i class="fa fa-stumbleupon"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_flickr' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'flickr_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_flickr' )); ?>"><i class="fa fa-flickr" aria-hidden="true"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_dribbble' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'dribbble_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_dribbble' )); ?>"><i class="fa fa-dribbble"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_digg' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'digg_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_digg' )); ?>"><i class="fa fa-digg"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_skype' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'skype_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_skype' )); ?>"><i class="fa fa-skype"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_deviantart' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'deviantart_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_deviantart' )); ?>"><i class="fa fa-deviantart"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_yahoo' )) : ?>
					 <a target="<?php if(esc_attr(get_theme_mod( 'yahoo_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_yahoo' )); ?>"><i class="fa fa-yahoo"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_reddit_alien' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'reddit_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_reddit_alien' )); ?>"><i class="fa fa-reddit-alien"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_paypal' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'paypal_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_paypal' )); ?>"><i class="fa fa-paypal"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_dropbox' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'dropbox_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_dropbox' )); ?>"><i class="fa fa-dropbox"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_soundcloud' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'soundcloud_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_soundcloud' )); ?>"><i class="fa fa-soundcloud"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_vk' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'vk_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_vk' )); ?>"><i class="fa fa-vk"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_envelope' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'envelope_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_envelope' )); ?>"><i class="fa fa-envelope"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_address_book' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'address_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_address_book' )); ?>"><i class="fa fa-address-book" aria-hidden="true"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_apple' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'apple_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_apple' )); ?>"><i class="fa fa-apple"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_address_amazon' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'amazon_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_address_amazon' )); ?>"><i class="fa fa-amazon"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_slack' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'slack_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_slack' )); ?>"><i class="fa fa-slack"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_slideshare' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'slideshare_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_slideshare' )); ?>"><i class="fa fa-slideshare"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_address_wikipedia' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'wikipedia_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_address_wikipedia' )); ?>"><i class="fa fa-wikipedia-w"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_wordpress' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'wordpress_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_wordpress' )); ?>"><i class="fa fa-wordpress"></i></a>
				<?php endif; ?>
																							
				<?php if (get_theme_mod( 'live_news_odnoklassniki' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'odnoklassniki_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_odnoklassniki' )); ?>"><i class="fa fa-odnoklassniki"></i></a>
				<?php endif; ?>
																											
				<?php if (get_theme_mod( 'live_news_tumblr' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'tumblr_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_tumblr' )); ?>"><i class="fa fa-tumblr"></i></a>
				<?php endif; ?>

				<?php if (get_theme_mod( 'live_news_github' )) : ?>
					<a target="<?php if(esc_attr(get_theme_mod( 'github_link' )) == "new"){ echo "_blank"; } else {echo "_self"; } ?>" href="<?php echo esc_url(get_theme_mod( 'live_news_github' )); ?>"><i class="fa fa-github-alt" aria-hidden="true"></i></a>
				<?php endif; ?>	
				
			</div>
		
<?php } 

add_action( 'customize_register', 'live_news__social' );

function live_news__social( $wp_customize ) {
	
	function live_news_header_social_links( $input ) {
		$valid = array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
		);
		
		if ( array_key_exists( $input, $valid ) ) {
			return $input;
		} else {
			return '';
		}
	}	
		
 		$wp_customize->add_section( 'live_news_social_section' , array(
			'title'       => __( 'Social Icons', 'live-news' ),
			'description' => __( 'Social Media Icons.', 'live-news' ),
			'priority'    => 2,	
			//'description' => __( 'Social media buttons', 'live-news' ),
		) ); 

 		$wp_customize->add_setting( 'live_news_active_social', array (
			'sanitize_callback' => 'live_news_sanitize_checkbox',
		) );
				
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_active_social', array(
			'label'    => __( 'Activate Social Icons Header', 'live-news' ),
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_active_social',
			'type' => 'checkbox'
		) ) );
		
		$wp_customize->add_setting( 'live_news_facebook', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_facebook', array(
			'label'    => __( 'Enter Facebook url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_facebook',
		) ) );
		
 		$wp_customize->add_setting( 'facebook_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'facebook_link', array(
			'description'    => __( 'Open Facebook Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'facebook_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );		
		
		$wp_customize->add_setting( 'live_news_twitter', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_twitter', array(
			'label'    => __( 'Enter Twitter url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_twitter',
		) ) );	
			
 		$wp_customize->add_setting( 'twitter_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'twitter_link', array(
			'description'    => __( 'Open Twitter Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'twitter_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_linkedin', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_linkedin', array(
			'label'    => __( 'Enter Linkedin url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_linkedin',
		) ) );	

 		$wp_customize->add_setting( 'linkedin_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'linkedin_link', array(
			'description'    => __( 'Open Linkedin Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'linkedin_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_rss', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_rss', array(
			'label'    => __( 'Enter RSS url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_rss',
		) ) );	
	
 		$wp_customize->add_setting( 'rss_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'rss_link', array(
			'description'    => __( 'Open RSS Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'rss_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_pinterest', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_pinterest', array(
			'label'    => __( 'Enter Pinterest url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_pinterest',
		) ) );	

 		$wp_customize->add_setting( 'pinterest_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'pinterest_link', array(
			'description'    => __( 'Open Pinterest Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'pinterest_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_youtube', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_youtube', array(
			'label'    => __( 'Enter Youtube url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_youtube',
		) ) );	
	
 		$wp_customize->add_setting( 'youtube_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'youtube_link', array(
			'description'    => __( 'Open Youtube Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'youtube_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_vimeo', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_vimeo', array(
			'label'    => __( 'Enter Vimeo url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_vimeo',
		) ) );	
		
 		$wp_customize->add_setting( 'vimeo_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'vimeo_link', array(
			'description'    => __( 'Open Vimeo Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'vimeo_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_instagram', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_instagram', array(
			'label'    => __( 'Enter Instagram url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_instagram',
		) ) );
		
 		$wp_customize->add_setting( 'instagram_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'instagram_link', array(
			'description'    => __( 'Open Instagram Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'instagram_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		
		$wp_customize->add_setting( 'live_news_stumbleupon', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_stumbleupon', array(
			'label'    => __( 'Enter Stumbleupon url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_stumbleupon',
		) ) );	
	
 		$wp_customize->add_setting( 'stumbleupon_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'stumbleupon_link', array(
			'description'    => __( 'Open Stumbleupon Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'stumbleupon_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_flickr', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_flickr', array(
			'label'    => __( 'Enter Flickr url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_flickr',
		) ) );	
	
			
 		$wp_customize->add_setting( 'flickr_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'flickr_link', array(
			'description'    => __( 'Open Flickr Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'flickr_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_dribbble', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_dribbble', array(
			'label'    => __( 'Enter Dribbble url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_dribbble',
		) ) );	

 		$wp_customize->add_setting( 'dribbble_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'dribbble_link', array(
			'description'    => __( 'Open Dribbble Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'dribbble_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_digg', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_digg', array(
			'label'    => __( 'Enter Digg url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_digg',
		) ) );	
	
 		$wp_customize->add_setting( 'digg_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'digg_link', array(
			'description'    => __( 'Open Digg Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'digg_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_skype', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_skype', array(
			'label'    => __( 'Enter Skype url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_skype',
		) ) );	
	
 		$wp_customize->add_setting( 'skype_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'skype_link', array(
			'description'    => __( 'Open Skype Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'skype_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_deviantart', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_deviantart', array(
			'label'    => __( 'Enter Deviantart url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_deviantart',
		) ) );	

 		$wp_customize->add_setting( 'deviantart_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'deviantart_link', array(
			'description'    => __( 'Open Deviantart Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'deviantart_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_yahoo', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_yahoo', array(
			'label'    => __( 'Enter Yahoo url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_yahoo',
		) ) );	

 		$wp_customize->add_setting( 'yahoo_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'yahoo_link', array(
			'description'    => __( 'Open Yahoo Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'yahoo_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_reddit_alien', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_reddit_alien', array(
			'label'    => __( 'Enter Reddit Alien url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_reddit_alien',
		) ) );	

 		$wp_customize->add_setting( 'reddit_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'reddit_link', array(
			'description'    => __( 'Open Reddit Alien Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'reddit_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_paypal', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_paypal', array(
			'label'    => __( 'Enter Paypal url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_paypal',
		) ) );	

 		$wp_customize->add_setting( 'paypal_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'paypal_link', array(
			'description'    => __( 'Open Paypal Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'paypal_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_dropbox', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_dropbox', array(
			'label'    => __( 'Enter Dropbox url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_dropbox',
		) ) );	

 		$wp_customize->add_setting( 'dropbox_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'dropbox_link', array(
			'description'    => __( 'Open Dropbox Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'dropbox_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_soundcloud', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_soundcloud', array(
			'label'    => __( 'Enter Soundcloud url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_soundcloud',
		) ) );	

 		$wp_customize->add_setting( 'soundcloud_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'soundcloud_link', array(
			'description'    => __( 'Open Soundcloud Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'soundcloud_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_vk', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_vk', array(
			'label'    => __( 'Enter VK url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_vk',
		) ) );	

 		$wp_customize->add_setting( 'vk_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'vk_link', array(
			'description'    => __( 'Open VK Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'vk_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
				
		$wp_customize->add_setting( 'live_news_envelope', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_envelope', array(
			'label'    => __( 'Enter Envelope url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_envelope',
		) ) );	

 		$wp_customize->add_setting( 'envelope_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'envelope_link', array(
			'description'    => __( 'Open Envelope Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'envelope_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_address_book', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_address_book', array(
			'label'    => __( 'Enter Address Book url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_address_book',
		) ) );	

 		$wp_customize->add_setting( 'address_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'address_link', array(
			'description'    => __( 'Open Address Book Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'address_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_apple', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_apple', array(
			'label'    => __( 'Enter Apple url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_apple',
		) ) );	
	
 		$wp_customize->add_setting( 'apple_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'apple_link', array(
			'description'    => __( 'Open Apple Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'apple_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_amazon', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_amazon', array(
			'label'    => __( 'Enter Amazon url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_amazon',
		) ) );	
		
 		$wp_customize->add_setting( 'amazon_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'amazon_link', array(
			'description'    => __( 'Open Amazon Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'amazon_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_slack', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_slack', array(
			'label'    => __( 'Enter Slack url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_slack',
		) ) );	

 		$wp_customize->add_setting( 'slack_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'slack_link', array(
			'description'    => __( 'Open Slack Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'slack_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );	
		
		$wp_customize->add_setting( 'live_news_slideshare', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_slideshare', array(
			'label'    => __( 'Enter Slideshare url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_slideshare',
		) ) );	

 		$wp_customize->add_setting( 'slideshare_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'slideshare_link', array(
			'description'    => __( 'Open Slideshare Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'slideshare_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );
		
		$wp_customize->add_setting( 'live_news_address_wikipedia', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_address_wikipedia', array(
			'label'    => __( 'Enter Wikipedia url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_address_wikipedia',
		) ) );	

 		$wp_customize->add_setting( 'wikipedia_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wikipedia_link', array(
			'description'    => __( 'Open Wikipedia Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'wikipedia_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );
		
		$wp_customize->add_setting( 'live_news_wordpress', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_wordpress', array(
			'label'    => __( 'Enter WordPress url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_wordpress',
		) ) );	
	
 		$wp_customize->add_setting( 'wordpress_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wordpress_link', array(
			'description'    => __( 'Open WordPress Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'wordpress_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );
		
		$wp_customize->add_setting( 'live_news_odnoklassniki', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_odnoklassniki', array(
			'label'    => __( 'Enter Odnoklassniki url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_odnoklassniki',
		) ) );	
		
 		$wp_customize->add_setting( 'odnoklassniki_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'odnoklassniki_link', array(
			'description'    => __( 'Open Odnoklassniki Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'odnoklassniki_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );
																																			
		$wp_customize->add_setting( 'live_news_tumblr', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_tumblr', array(
			'label'    => __( 'Enter Tumblr url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_tumblr',
		) ) );	
			
 		$wp_customize->add_setting( 'tumblr_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'tumblr_link', array(
			'description'    => __( 'Open Tumblr Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'tumblr_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );
		
		$wp_customize->add_setting( 'live_news_github', array (
			'sanitize_callback' => 'esc_url_raw',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'live_news_github', array(
			'label'    => __( 'Enter GitHub url', 'live-news' ),		
			'section'  => 'live_news_social_section',
			'settings' => 'live_news_github',
		) ) );	
	
 		$wp_customize->add_setting( 'github_link', array (
			'sanitize_callback' => 'live_news_header_social_links',
		) );
		
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'github_link', array(
			'description'    => __( 'Open GitHub Link', 'live-news' ),
			'section'  => 'live_news_social_section',		
			'settings' => 'github_link',
			'type'     =>  'select',	
            'choices'  => array(
				'new' => esc_attr__( 'Open in a new window.', 'live-news' ),
				'' => esc_attr__( 'Open in the same window.', 'live-news' ),
            )
		) ) );		
		
}

/********************************************
* Social styles
*********************************************/ 	

function live_news_social_method() {

        $social_media_color_mod = esc_attr(get_theme_mod( 'social_media_color' ));
        $social_media_hover_color_mod = esc_attr(get_theme_mod( 'social_media_hover_color' ));

		if($social_media_color_mod) { $social_media_color = ".social .fa-icons i, .social-top .fa {color: {$social_media_color_mod} !important;}";} else {$social_media_color ="";}
		if($social_media_hover_color_mod) { $social_media_hover_color = ".social .fa-icons i:hover, .social-top a:hover .fa {color: {$social_media_hover_color_mod} !important;}";} else {$social_media_hover_color ="";}

        wp_add_inline_style( 'live-news-style-css', 
		$social_media_color.$social_media_hover_color);
}
add_action( 'wp_enqueue_scripts', 'live_news_social_method' );				
		