<?php
$facebook   = get_theme_mod( 'loza_facebook_url' );
$twitter    = get_theme_mod( 'loza_twitter_url' );
$instagram  = get_theme_mod( 'loza_instagram_url' );
$pinterest  = get_theme_mod( 'loza_pinterest_url' );
$youtube    = get_theme_mod( 'loza_youtube_url' );
$tiktok     = get_theme_mod( 'loza_tiktok_url' );
$linkedin   = get_theme_mod( 'loza_linkedin_url' );
$soundcloud = get_theme_mod( 'loza_soundcloud_url' );
$vimeo      = get_theme_mod( 'loza_vimeo_url' );

if ( loza_has_social_links() ) { ?>
<div class="social-links">
    <?php if( $facebook ) { ?><a href="<?php echo esc_url( $facebook ); ?>"><i class="fab fa-facebook-f"></i></a><?php } ?>
    <?php if( $twitter ) { ?><a href="<?php echo esc_url( $twitter ); ?>"><i class="fab fa-twitter"></i></a><?php } ?>
	<?php if( $instagram ) { ?><a href="<?php echo esc_url( $instagram ); ?>"><i class="fab fa-instagram"></i></a><?php } ?>
	<?php if( $pinterest ) { ?><a href="<?php echo esc_url( $pinterest ); ?>"><i class="fab fa-pinterest-p"></i></a><?php } ?>
	<?php if( $youtube ) { ?><a href="<?php echo esc_url( $youtube ); ?>"><i class="fab fa-youtube"></i></a><?php } ?>
	<?php if( $tiktok ) { ?><a href="<?php echo esc_url( $tiktok ); ?>"><i class="fab fa-tiktok"></i></a><?php } ?>
    <?php if( $linkedin ) { ?><a href="<?php echo esc_url( $linkedin ); ?>"><i class="fab fa-linkedin"></i></a><?php } ?>
	<?php if( $soundcloud ) { ?><a href="<?php echo esc_url( $soundcloud ); ?>"><i class="fab fa-soundcloud"></i></a><?php } ?>
	<?php if( $vimeo ) { ?><a href="<?php echo esc_url( $vimeo ); ?>"><i class="fab fa-vimeo-square"></i></a><?php } ?>
</div><?php
}
