<?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' ); ?>">

	<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.googleapis.com">
	<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
	<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&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/jquery-3.1.1.slim.min.js" crossorigin="anonymous"></script> -->

	<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>
	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
	<div class="main-container">
		<header class="ht-sticky-header site-header header-transparent header mo-left header-seo">
			<!-- <div class="clearfix"> -->
			<div class="top-bar-head">
				<?php
					$header_phhone = get_theme_mod('header_phhone', 'info@yourmail.com');

					$facebook = get_theme_mod('header_fb', 'https://facebook.com/');
					$twitter = get_theme_mod('header_tw', 'https://twitter.com/');
					$linkedin = get_theme_mod('header_in', 'https://www.linkedin.com/');
					$instagram = get_theme_mod('header_insta', 'https://www.instagram.com/');

				?>
				<?php if($header_phhone || $facebook || $twitter || $linkedin){ ?>
				<div class="head-inn">
					<div class="container">
						<div class="maineheadercontain">
						<?php if( $header_phhone ){ ?>
						<div class="col-md-3 col-sm-6 col-xs-6 headcontact">
							<!-- website logo -->
										<div class="logo-header mostion">
											<?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>
										<p class="ht-site-description"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'description' ); ?></a></p>
									<!-- nav toggle button -->
										<div class="resp_header_logo">
											<?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; ?>
												<!-- <p class="ht-site-description"><a href="<?php //echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php //bloginfo( 'description' ); ?></a></p> -->
											<?php endif; ?>
										</div>
										<div class="logo col-md-3 col-sm-11 col-xs-10">
									<div class="inside-full-height">
									<?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')).';';
										}

									?>

									</div>
								</div>
							<!-- <div class="Reg">
								<?php if( $header_phhone ){ ?>
									<li><a href="mailto:<?php echo $header_phhone;?>"><i class="fa fa-envelope"></i><?php echo ($header_phhone);  ?></a></li>
								<?php } ?>

						 	</div> -->
						</div>
						<div class="header-contact-fild col-md-9 col-sm-6 col-xs-6">
						<div class="col-md-4 col-sm-4 hbtn col-md-offset-1">
													<?php
								                        //$h_link = get_theme_mod('h_link', '');
														$h_btntxt = get_theme_mod('h_btntxt', 'For client support');
								                        $h_button = get_theme_mod('h_button', '+098 6660 7082');
								                    ?>
													<?php if(!empty($h_button || $h_btntxt)){ ?>
								                        <div class="Rqst-btn">
								                        <div class="header-phone-num">
								                        	<div class="col-md-2 col-md-offset-1 col-sm-2">
									                        	<i class="fa fa-phone"></i>
									                        </div>
								                        	<div class="text_adjust col-md-9 col-sm-10">
																<p><?php echo $h_btntxt ?></p>
									                            <a href="tel:<?php echo $h_button;?>">
									                               <?php echo $h_button ?>
									                            </a>
									                        </div>
									                    </div>
								                        </div>
													<?php }?>
						</div>
						<?php } ?>
						<div class="col-md-4 col-sm-4 hbtnhover">
													<?php
								                        //$h_link = get_theme_mod('h_link', '');
														$b_btntxt = get_theme_mod('b_btntxt', 'Opening Hours');
								                        $b_button = get_theme_mod('b_button', 'Mon-Sat 9:30 to 7:00');
								                    ?>
													<?php if(!empty($h_button || $h_btntxt)){ ?>
													<div class="Rqst-btn">
								                        <div class="hourse-btn-set">
								                        	<div class="col-md-2 col-md-offset-1 col-sm-2">
									                        	<i class="fa fa-clock-o"></i>
									                        </div>
								                        	<div class="text_adjust col-md-9 col-sm-10">
																<p><?php echo $b_btntxt ?></p>
																<span><?php echo $b_button ?></span>
									                        </div>
								                        </div>
								                    </div>
													<?php }?>
						</div>

						<div class="col-md-3 col-sm-12 col-xs-12 Headerbuttonn">
							<div class="Headerbutton">
								 <?php
					            $headerb_link = get_theme_mod('headerb_link', '');
					            $headerb_button1 = get_theme_mod('headerb_button1', 'Get a Quote');
					        ?>
					          <?php if($headerb_button1 ){ ?>
					            <div class="topheaderbutn">
					                <a href="<?php echo $headerb_link ?>"> <?php echo $headerb_button1 ?> </a>
					            </div>
					         <?php }?>
						</div>
					</div>
					</div>
					</div>
					<div class="clearfix"></div>
				</div>
				</div>
				<?php }?>
					<div class="head-mob">
						<div class="container">
							<div class="row row-eq-height">
								<div class="col-md-9 col-sm-12 col-xs-12 pd-0 HeaderRbx">
										<div class="header-right">
											<div class="row ">
												<div class="head-menu">
													<div class="inside-full-height">
														<div class="site-navigation ">
									                        <div class="hamburger-menus">
									                            <span></span>
									                            <span></span>
									                            <span></span>
									                            <span></span>
									                            <span></span>
									                            <span></span>
									                            <span></span>
									                            <span></span>
									                            <span></span>
									                        </div>
									                        <nav class="navigation">
							                            		<div class="overlaybg"></div>
									                            <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="mobnone">
																	<?php
												                        //$h_link = get_theme_mod('h_link', '');
																		$h_btntxt = get_theme_mod('h_btntxt', 'For client support');
												                        $h_button = get_theme_mod('h_button', '+098 6660 7082');
												                    ?>
																	<?php if(!empty($h_button || $h_btntxt)){ ?>
												                        <div class="Rqst-btn">
												                        <div class="header-phone-num">
												                        	<div class="col-md-2 col-sm-2">
													                        	<i class="fa fa-phone"></i>
													                        </div>
												                        	<div class="text_adjust col-md-9 col-sm-10">
																				<p><?php echo $h_btntxt ?></p>
													                            <a href="tel:<?php echo $h_button;?>">
													                               <?php echo $h_button ?>
													                            </a>
													                        </div>
													                    </div>
												                        </div>
																	<?php }?>

																</div>

																<div class="mobnone-time">

																	<?php
																								//$h_link = get_theme_mod('h_link', '');
																		$b_btntxt = get_theme_mod('b_btntxt', 'Opening Hours');
																								$b_button = get_theme_mod('b_button', 'Mon-Sat 9:30 to 7:00');
																						?>
																	<?php if(!empty($h_button || $h_btntxt)){ ?>
																	<div class="Rqst-btn">
																								<div class="hourse-btn-set">
																									<div class="col-md-2 col-sm-2">
																										<i class="fa fa-clock-o"></i>
																									</div>
																									<div class="text_adjust col-md-9 col-sm-10">
																				<p><?php echo $b_btntxt ?></p>
																				<span><?php echo $b_button ?></span>
																									</div>
																								</div>
																						</div>
																	<?php }?>

																</div>

																<div class="mobile-button">

																	<div class="Headerbutton">
																		 <?php
																					$headerb_link = get_theme_mod('headerb_link', '');
																					$headerb_button1 = get_theme_mod('headerb_button1', 'Get a Quote');
																			?>
																				<?php if($headerb_button1 ){ ?>
																					<div class="topheaderbutn">
																							<a href="<?php echo $headerb_link ?>"> <?php echo $headerb_button1 ?> </a>
																					</div>
																			 <?php }?>
																</div>


																</div>
							                        		</nav>
														 	<div class="clearfix"></div>
														</div><!--  /.site-navigation -->
													</div>
												</div>
											</div>
											<div class="clearfix"></div>
										</div>
								</div>
								<div class="clearfix"></div>

						<div class="col-md-3 col-sm-4 col-xs-12 pd-0">
							<div class="header-share">
								<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 fa-twitter"></i></a></li>
										<?php }?>
										<?php if(!empty($linkedin)){ ?>
											<li><a href="<?php echo $linkedin ?>" title="linkedin" class="site-button sharp" target="_blank"><i class="fa fa-linkedin" aria-hidden="true"></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>

							</div>
						</div>
					</div>
				</div>
			</div>
			<!-- </div> -->
			<div class="clearfix"></div>
		</header>
	</div>
