<?php
/**
 * The template for displaying social media icons
 *
 * @package ClubTravel
 */

?>
<?php if ( get_theme_mod( 'clubtravel_facebooklink' ) || get_theme_mod( 'clubtravel_twitterlink' ) || get_theme_mod( 'clubtravel_pinterestlink' ) || get_theme_mod( 'clubtravel_instagramlink' ) || get_theme_mod( 'clubtravel_linkedinlink' ) || get_theme_mod( 'clubtravel_youtubelink' ) || get_theme_mod( 'clubtravel_vimeo' ) || get_theme_mod( 'clubtravel_tumblrlink' ) || get_theme_mod( 'clubtravel_flickrlink' ) ) : ?>
<div class="social-icons position-absolute">
	<ul class="list-unstyled">
<?php endif; ?>
		<?php if ( get_theme_mod( 'clubtravel_facebooklink' ) ) : ?>
		<li class=""><a href="<?php echo esc_url( get_theme_mod( 'clubtravel_facebooklink' ) ); ?>" class="text-white" target="_blank"><i class="fab fa-facebook-f"></i></a></li>
		<?php endif; ?>
		<?php if ( get_theme_mod( 'clubtravel_twitterlink' ) ) : ?>
		<li class=""><a href="<?php echo esc_url( get_theme_mod( 'clubtravel_twitterlink' ) ); ?>" class="text-white" target="_blank"><i class="fab fa-twitter"></i></a></li>
		<?php endif; ?>
		<?php if ( get_theme_mod( 'clubtravel_pinterestlink' ) ) : ?>
		<li class=""><a href="<?php echo esc_url( get_theme_mod( 'clubtravel_pinterestlink' ) ); ?>" class="text-white" target="_blank"><i class="fab fa-pinterest-p"></i></a></li>
		<?php endif; ?>
		<?php if ( get_theme_mod( 'clubtravel_instagramlink' ) ) : ?>
		<li class=""><a href="<?php echo esc_url( get_theme_mod( 'clubtravel_instagramlink' ) ); ?>" class="text-white" target="_blank"><i class="fab fa-instagram"></i></a></li>
		<?php endif; ?>
		<?php if ( get_theme_mod( 'clubtravel_linkedinlink' ) ) : ?>
		<li class=""><a href="<?php echo esc_url( get_theme_mod( 'clubtravel_linkedinlink' ) ); ?>" class="text-white" target="_blank"><i class="fab fa-linkedin-in"></i></a></li>
		<?php endif; ?>
		<?php if ( get_theme_mod( 'clubtravel_youtubelink' ) ) : ?>
		<li class=""><a href="<?php echo esc_url( get_theme_mod( 'clubtravel_youtubelink' ) ); ?>" class="text-white" target="_blank"><i class="fab fa-youtube"></i></a></li>
		<?php endif; ?>
		<?php if ( get_theme_mod( 'clubtravel_vimeo' ) ) : ?>
		<li class=""><a href="<?php echo esc_url( get_theme_mod( 'clubtravel_vimeo' ) ); ?>" class="text-white" target="_blank"><i class="fab fa-vimeo-v"></i></a></li>
		<?php endif; ?>
		<?php if ( get_theme_mod( 'clubtravel_tumblrlink' ) ) : ?>
		<li class=""><a href="<?php echo esc_url( get_theme_mod( 'clubtravel_tumblrlink' ) ); ?>" class="text-white" target="_blank"><i class="fab fa-tumblr"></i></a></li>
		<?php endif; ?>
		<?php if ( get_theme_mod( 'clubtravel_flickrlink' ) ) : ?>
		<li class=""><a href="<?php echo esc_url( get_theme_mod( 'clubtravel_flickrlink' ) ); ?>" class="text-white" target="_blank"><i class="fab fa-flickr"></i></a></li>
		<?php endif; ?>
<?php if ( get_theme_mod( 'clubtravel_facebooklink' ) || get_theme_mod( 'clubtravel_twitterlink' ) || get_theme_mod( 'clubtravel_pinterestlink' ) || get_theme_mod( 'clubtravel_instagramlink' ) || get_theme_mod( 'clubtravel_linkedinlink' ) || get_theme_mod( 'clubtravel_youtubelink' ) || get_theme_mod( 'clubtravel_vimeo' ) || get_theme_mod( 'clubtravel_tumblrlink' ) || get_theme_mod( 'clubtravel_flickrlink' ) ) : ?>
	</ul>
</div>
<?php endif; ?>
