<?php
/**
 * The template for displaying the social icon
 *
 * @package Green Agro Landscaping
 * @subpackage green_agro_landscaping
 */

?>

<div class="social-media">
<?php                 
            $green_agro_landscaping_header_fb_new_tab = esc_attr(get_theme_mod('green_agro_landscaping_header_fb_new_tab','true'));
            $green_agro_landscaping_header_twt_new_tab = esc_attr(get_theme_mod('green_agro_landscaping_header_twt_new_tab','true'));
            $green_agro_landscaping_header_ins_new_tab = esc_attr(get_theme_mod('green_agro_landscaping_header_ins_new_tab','true'));
            $green_agro_landscaping_header_ut_new_tab = esc_attr(get_theme_mod('green_agro_landscaping_header_ut_new_tab','true'));
            ?>
          <?php if( get_theme_mod( 'green_agro_landscaping_facebook_url' ) != '' || get_theme_mod( 'green_agro_landscaping_twitter_url' ) != '' || get_theme_mod( 'green_agro_landscaping_instagram_url' ) != '' || get_theme_mod( 'green_agro_landscaping_youtube_url' ) != ''  ){ ?>
            <?php if( get_theme_mod( 'green_agro_landscaping_facebook_url' ) != '') { ?>
              <a <?php if($green_agro_landscaping_header_fb_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'green_agro_landscaping_facebook_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('green_agro_landscaping_facebook_icon','fab fa-facebook-f')); ?> me-2"></i></a>
            <?php } ?>
            <?php if( get_theme_mod( 'green_agro_landscaping_twitter_url' ) != '') { ?>
              <a <?php if($green_agro_landscaping_header_twt_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'green_agro_landscaping_twitter_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('green_agro_landscaping_twitter_icon','fab fa-twitter')); ?> me-2"></i></a>
            <?php } ?>
            <?php if( get_theme_mod( 'green_agro_landscaping_instagram_url' ) != '') { ?>
              <a <?php if($green_agro_landscaping_header_ins_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'green_agro_landscaping_instagram_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('green_agro_landscaping_instagram_icon','fab fa-instagram')); ?> me-2"></i></a>
            <?php } ?>
            <?php if( get_theme_mod( 'green_agro_landscaping_youtube_url' ) != '') { ?>
              <a <?php if($green_agro_landscaping_header_ut_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'green_agro_landscaping_youtube_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('green_agro_landscaping_youtube_icon','fab fa-youtube')); ?> me-2"></i></a>
            <?php } ?>
          <?php } ?>
</div>
