<?php

/**
 * Template part for displaying The Header for our theme.
 *
 * @package hardware-dealer-pro
 */
 ?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
   <head>
      <meta charset="<?php bloginfo( 'charset' ); ?>">
      <meta name="viewport" content="width=device-width">
      <link rel="profile" href="https://gmpg.org/xfn/11">
      <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
      <link rel="shortcut icon" href="#">
      <?php wp_head(); ?>
  </head>
<body <?php body_class(); ?> <?php if ( ! function_exists( 'wp_body_open' ) ) { function wp_body_open() { do_action( 'wp_body_open' ); } }?> >
  <div class="spinner-loading-box">
    <div class="demo">
      <div class="loader">
          <!-- <div class="loader-inner-1"></div>
          <div class="loader-inner-2"></div>
          <div class="loader-inner-3"></div> -->
      </div>
    </div>
  </div>
  <!-- <div class="spinner-loading-box">
    <img src="<?php //echo get_template_directory_uri(). '/assets/images/loader.gif'; ?>" alt="">
  </div> -->

<?php
  if ( ! is_plugin_active( 'elementor/elementor.php' )) {
?>

  <header id="ets-header">
    <div class="ets-topbar">
      <div class="container d-flex align-items-center justify-content-lg-between flex-wrap">
        <div class="d-flex align-items-center flex-wrap">
          <a href="#" class="ets-hiring-btn">
            <?php echo esc_html__("We're Hiring", 'hardware-dealer-pro'); ?>
          </a>
          <p class="mb-0 ms-lg-3">
            <?php echo esc_html__('Are you a driven and motivated  IT Support Engineer?', 'hardware-dealer-pro'); ?>
          </p>
          <a href="#" class="ets-register-btn ms-lg-3">
            <?php echo esc_html__('Register Now', 'hardware-dealer-pro'); ?>
          </a>
        </div>
        <div class="d-flex align-items-center flex-wrap">
          <a href="#" class="me-3">
            <i class="fa-solid fa-location-dot"></i>
            <?php echo esc_html__('12980 Mignal Hill Road California, NA, 20110', 'hardware-dealer-pro'); ?>
          </a>
          <a href="mailto:<?php echo esc_url('support@wpelemento.com'); ?>" class="me-3">
            <i class="fa-solid fa-paper-plane"></i>
            <?php echo esc_html__('support@wpelemento.com', 'hardware-dealer-pro'); ?>
          </a>
          <div class="d-flex  align-items-center">
            <ul class="social-share d-flex mb-0">
              <li class="">
                <a href="https://www.facebook.com/" target="_blank" class="facebook">
                  <i class="fa-brands fa-facebook-f"></i>
                </a>
              </li>
              <li>
                <a href="https://www.twitter.com/" target="_blank" class="twitter">
                  <i class="fa-brands fa-twitter"></i>
                </a>
              </li>
              <li>
                <a href="https://www.linkedin.com/" target="_blank" class="linkedin">
                  <i class="fa-brands fa-linkedin-in"></i>
                </a>
              </li>
              <li>
                <a href="https://www.whatsapp.com/" target="_blank" class="whatsapp">
                  <i class="fa-brands fa-whatsapp"></i>
                </a>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>

    <div class="container ets-menu-header py-3">
      <div class="row align-items-center">
        <div class="col-lg-2">
          <div class="logo">
            <?php if ( function_exists( 'the_custom_logo' ) && has_custom_logo() ) { ?>
              <?php the_custom_logo(); ?>
            <?php }else{ ?>
              <img src="<?php echo esc_url(get_template_directory_uri().'/assets/images/Logo.png'); ?>" alt="">
            <?php } ?>
            <div class="logo-text">
              <?php if( get_theme_mod('hardware_dealer_pro_site_title', false) != ''){ ?>
                <h2>
                  <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
                    <?php esc_attr(bloginfo( 'name' )); ?>
                  </a>
                </h2>
              <?php }
              if( get_theme_mod('hardware_dealer_pro_site_tagline', false) != ''){
                $description = get_bloginfo( 'description', 'display' );
              if ( $description || is_customize_preview() ) { ?>
                <p>
                  <?php echo esc_html($description); ?>
                </p>
              <?php } } ?>
            </div>
          </div>
        </div>
        <div class="col-lg-7 text-center">
          <?php
              wp_nav_menu( array(
                'theme_location' => 'primary',
                'menu_class'     => 'primary-menu',
              ) );
            ?>
        </div>
        <div class="col-lg-3 d-flex justify-content-lg-end align-items-center">
          <img src="<?php echo esc_url(get_template_directory_uri(). '/assets/images/header-info.png'); ?>" alt="" class="me-3">
          <div class="">
            <p class="mb-0 header-contact-text">
              <?php echo esc_html__('Need help? Talk to an expert', 'hardware-dealer-pro') ?>
            </p>
            <a href="tel:<?php echo esc_url('+91 1899-785-753', 'hardware-dealer-pro' ); ?>" class="header-contact-number">
              <?php echo esc_html__( '+91 1899-785-753', 'hardware-dealer-pro' ); ?>
            </a>
          </div>
        </div>
      </div>
    </div>
  </header>


<?php 	}  ?>
