<?php    
/**
 * The header for our theme.
 *
 * This is the template that displays all of the <head> section and everything up until <div id="content">
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package Luzuk Premium
 */

?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="profile" href="http://gmpg.org/xfn/11">
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" />

	<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" rel="stylesheet">
	<script src="https://use.fontawesome.com/18a9c36ed1.js"></script>
	
	<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/bootstrap.min.css">
	<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/animate.css" />
	<link rel="preconnect" href="https://fonts.gstatic.com">
	<link rel="preconnect" href="https://fonts.gstatic.com">
	<link href="https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100;200;300;400;500;600;700&display=swap" rel="stylesheet">
	<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap" rel="stylesheet">
	<script src="<?php echo get_template_directory_uri(); ?>/js/bootstrap.min.js" type="text/javascript"  ></script>
	<script src="<?php echo get_template_directory_uri(); ?>/js/wow.js" ></script>
	<script src="<?php echo get_template_directory_uri(); ?>/js/jquery-3.1.1.slim.min.js" type="text/javascript"  ></script>
	<script type="text/javascript">
	$(document).ready(function(){
		$("#formButton").click(function(){
			$("#form1").toggle();
		});
	});
 </script>
	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
	<div class="main-container">
		<div id="loading-area"><div class="la-anim-10"></div></div>
		<!-- header -->
		<!-- #masthead -->
		<header class="site-header header-transparent header mo-left header-seo">
			<div class="clearfix">
				<div class="top-bar-head">
				<?php 
					$headertext = get_theme_mod('headertext', 'Welcome To The Best Landscoping Service Provied In USA');
					$head_adres = get_theme_mod('headadres', '80 Broklyn Golden Street USA');
							
					$email = get_theme_mod('headermain_email', 'info@youremailidhere.com');
					$facebook = get_theme_mod('header_fb', '//facebook.com/');
					$twitter = get_theme_mod('header_tw', '//twitter.com/');
					$instagram = get_theme_mod('header_insta', 'https://www.instagram.com/');
					$pinterest = get_theme_mod('header_p', '//pinterest.com/');
					
				?>

				<?php if( $headertext || $email || $facebook || $twitter || $instagram || $pinterest ) { ?>
					<div class="upper-header">
						<div class="container">
							<div class="col-lg-4 col-md-3 col-sm-12">
								<?php if($headertext){ ?>
									<li>
										<p class="ht-site-description"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'description' ); ?></a></p>  
									</li>
								<?php } ?>
							</div>
							<div class="col-lg-6 col-md-6 col-sm-8 col-xs-9 pl-0">	
								<ul class="hd-contact">
									<?php if($email){ ?>
									<li class="mailto col-lg-6 col-md-6 col-xs-6">
										<a href="mailto:<?php echo $email;?>"><i class="fa fa-envelope"></i> <span class="tooltiptext"><?php echo $email ;?></span></a>

									</li>
									<?php } ?>

									<?php if($head_adres){ ?>
									<li class="address col-lg-6 col-md-6 col-xs-6">
										<i class="fa fa-map-marker"> <span class="tooltiptext"><?php echo $head_adres ;?></span></i>
									</li>
									<?php } ?>
								</ul>
							</div>
							<div class="col-lg-2 col-md-3 col-sm-4 col-xs-3">
								<div class="header-share"> 
									<button type="button" class=" share-icn"><i class="fa fa-share-alt" aria-hidden="true"></i> </button>
									<div class="share-btn">
										<ul>
											<?php if(!empty($facebook)){ ?>
												<li><a href="<?php echo $facebook ?>" title="Facebook" class="site-button sharp" target="_blank"><i class="fa fa-facebook"></i></a></li>
											<?php }?>

											<?php if(!empty($twitter)){ ?>
												<li><a href="<?php echo $twitter ?>" title="Twitter" class="site-button sharp" target="_blank"><i class="fa-brands fa-x-twitter"></i></a></li>
											<?php }?>
											<?php if(!empty($pinterest)){ ?>
												<li><a href="<?php echo $pinterest ?>" title="Pinterest" class="site-button sharp" target="_blank"><i class="fa fa-pinterest-p"></i></a></li>
											<?php }?>
											<?php if(!empty($instagram)){ ?>
												<li><a href="<?php echo $instagram ?>" title="Instagram" class="site-button sharp" target="_blank"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
											<?php }?>
											
											<div class="clearfix"></div>
										</ul>
									</div>
									<div class="clearfix"></div>
								</div>
								<div class="clearfix"></div>
							</div>
						<!-- </div> -->
						<div class="clearfix"></div>
					</div>
						<div class="clearfix"></div>
					</div>
				<?php } ?> 
				<div class="clearfix"></div>
				
					<div class="lower-header">	
						<div class="container">
						<div class="header-left col-md-2 col-sm-5 col-xs-7 logo pd-0">
						<?php 
						
							if( get_theme_mod('pages_logoTopsetmaxwidth',true) ) {
								$pages_logoTopsetmaxwidth = 'max-width:'.esc_attr(get_theme_mod('pages_logoTopsetmaxwidth')).';';
							}
							if( get_theme_mod('pages_logoTpadding',true) ) {
								$pages_logoTpadding = 'padding-top:'.esc_attr(get_theme_mod('pages_logoTpadding')).';';
							}
							if( get_theme_mod('pages_logoBpadding',true) ) {
								$pages_logoBpadding = 'padding-bottom:'.esc_attr(get_theme_mod('pages_logoBpadding')).';';
							}
							if( get_theme_mod('pages_logoLpadding',true) ) {
								$pages_logoLpadding = 'padding-left:'.esc_attr(get_theme_mod('pages_logoLpadding')).';';
							}
							if( get_theme_mod('pages_logoRpadding',true) ) {
								$pages_logoRpadding = 'padding-right:'.esc_attr(get_theme_mod('pages_logoRpadding')).';';
							}

						?>
						<!-- website logo -->
							<div class="logo-header mostion col-sm-12 col-xs-5 pd-0">
								<?php 
								if ( function_exists( 'has_custom_logo' ) && has_custom_logo() ) :
									the_custom_logo();
								else : 
								if ( is_front_page() ) : ?>
									<h1 class="ht-site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
									<?php else : ?>
										<p class="ht-site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
									<?php endif; ?>
								<?php endif; ?>							
							</div> 
						</div>
						<div class="col-md-6 col-sm-6 col-xs-5 head-menu">
							<div class="site-navigation ">
		                        <div class="nav-menus">                 
									<a href="#" class="js-nav-toggle">
											<span></span>
									</a>
								    <div class="nav-wrapper">
										<nav role="navigation">
											<div class="nav-toggle">
													<span class="nav-back"></span>
													<span class="nav-title">Menu</span>
													<span class="nav-close"></span>
											</div>
											<?php
		                                        if( get_post_meta( get_the_ID(), 'intrinsic_header_page_menu', true) !=='0') {
		                                            wp_nav_menu ( array(
		                                                'menu_class' => 'mainm ht-clearfix',
		                                                'container'=> 'ul',
		                                                'menu' => get_post_meta( get_the_ID(), 'intrinsic_header_page_menu', true),
		                                                'theme_location' => 'primary',  
		                                            )); 
		                                        } else {
		                                            wp_nav_menu ( array(
		                                                'menu_class' => 'mainm ht-clearfix',
		                                                'container'=> 'ul',
		                                                'theme_location' => 'primary',  
		                                            )); 
		                                        }
		                                    ?>
										</nav>
									</div>
								</div>
		                        <nav class="navigation">
	                            	<div class="overlaybg"></div><!--  /.overlaybg -->
	                            <!-- Main Menu -->
		                            <div class="menu-wrapper">
		                                <div class="menu-content">
		                                    <?php
		                                        if( get_post_meta( get_the_ID(), 'intrinsic_header_page_menu', true) !=='0') {
		                                            wp_nav_menu ( array(
		                                                'menu_class' => 'mainmenu ht-clearfix',
		                                                'container'=> 'ul',
		                                                'menu' => get_post_meta( get_the_ID(), 'intrinsic_header_page_menu', true),
		                                                'theme_location' => 'primary',  
		                                            )); 
		                                        } else {
		                                            wp_nav_menu ( array(
		                                                'menu_class' => 'mainmenu ht-clearfix',
		                                                'container'=> 'ul',
		                                                'theme_location' => 'primary',  
		                                            )); 
		                                        }
		                                    ?>
		                                </div> <!-- /.hours-content-->
										<div class="clearfix"></div>
		                            </div><!-- /.menu-wrapper --> 
		                            <div class="header-phone">
										<?php 
										
											$phone = get_theme_mod('headermain_phone', '1800 1234 5678');
											$day = get_theme_mod('headermain_day', 'Mon-Fri: 10:00am to 6:00pm');
											$hcart_link = get_theme_mod('hcart_link', '');
										?>
										<?php if($phone){ ?>
											<!-- <a href="tel:<?php echo $phone;?>"><i class="fa fa-phone" aria-hidden="true"></i><?php echo $phone ;?></a>
											<a href="#"><?php echo $day ;?></a> -->
											<li><i class="fa fa-clock-o" aria-hidden="true"></i></li>
									<li><a href="tel:<?php echo $phone;?>"><?php echo $phone ;?></a>
										<a class="day&time" href="#"><?php echo $day ;?></a></li>
									<li><a href="<?php echo $hcart_link ?>"><i class="fa fa-cart-plus" aria-hidden="true"></i></a></li>
										<?php } ?>
									
									</div>
									<div class="get">
										<?php
											$header_link = get_theme_mod('header_link', '');
											$header_button = get_theme_mod('header_button1', 'Get Started');
										?>
										<a href="<?php echo $header_link ?>"> <?php echo $header_button ?> </a>
									</div>
		                        </nav>
		                        <div class="clearfix"></div>
		                    </div><!--  /.site-navigation -->
				  		</div>
						<div class="col-md-2 col-sm-3 col-xs-9 mobnone pd-0">
							<div class="header-phone">
							<?php 
							
								$phone = get_theme_mod('headermain_phone', '92 888 666 0000');
								$day = get_theme_mod('headermain_day', '10:00am to 6:00pm');
								$hcart_link = get_theme_mod('hcart_link', '');
							?>
								<?php if($phone){ ?>
									<li><i class="fa fa-clock-o" aria-hidden="true"></i></li>
									<li><a href="tel:<?php echo $phone;?>"><?php echo $phone ;?></a>
										<a class="day&time" href="#"><?php echo $day ;?></a></li>
									<li><a href="<?php echo $hcart_link ?>"><i class="fa fa-cart-plus" aria-hidden="true"></i></a></li>
								<?php } ?>
								</div>
						</div>
						<div class="col-md-2 col-sm-3 col-xs-3 mobnone1">
							<!-- ================btn============================= -->
							<?php
								$header_link = get_theme_mod('header_link', '');
								$header_button = get_theme_mod('header_button1', 'Get Started');
							?>
							<?php if( get_theme_mod('header_button_display','show' ) == 'show') :
								?>	
							<div class="get">
								<a href="<?php echo $header_link ?>"> <?php echo $header_button ?> </a>
							</div>

						<?php endif ?>
							<div class="clearfix"></div>
		<!-- ================btn-End============================= -->
						</div>
						<div class="clearfix"></div>
					</div>
						<div class="clearfix"></div>
					</div>
				<!-- </div> -->
				<div class="clearfix"></div>
			</div>
			<div class="clearfix"></div>
		</div>			
  	</header>
</div>
<script type="text/javascript">
    $( document ).ready(function() {
     $( "header .share-icn" ).click(function(e) {
         $('header .share-btn').not($(this).next( "header .share-btn" )).each(function(){
            $(this).removeClass("active");
         });
     
            $(this).next( "header .share-btn" ).toggleClass( "active" );
    });   
});
</script>