<?php 
/*
* Display Logo and contact details
*/
?>

<div class="top-header py-2">
  <div class="container">
    <div class="row">
      <div class="col-lg-6 col-md-6 align-self-center">
        <?php if( get_theme_mod( 'elearning_education_phone_number' ) != '') { ?>
          <span class="me-lg-3 me-2">
            <a href="tel:<?php echo esc_attr(get_theme_mod('elearning_education_phone_number','')); ?>" class="text-decoration-none">
              <i class="<?php echo esc_attr(get_theme_mod('elearning_education_phone_icon','fas fa-phone')); ?> me-2"></i>
              <?php echo esc_html( get_theme_mod('elearning_education_phone_number','')); ?>
            </a>
          </span>
        <?php } ?>

        <?php if( get_theme_mod( 'elearning_education_email_address' ) != '') { ?>
          <span class="me-lg-3 me-2 my-2 my-md-0">
            <a href="mailto:<?php echo esc_attr(get_theme_mod('elearning_education_email_address','')); ?>" class="text-decoration-none">
              <i class="<?php echo esc_attr(get_theme_mod('elearning_education_mail_icon','far fa-envelope')); ?> me-2"></i>
              <?php echo esc_html( get_theme_mod('elearning_education_email_address','')); ?>
            </a>
          </span>
        <?php } ?>
      </div>
      <div class="col-lg-6 col-md-6 text-center text-md-end align-self-center">
        <div class="media-links mb-3 mb-md-0">
           <?php                 
            $elearning_education_header_fb_new_tab = esc_attr(get_theme_mod('elearning_education_header_fb_new_tab','true'));
            $elearning_education_header_twt_new_tab = esc_attr(get_theme_mod('elearning_education_header_twt_new_tab','true'));
            $elearning_education_header_ins_new_tab = esc_attr(get_theme_mod('elearning_education_header_ins_new_tab','true'));
            $elearning_education_header_ut_new_tab = esc_attr(get_theme_mod('elearning_education_header_ut_new_tab','true'));
            $elearning_education_header_pint_new_tab = esc_attr(get_theme_mod('elearning_education_header_pint_new_tab','true'));
            ?>
          <?php if( get_theme_mod( 'elearning_education_facebook_url' ) != '') { ?>
            <a <?php if($elearning_education_header_fb_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'elearning_education_facebook_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('elearning_education_facebook_icon','fab fa-facebook-f')); ?> me-2 me-md-3"></i></a>
          <?php } ?>
          <?php if( get_theme_mod( 'elearning_education_twitter_url' ) != '') { ?>
            <a <?php if($elearning_education_header_twt_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'elearning_education_twitter_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('elearning_education_twitter_icon','fab fa-twitter')); ?> me-2 me-md-3"></i></a>
          <?php } ?>
          <?php if( get_theme_mod( 'elearning_education_instagram_url' ) != '') { ?>
            <a <?php if($elearning_education_header_ins_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'elearning_education_instagram_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('elearning_education_instagram_icon','fab fa-instagram')); ?> me-2 me-md-3"></i></a>
          <?php } ?>
          <?php if( get_theme_mod( 'elearning_education_youtube_url' ) != '') { ?>
            <a <?php if($elearning_education_header_ut_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'elearning_education_youtube_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('elearning_education_youtube_icon','fab fa-youtube')); ?> me-2 me-md-3"></i></a>
          <?php } ?>
          <?php if( get_theme_mod( 'elearning_education_pint_url' ) != '') { ?>
            <a <?php if($elearning_education_header_pint_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'elearning_education_pint_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('elearning_education_pinterest_icon','fab fa-pinterest')); ?> me-2 me-md-3"></i></a>
          <?php } ?>
        </div>
      </div>
    </div>
  </div> 
</div>