
<center><h2><strong>Ubuntu</strong></h2>
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
<?php
/**
*	Social Links Shortcode
*/

/* 	Shortcode generator config
 * 	----------------------------------------------------- */
	$shortcodes_config['social_links'] = array(
		'no_preview' => true,
		'options' => array(
			'facebook' => array(
				'name' => __('Facebook', 'inbound-pro' ),
				'desc' => __('Enter your facebook profile URL', 'inbound-pro' ),
				'type' => 'text',
				'std' => ''
			),
			'twitter' => array(
				'name' => __('Twitter', 'inbound-pro' ),
				'desc' => __('Enter your twitter profile URL', 'inbound-pro' ),
				'type' => 'text',
				'std' => ''
			),
			'google_plus' => array(
				'name' => __('Google+', 'inbound-pro' ),
				'desc' => __('Enter your google plus profile URL', 'inbound-pro' ),
				'type' => 'text',
				'std' => ''
			),
			'linkedin' => array(
				'name' => __('Linkedin', 'inbound-pro' ),
				'desc' => __('Enter your linkedin profile URL', 'inbound-pro' ),
				'type' => 'text',
				'std' => ''
			),
			'github' => array(
				'name' => __('Github', 'inbound-pro' ),
				'desc' => __('Enter your github profile URL', 'inbound-pro' ),
				'type' => 'text',
				'std' => ''
			),
			'pinterest' => array(
				'name' => __('Instagram', 'inbound-pro' ),
				'desc' => __('Enter your instagram profile URL', 'inbound-pro' ),
				'type' => 'text',
				'std' => ''
			),
			'pinterest' => array(
				'name' => __('Pinterest', 'inbound-pro' ),
				'desc' => __('Enter your pinterest profile URL', 'inbound-pro' ),
				'type' => 'text',
				'std' => ''
			),
			'rss' => array(
				'name' => __('RSS', 'inbound-pro' ),
				'desc' => __('Enter your RSS feeds URL', 'inbound-pro' ),
				'type' => 'text',
				'std' => ''
			)
		),
		'shortcode' => '[social_links facebook="{{facebook}}" twitter="{{twitter}}" google_plus="{{google_plus}}" linkedin="{{linkedin}}" github="{{github}}" pinterest="{{pinterest}}" /]',
		'popup_title' => 'Insert Social Link Shortcode'
	);

/* 	Add shortcode
 * 	----------------------------------------------------- */
	add_shortcode('social_links', 'inbound_shortcode_social_links');

	function inbound_shortcode_social_links( $atts, $content = null ) {
		extract(shortcode_atts(array(
			'facebook' => '',
			'twitter' => '',
			'google_plus' => '',
			'linkedin' => '',
			'github' => '',
			'instagram' => '',
			'pinterest' => '',
			'rss' => ''
		), $atts));

		$out = '';

		$out .= '<ul class="inboundnow-social-links">';
		if( $facebook ) { $out .= '<li class="facebook"><a href="'. $facebook .'"><i class="icon-facebook icon-large"></i></a></li>'; }
		if( $twitter ) { $out .= '<li class="twitter"><a href="'. $twitter .'"><i class="icon-twitter icon-large"></i></a></li>'; }
		if( $google_plus ) { $out .= '<li class="google-plus"><a href="'. $google_plus .'"><i class="icon-google-plus icon-large"></i></a></li>'; }
		if( $linkedin ) { $out .= '<li class="linkedin"><a href="'. $linkedin .'"><i class="icon-linkedin icon-large"></i></a></li>'; }
		if( $github ) { $out .= '<li class="github"><a href="'. $github .'"><i class="icon-github icon-large"></i></a></li>'; }
		if( $instagram ) { $out .= '<li class="instagram"><a href="'. $instagram .'"><i class="icon-camera-retro icon-large"></i></a></li>'; }
		if( $pinterest ) { $out .= '<li class="pinterest"><a href="'. $pinterest .'"><i class="icon-pinterest icon-large"></i></a></li>'; }
		if( $rss ) { $out .= '<li class="rss"><a href="'. $rss .'"><i class="icon-rss icon-large"></i></a></li>'; }
		$out .= '</ul>';

		return $out;
	}