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

<div class="headerbox">
  <div class="container">
    <div class="row">
      <div class="col-lg-3 col-md-12 col-sm-12 mb-1 align-self-center">
        <?php $adventure_travelling_logo_settings = get_theme_mod( 'adventure_travelling_logo_settings','Different Line');
        if($adventure_travelling_logo_settings == 'Different Line'){ ?>
          <div class="logo">
            <?php if( has_custom_logo() ) adventure_travelling_the_custom_logo(); ?>
            <?php if(get_theme_mod('adventure_travelling_site_title_text',true) == 1){ ?>
              <?php if (is_front_page() && is_home()) : ?>
                <h1 class="text-capitalize">
                    <a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a>
                </h1> 
              <?php else : ?>
                  <p class="text-capitalize site-title">
                      <a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a>
                  </p>
              <?php endif; ?>
            <?php }?>
            <?php $adventure_travelling_description = get_bloginfo( 'description', 'display' );
            if ( $adventure_travelling_description || is_customize_preview() ) : ?>
              <?php if(get_theme_mod('adventure_travelling_site_tagline_text',false)){ ?>
                <p class="site-description"><?php echo esc_html($adventure_travelling_description); ?></p>
              <?php }?>
            <?php endif; ?>
          </div>
        <?php }else if($adventure_travelling_logo_settings == 'Same Line'){ ?>
          <div class="logo logo-same-line">
            <div class="row">
              <div class="col-lg-5 col-md-5 align-self-center">
                <?php if( has_custom_logo() ) adventure_travelling_the_custom_logo(); ?>
              </div>
              <div class="col-lg-7 col-md-7 align-self-center">
                <?php if(get_theme_mod('adventure_travelling_site_title_text',true) == 1){ ?>
                  <h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
                <?php }?>
                <?php $adventure_travelling_description = get_bloginfo( 'description', 'display' );
                if ( $adventure_travelling_description || is_customize_preview() ) : ?>
                  <?php if(get_theme_mod('adventure_travelling_site_tagline_text',false)){ ?>
                    <p class="site-description"><?php echo esc_html($adventure_travelling_description); ?></p>
                  <?php }?>
                <?php endif; ?>
              </div>
            </div>
          </div>
        <?php }?>
      </div>
      <div class="col-lg-2 col-md-2 col-sm-6 mb-1 align-self-center">
        <div class="timebox">
          <?php if( get_theme_mod( 'adventure_travelling_location') != '') { ?>
            <i class="<?php echo esc_attr(get_theme_mod('adventure_travelling_location_icon','fas fa-map-marker-alt')); ?>"></i><span class="phone"><?php echo esc_html( get_theme_mod('adventure_travelling_location','')); ?></span>
          <?php } ?>
        </div>
      </div>
      <div class="col-lg-2 col-md-2 col-sm-6 mb-1 align-self-center">
        <div class="timebox">
          <?php if( get_theme_mod( 'adventure_travelling_timming') != '') { ?>
            <i class="<?php echo esc_attr(get_theme_mod('adventure_travelling_timming_icon','far fa-clock')); ?>"></i><span class="phone"><?php echo esc_html( get_theme_mod('adventure_travelling_timming','')); ?></span>
           <?php } ?>
        </div>
      </div>
      <div class="col-lg-3 col-md-4 col-sm-6 mb-1 align-self-center">
        <div class="timebox">
          <?php if( get_theme_mod( 'adventure_travelling_mail') != '') { ?>
            <i class="<?php echo esc_attr(get_theme_mod('adventure_travelling_mail_icon','fas fa-envelope-open')); ?>"></i><span class="phone"><a href="mailto:<?php echo esc_html( get_theme_mod('adventure_travelling_mail','') ); ?>"><?php echo esc_html( get_theme_mod('adventure_travelling_mail','')); ?></a></span>
          <?php } ?>
        </div>
      </div>
      <div class="col-lg-2 col-md-4 col-sm-6 mb-1 align-self-center">
        <div class="social-media">
          <?php                 
            $adventure_travelling_header_fb_new_tab = esc_attr(get_theme_mod('adventure_travelling_header_fb_new_tab','true'));
            $adventure_travelling_header_twt_new_tab = esc_attr(get_theme_mod('adventure_travelling_header_twt_new_tab','true'));
            $adventure_travelling_header_ins_new_tab = esc_attr(get_theme_mod('adventure_travelling_header_ins_new_tab','true'));
            $adventure_travelling_header_ut_new_tab = esc_attr(get_theme_mod('adventure_travelling_header_ut_new_tab','true'));
            $adventure_travelling_header_pint_new_tab = esc_attr(get_theme_mod('adventure_travelling_header_pint_new_tab','true'));
            ?>
          <?php if( get_theme_mod( 'adventure_travelling_facebook_url' ) != '') { ?>
            <a <?php if($adventure_travelling_header_fb_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'adventure_travelling_facebook_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('adventure_travelling_facebook_icon','fab fa-facebook-f')); ?>"></i></a>
          <?php } ?>
          <?php if( get_theme_mod( 'adventure_travelling_twitter_url' ) != '') { ?>
            <a <?php if($adventure_travelling_header_twt_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'adventure_travelling_twitter_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('adventure_travelling_twitter_icon','fab fa-twitter')); ?>"></i></a>
          <?php } ?>
          <?php if( get_theme_mod( 'adventure_travelling_instagram_url' ) != '') { ?>
            <a <?php if($adventure_travelling_header_ins_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'adventure_travelling_instagram_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('adventure_travelling_instagram_icon','fab fa-instagram')); ?>"></i></a>
          <?php } ?>
          <?php if( get_theme_mod( 'adventure_travelling_youtube_url' ) != '') { ?>
            <a <?php if($adventure_travelling_header_ut_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'adventure_travelling_youtube_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('adventure_travelling_youtube_icon','fab fa-youtube')); ?>"></i></a>
          <?php } ?>
          <?php if( get_theme_mod( 'adventure_travelling_pint_url' ) != '') { ?>
            <a <?php if($adventure_travelling_header_pint_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'adventure_travelling_pint_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('adventure_travelling_pint_icon','fab fa-pinterest')); ?>"></i></a>
          <?php } ?>
        </div>
      </div>
    </div>
  </div>
</div>
