<?php
/**
 * The template for displaying the social icon
 *
 * @package Videographer Studio
 * @subpackage videographer_studio
 */

?>

<div class="social-media">
<?php                 
            $videographer_studio_header_fb_new_tab = esc_attr(get_theme_mod('videographer_studio_header_fb_new_tab','true'));
            $videographer_studio_header_twt_new_tab = esc_attr(get_theme_mod('videographer_studio_header_twt_new_tab','true'));
            $videographer_studio_header_ins_new_tab = esc_attr(get_theme_mod('videographer_studio_header_ins_new_tab','true'));
            $videographer_studio_header_ut_new_tab = esc_attr(get_theme_mod('videographer_studio_header_ut_new_tab','true'));
            ?>
          <?php if( get_theme_mod( 'videographer_studio_facebook_url' ) != '' || get_theme_mod( 'videographer_studio_twitter_url' ) != '' || get_theme_mod( 'videographer_studio_instagram_url' ) != '' || get_theme_mod( 'videographer_studio_youtube_url' ) ) { ?>
        
            <?php if( get_theme_mod( 'videographer_studio_facebook_url' ) != '') { ?>
              <a <?php if($videographer_studio_header_fb_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'videographer_studio_facebook_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('videographer_studio_facebook_icon','fab fa-facebook-f')); ?> mr-2"></i></a>
            <?php } ?>
            <?php if( get_theme_mod( 'videographer_studio_twitter_url' ) != '') { ?>
              <a <?php if($videographer_studio_header_twt_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'videographer_studio_twitter_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('videographer_studio_twitter_icon','fab fa-twitter')); ?> mr-2"></i></a>
            <?php } ?>
            <?php if( get_theme_mod( 'videographer_studio_instagram_url' ) != '') { ?>
              <a <?php if($videographer_studio_header_ins_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'videographer_studio_instagram_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('videographer_studio_instagram_icon','fab fa-instagram')); ?> mr-2"></i></a>
            <?php } ?>
            <?php if( get_theme_mod( 'videographer_studio_youtube_url' ) != '') { ?>
              <a <?php if($videographer_studio_header_ut_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'videographer_studio_youtube_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('videographer_studio_youtube_icon','fab fa-youtube')); ?> mr-2"></i></a>
            <?php } ?>
          <?php } ?>
</div>
