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

 /*
  *  template file
  * @templatation.com
  */

$settings = array(
                'connect_rss' => '',
                'connect_twitter' => '',
                'connect_facebook' => '',
                'connect_youtube' => '',
                'connect_flickr' => '',
                'connect_linkedin' => '',
                'connect_pinterest' => '',
                'connect_instagram' => '',
                'connect_googleplus' => '',
                'feed_url' => ''
                );
$settings = tt_temptt_opt_values( $settings );


?>

<ul>

                <?php if ( $settings['connect_twitter' ] != "" ) { ?>
		   		<li><a href="<?php echo esc_url( $settings['connect_twitter'] ); ?>" target="_blank" class="twitter" title="Twitter"><i class="fa fa-twitter"></i></a></li>

		   		<?php } if ( $settings['connect_facebook' ] != "" ) { ?>
		   		<li><a href="<?php echo esc_url( $settings['connect_facebook'] ); ?>" target="_blank" class="facebook" title="Facebook"><i class="fa fa-facebook"></i></a></li>

		   		<?php } if ( $settings['connect_youtube' ] != "" ) { ?>
		   		<li><a href="<?php echo esc_url( $settings['connect_youtube'] ); ?>" target="_blank" class="youtube" title="YouTube"><i class="fa fa-youtube"></i></a></li>

		   		<?php } if ( $settings['connect_flickr' ] != "" ) { ?>
		   		<li><a href="<?php echo esc_url( $settings['connect_flickr'] ); ?>" target="_blank" class="flickr" title="Flickr"><i class="fa fa-flickr"></i></a></li>

		   		<?php } if ( $settings['connect_linkedin' ] != "" ) { ?>
		   		<li><a href="<?php echo esc_url( $settings['connect_linkedin'] ); ?>" target="_blank" class="linkedin" title="LinkedIn"><i class="fa fa-linkedin"></i></a></li>

		   		<?php } if ( $settings['connect_pinterest' ] != "" ) { ?>
		   		<li><a href="<?php echo esc_url( $settings['connect_pinterest'] ); ?>" target="_blank" class="pinterest" title="Pinterest"><i class="fa fa-pinterest"></i></a></li>

		   		<?php } if ( $settings['connect_instagram' ] != "" ) { ?>
		   		<li><a href="<?php echo esc_url( $settings['connect_instagram'] ); ?>" target="_blank" class="instagram" title="Instagram"><i class="fa fa-instagram"></i></a></li>

		   		<?php } if ( $settings['connect_googleplus' ] != "" ) { ?>
		   		<li><a href="<?php echo esc_url( $settings['connect_googleplus'] ); ?>" target="_blank" class="googleplus" title="Google+"><i class="fa fa-google-plus"></i></a></li>

				<?php } if ( $settings['connect_rss' ] == "1" ) { ?>
		   		<li><a href="<?php if ( $settings['feed_url'] ) { echo esc_url( $settings['feed_url'] ); } else { echo get_bloginfo_rss('rss2_url'); } ?>" target="_blank" class="subscribe" title="RSS"><i class="fa fa-rss"></i></a></li>
		   		<?php } ?>
</ul>
