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

<div class="headerbox">
  <div class="container">
    <div class="row">
      <div class="col-lg-4 col-md-3 contact align-self-center">
        <?php if( get_theme_mod( 'automobile_hub_address' ) != '' || get_theme_mod( 'automobile_hub_address_text' ) != '') { ?>
          <p class="mb-md-0"><span class="text-uppercase pe-1"><?php echo esc_html( get_theme_mod('automobile_hub_address_text','') ); ?></span>:  <?php echo esc_html( get_theme_mod('automobile_hub_address','') ); ?></p>
        <?php } ?>
      </div>
      <div class="col-lg-3 col-md-3 contact align-self-center">
        <?php if( get_theme_mod( 'automobile_hub_call' ) != '' || get_theme_mod( 'automobile_hub_call_text' ) != '') { ?>
          <p class="mb-md-0"><span class="text-uppercase pe-1"><?php echo esc_html( get_theme_mod('automobile_hub_call_text','') ); ?></span>:  <a href="tel:<?php echo esc_html( get_theme_mod('automobile_hub_call','') ); ?>"><?php echo esc_html( get_theme_mod('automobile_hub_call','') ); ?></a></p>
        <?php } ?>
      </div>
      <div class="col-lg-3 col-md-3 contact align-self-center">
        <?php if( get_theme_mod( 'automobile_hub_mail' ) != '' || get_theme_mod( 'automobile_hub_mail_text' ) != '') { ?>
          <p class="mb-md-0"><span class="text-uppercase pe-1"><?php echo esc_html( get_theme_mod('automobile_hub_mail_text','') ); ?></span>:  <a href="mailto:<?php echo esc_html( get_theme_mod('automobile_hub_mail','') ); ?>"><?php echo esc_html( get_theme_mod('automobile_hub_mail','') ); ?></a></p>
        <?php } ?>
      </div>
      <div class="col-lg-2 col-md-3 social-media align-self-center">
        <?php                 
          $automobile_hub_header_fb_new_tab = esc_attr(get_theme_mod('automobile_hub_header_fb_new_tab','true'));
          $automobile_hub_header_twt_new_tab = esc_attr(get_theme_mod('automobile_hub_header_twt_new_tab','true'));
          $automobile_hub_header_ins_new_tab = esc_attr(get_theme_mod('automobile_hub_header_ins_new_tab','true'));
          $automobile_hub_header_ut_new_tab = esc_attr(get_theme_mod('automobile_hub_header_ut_new_tab','true'));
          $automobile_hub_header_pint_new_tab = esc_attr(get_theme_mod('automobile_hub_header_pint_new_tab','true'));
        ?>
        <?php if( get_theme_mod('automobile_hub_facebook_url') != ''){ ?>
          <a target="<?php echo $automobile_hub_header_fb_new_tab != false ? '_blank' : '' ?>" href="<?php echo esc_url(get_theme_mod('automobile_hub_facebook_url','')); ?>"><i class="<?php echo esc_attr(get_theme_mod('automobile_hub_facebook_icon','fab fa-facebook-f')); ?>"></i></a>
        <?php }?>
        <?php if( get_theme_mod('automobile_hub_twitter_url') != ''){ ?>
          <a target="<?php echo $automobile_hub_header_twt_new_tab != false ? '_blank' : '' ?>" href="<?php echo esc_url(get_theme_mod('automobile_hub_twitter_url','')); ?>"><i class="<?php echo esc_attr(get_theme_mod('automobile_hub_twitter_icon','fab fa-twitter')); ?>"></i></a>
        <?php }?>
        <?php if( get_theme_mod('automobile_hub_instagram_url') != ''){ ?>
          <a target="<?php echo $automobile_hub_header_twt_new_tab != false ? '_blank' : '' ?>" href="<?php echo esc_url(get_theme_mod('automobile_hub_instagram_url','')); ?>"><i class="<?php echo esc_attr(get_theme_mod('automobile_hub_instagram_icon','fab fa-instagram')); ?>"></i></a>
        <?php }?>
        <?php if( get_theme_mod('automobile_hub_youtube_url') != ''){ ?>
          <a target="<?php echo $automobile_hub_header_ut_new_tab != false ? '_blank' : '' ?>" href="<?php echo esc_url(get_theme_mod('automobile_hub_youtube_url','')); ?>"><i class="<?php echo esc_attr(get_theme_mod('automobile_hub_youtube_icon','fab fa-youtube')); ?>"></i></a>
        <?php }?>
        <?php if( get_theme_mod('automobile_hub_pint_url') != ''){ ?>
          <a target="<?php echo $automobile_hub_header_pint_new_tab != false ? '_blank' : '' ?>" href="<?php echo esc_url(get_theme_mod('automobile_hub_pint_url','')); ?>"><i class="<?php echo esc_attr(get_theme_mod('automobile_hub_pint_icon','fab fa-pinterest')); ?>"></i></a>
        <?php }?>
      </div>
    </div>
  </div>
</div>
