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

?>
<?php if ( get_theme_mod( 'clubfitness_facebooklink' ) || get_theme_mod( 'clubfitness_twitterlink' ) || get_theme_mod( 'clubfitness_pinterestlink' ) || get_theme_mod( 'clubfitness_instagramlink' ) || get_theme_mod( 'clubfitness_linkedinlink' ) || get_theme_mod( 'clubfitness_googlepluslink' ) || get_theme_mod( 'clubfitness_youtubelink' ) || get_theme_mod( 'clubfitness_vimeo' ) || get_theme_mod( 'clubfitness_tumblrlink' ) || get_theme_mod( 'clubfitness_flickrlink' ) ) : ?>
<div class="social-icons w-100 position-absolute ">
	<ul class="list-unstyled mb-0 ms-auto me-auto me-lg-0 d-table">
<?php endif; ?>
		<?php if ( get_theme_mod( 'clubfitness_facebooklink' ) ) : ?>
		<li class="float-start me-3"><a href="<?php echo esc_url( get_theme_mod( 'clubfitness_facebooklink' ) ); ?>" class="text-white" target="_blank" ><i class="fab fa-facebook-f"></i></a></li>
		<?php endif; ?>
		<?php if ( get_theme_mod( 'clubfitness_twitterlink' ) ) : ?>
		<li class="float-start me-3"><a href="<?php echo esc_url( get_theme_mod( 'clubfitness_twitterlink' ) ); ?>" class="text-white" target="_blank"><i class="fab fa-twitter"></i></a></li>
		<?php endif; ?>
		<?php if ( get_theme_mod( 'clubfitness_pinterestlink' ) ) : ?>
		<li class="float-start me-3"><a href="<?php echo esc_url( get_theme_mod( 'clubfitness_pinterestlink' ) ); ?>" class="text-white" target="_blank"><i class="fab fa-pinterest-p"></i></a></li>
		<?php endif; ?>
		<?php if ( get_theme_mod( 'clubfitness_instagramlink' ) ) : ?>
		<li class="float-start me-3"><a href="<?php echo esc_url( get_theme_mod( 'clubfitness_instagramlink' ) ); ?>" class="text-white" target="_blank"><i class="fab fa-instagram"></i></a></li>
		<?php endif; ?>
		<?php if ( get_theme_mod( 'clubfitness_linkedinlink' ) ) : ?>
		<li class="float-start me-3"><a href="<?php echo esc_url( get_theme_mod( 'clubfitness_linkedinlink' ) ); ?>" class="text-white" target="_blank"><i class="fab fa-linkedin-in"></i></a></li>
		<?php endif; ?>
		<?php if ( get_theme_mod( 'clubfitness_youtubelink' ) ) : ?>
		<li class="float-start me-3"><a href="<?php echo esc_url( get_theme_mod( 'clubfitness_youtubelink' ) ); ?>" class="text-white" target="_blank"><i class="fab fa-youtube"></i></a></li>
		<?php endif; ?>
		<?php if ( get_theme_mod( 'clubfitness_vimeo' ) ) : ?>
		<li class="float-start me-3"><a href="<?php echo esc_url( get_theme_mod( 'clubfitness_vimeo' ) ); ?>" class="text-white" target="_blank"><i class="fab fa-vimeo-v"></i></a></li>
		<?php endif; ?>
		<?php if ( get_theme_mod( 'clubfitness_tumblrlink' ) ) : ?>
		<li class="float-start me-3"><a href="<?php echo esc_url( get_theme_mod( 'clubfitness_tumblrlink' ) ); ?>" class="text-white" target="_blank"><i class="fab fa-tumblr"></i></a></li>
		<?php endif; ?>
		<?php if ( get_theme_mod( 'clubfitness_flickrlink' ) ) : ?>
		<li class="float-start"><a href="<?php echo esc_url( get_theme_mod( 'clubfitness_flickrlink' ) ); ?>" class="text-white" target="_blank"><i class="fab fa-flickr"></i></a></li>
		<?php endif; ?>
<?php if ( get_theme_mod( 'clubfitness_facebooklink' ) || get_theme_mod( 'clubfitness_twitterlink' ) || get_theme_mod( 'clubfitness_pinterestlink' ) || get_theme_mod( 'clubfitness_instagramlink' ) || get_theme_mod( 'clubfitness_linkedinlink' ) || get_theme_mod( 'clubfitness_googlepluslink' ) || get_theme_mod( 'clubfitness_youtubelink' ) || get_theme_mod( 'clubfitness_vimeo' ) || get_theme_mod( 'clubfitness_tumblrlink' ) || get_theme_mod( 'clubfitness_flickrlink' ) ) : ?>
	</ul>
</div>
<?php endif; ?>
