<?php 
/*
* Display Top Bar
*/
?>


<div class="headerbox">
  <div class="container">
    <div class="row header-bg">
      <div class="col-lg-5 col-md-4 align-self-center pl-lg-0">
         <div class="timebox border-header">
          <?php if( get_theme_mod( 'feminine_style_coach_location') != '') { ?>
             <i class="<?php echo esc_attr(get_theme_mod('feminine_style_coach_location_icon','fas fa-clock')); ?>"></i><span class="phone"><?php echo esc_html( get_theme_mod('feminine_style_coach_location','')); ?></span>
          <?php } ?>
        </div>
        <div class="row">
          <?php get_template_part( 'template-parts/navigation/site', 'nav-1' ); ?>
        </div>
      </div>
      
      <div class="col-lg-2 col-md-4 align-self-center">
        <?php $feminine_style_coach_logo_settings = get_theme_mod( 'feminine_style_coach_logo_settings','Different Line');
        if($feminine_style_coach_logo_settings == 'Different Line'){ ?>
          <div class="logo">
            <?php if( has_custom_logo() ) feminine_style_coach_the_custom_logo(); ?>
            <?php if( get_theme_mod('feminine_style_coach_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 $feminine_style_coach_description = get_bloginfo( 'description', 'display' );
            if ( $feminine_style_coach_description || is_customize_preview() ) : ?>
              <?php if( get_theme_mod('feminine_style_coach_site_tagline_text',false)){ ?>
                <p class="site-description"><?php echo esc_html($feminine_style_coach_description); ?></p>
              <?php }?>
            <?php endif; ?>
          </div>
        <?php }else if($feminine_style_coach_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() ) feminine_style_coach_the_custom_logo(); ?>
              </div>
              <div class="col-lg-7 col-md-7 align-self-center">
                <?php if(get_theme_mod('feminine_style_coach_site_title_text',true) != ''){ ?>
                  <?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 $feminine_style_coach_description = get_bloginfo( 'description', 'display' );
                if ( $feminine_style_coach_description || is_customize_preview() ) : ?>
                  <?php if(get_theme_mod('feminine_style_coach_site_tagline_text',false) != ''){ ?>
                    <p class="site-description"><?php echo esc_html($feminine_style_coach_description); ?></p>
                  <?php }?>
                <?php endif; ?>
              </div>
            </div>
          </div>
        <?php }?>
        <?php get_template_part( 'template-parts/navigation/responsive', 'menu' ); ?>
      </div>
       <div class="col-lg-5 col-md-4 align-self-center">
        <div class="row border-header">
          <div class="col-lg-6 text-lg-right">
            <div class="timebox">
              <?php if( get_theme_mod( 'feminine_style_coach_call') != '') { ?>
                 <a href="tel:<?php echo esc_html( get_theme_mod('feminine_style_coach_call','') ); ?>"><i class="<?php echo esc_attr(get_theme_mod('feminine_style_coach_call_icon','fas fa-phone')); ?>"></i><span class="phone"><?php echo esc_html( get_theme_mod('feminine_style_coach_call','')); ?></span></a>
              <?php } ?>
            </div>
          </div>
          <div class="col-lg-6 align-self-center">
             <div class="timebox">
          <?php if( get_theme_mod( 'feminine_style_coach_mail') != '') { ?>
             <a href="mailto:<?php echo esc_html( get_theme_mod('feminine_style_coach_mail','') ); ?>"><i class="<?php echo esc_attr(get_theme_mod('feminine_style_coach_mail_icon','fas fa-envelope-open')); ?>"></i><span class="phone"><?php echo esc_html( get_theme_mod('feminine_style_coach_mail','')); ?></span></a>
          <?php } ?>
        </div>
          </div>
        </div>
        <div class="row">
          <?php get_template_part( 'template-parts/navigation/site', 'nav-2' ); ?>
        </div>
      </div>
       
      <div class="clear"></div>
    </div>
  </div>
</div>
