<?php
/**
 * @package Oginer
 */
?>

<?php
$show_icon = get_theme_mod( 'oginer_show_footer_icon', 1 );
$ifb = get_theme_mod('oginer_icon_facebook');
$itwitter = get_theme_mod('oginer_icon_twitter');
$igp = get_theme_mod('oginer_icon_google');
$iyoutube = get_theme_mod('oginer_icon_youtube');
$iin = get_theme_mod('oginer_icon_linkedin');
$iwp = get_theme_mod('oginer_icon_wordpres');
$iinstagram = get_theme_mod('oginer_icon_instagram');
$iflickr = get_theme_mod('oginer_icon_flickr');
$ipinterest = get_theme_mod('oginer_icon_pinterest');
$ivimeo = get_theme_mod('oginer_icon_vimeo');
$itumblr = get_theme_mod('oginer_icon_tumblr');
$idribbble = get_theme_mod('oginer_icon_dribbble');
$irss = get_theme_mod('oginer_icon_rss');
if ( $show_icon == 1 ) {
	?>
	<div class="social-icons">
		<ul>
			<?php
				if ( $ifb != '' ) { ?>
					<li>
						<a target="_blank" href="<?php echo esc_url($ifb); ?>"><i class="fa fa-facebook"></i></a>
					</li>
			<?php } ?>
			<?php 
				if ( $itwitter != '' ) { ?>
					<li>
						<a target="_blank" href="<?php echo esc_url($itwitter); ?>"><i class="fa fa-twitter"></i></a>
					</li>
			<?php } ?>
			<?php
				if ( $igp != '' ) { ?>
					<li>
						<a target="_blank" href="<?php echo esc_url($igp); ?>"><i class="fa fa-google-plus"></i></a>
					</li>
			<?php } ?>
			<?php
				if ( $iyoutube != '' ) { ?>
					<li>
						<a target="_blank" href="<?php echo esc_url( $iyoutube ); ?>"><i class="fa fa-youtube"></i></a>
					</li>
			<?php } ?>
			<?php
				if ( $iin != '' ) { ?>
					<li>
						<a target="_blank" href="<?php echo esc_url($iin); ?>"><i class="fa fa-linkedin"></i></a>
					</li>
			<?php } ?>
			<?php
				if ( $iwp != '' ) { ?>
					<li>
						<a target="_blank" href="<?php echo esc_url($iwp); ?>"><i class="fa fa-wordpress"></i></a>
					</li>
			<?php } ?>
			<?php
				if ( $iinstagram != '' ) { ?>
					<li>
						<a target="_blank" href="<?php echo esc_url($iinstagram); ?>"><i class="fa fa-instagram"></i></a>
					</li>
			<?php } ?>
			<?php
				if ( $iflickr != '' ) { ?>
					<li>
						<a target="_blank" href="<?php echo esc_url($iflickr); ?>"><i class="fa fa-flickr"></i></a>
					</li>
			<?php } ?>
			<?php
				if ( $ipinterest != '' ) { ?>
					<li>
						<a target="_blank" href="<?php echo esc_url($ipinterest); ?>"><i class="fa fa-pinterest"></i></a>
					</li>
			<?php } ?>
			<?php
				if ( $ivimeo != '' ) { ?>
					<li>
						<a target="_blank" href="<?php echo esc_url($ivimeo); ?>"><i class="fa fa-vimeo-square"></i></a>
					</li>
			<?php } ?>
			<?php
				if ( $itumblr != '' ) { ?>
					<li>
						<a target="_blank" href="<?php echo esc_url($itumblr); ?>"><i class="fa fa-tumblr"></i></a>
					</li>
			<?php } ?>
			<?php
				if ( $idribbble != '' ) { ?>
					<li>
						<a target="_blank" href="<?php echo esc_url($idribbble); ?>"><i class="fa fa-dribbble"></i></a>
					</li>
			<?php } ?>
			<?php
				if ( $irss != '' ) { ?>
					<li>
						<a target="_blank" href="<?php echo esc_url($irss); ?>"><i class="fa fa-rss"></i></a>
					</li>
			<?php } ?>
		</ul>
	</div>
	<?php
}