<!--===// Start: Preloader
=================================-->
<?php
$hide_show_social_icon 		= get_theme_mod('hide_show_social_icon', '1');
$hide_show_email_details 	= get_theme_mod('hide_show_email_details', '1');
$tlh_email_icon 			= get_theme_mod('tlh_email_icon', 'fa fa-envelope');
$tlh_email 					= get_theme_mod('tlh_email', 'support@example.com');
$hide_show_cntct_details 	= get_theme_mod('hide_show_cntct_details', '1');
$tlh_contct_icon 			= get_theme_mod('tlh_contct_icon', 'fa-map-marker');
$tlh_contact_address 		= get_theme_mod('tlh_contact_address', '199 krh Wall, NewYork');
$hide_show_number_details 	= get_theme_mod('hide_show_number_details', '1');
$tlh_contact_number_icon 	= get_theme_mod( 'tlh_contact_number_icon','fa-phone');
$tlh_contact_number 		= get_theme_mod( 'tlh_contact_number','+91 1234 567 890'); 		
$hide_show_hours_details 	= get_theme_mod('hide_show_hours_details', '1');
$header_office_hours_icon 	= get_theme_mod( 'header_office_hours_icon','fa-clock-o'); 
$header_office_hours 		= get_theme_mod( 'header_office_hours','Mon To Sat 10AM To 6PM Sunday close');

do_action('glides_preloader');
?>
<!--===// End: Preloader ==================================-->
<!-- Header Start -->
		<header class="header-main">
			<div class="topbar"> <!--topbar start-->
				<div class="container">
					<div class="row align-items-center">
						<div class="col-lg-3">
							<div class="widget-header">
								<?php if ($hide_show_social_icon == '1') : ?>
									<div class="widget-social">
										<?php do_action('themes_social'); ?>
									</div>
								<?php endif; ?>
							</div>
						</div>
						<div class="col-lg-9">
							<div class="widget-header">
								<?php if ($hide_show_email_details == '1' && !empty($tlh_email)): ?>
									<div class="widget-contact">
										<div class="contact-info email">
											<div class="contact-icon">
												<i class="fa <?php echo esc_attr($tlh_email_icon); ?>"></i>
											</div>
											<div class="contact-info">
												<a href="mailto:<?php echo esc_attr($tlh_email); ?>"><?php echo esc_html($tlh_email); ?></a>
											</div>
										</div>
									</div>
								<?php endif; ?>

								<?php if ($hide_show_cntct_details == '1' && !empty($tlh_contact_address)): ?>
									<div class="widget-contact">
										<div class="contact-info contact">
											<div class="contact-icon">
												<i class="fa <?php echo esc_attr($tlh_contct_icon); ?>"></i>
											</div>
											<div class="contact-info">
												<a href="#"><?php echo esc_html($tlh_contact_address); ?></a>
											</div>
										</div>
									</div>
								<?php endif; ?>
								
								<?php if ($hide_show_number_details == '1' && !empty($tlh_contact_number)): ?>
									<div class="widget-contact">
										<div class="contact-info number">
											<div class="contact-icon">
												<i class="fa <?php echo esc_attr($tlh_contact_number_icon); ?>"></i>
											</div>
											<div class="contact-info">
												<a href="#"><?php echo esc_html($tlh_contact_number); ?></a>
											</div>
										</div>
									</div>
								<?php endif; ?>
								
								<?php if ($hide_show_hours_details == '1' && !empty($header_office_hours)): ?>
									<div class="widget-contact">
										<div class="contact-info contact">
											<div class="contact-icon">
												<i class="fa <?php echo esc_attr($header_office_hours_icon); ?>"></i>
											</div>
											<div class="contact-info">
												<a href="#"><?php echo esc_html($header_office_hours); ?></a>
											</div>
										</div>
									</div>
								<?php endif; ?>

							</div>
						</div>
					</div>
				</div>
			</div> <!--topbar end-->
			
			<div class="menu-bar <?php echo esc_attr(glides_sticky_menu()); ?>">
				<div class="container">
					<div class="menubar-inner">
						<div class="row align-items-center">
							<div class="col-lg-2 col-2">
								<div class="logo">
									<?php do_action('themes_logo'); ?>
								</div>
							</div>
							<div class="col-lg-10 col-10">
								<div class="menubar_bg">
									<nav class="navbar navbar-expand-lg">
										<button class="btn-bars d-lg-none" type="button" data-bs-toggle="offcanvas"
											data-bs-target="#navbar" aria-controls="navbar" aria-label="<?php echo esc_attr__('button toggle','glides'); ?>">
											<i class="fa fa-bars"></i>
										</button>
										<div class="offcanvas offcanvas-start" tabindex="-1" id="navbar"
											aria-labelledby="navbarLabel">
											<button type="button" class="btn-close" data-bs-dismiss="offcanvas"
												aria-label="<?php echo esc_attr__('Close','glides'); ?>"></button>
											<div class="offcanvas-body">
												<?php do_action('themes_primary_menu'); ?>
											</div>
										</div>
									</nav>
									<div class="right-menu">
										<ul>
											<li>
											<?php
												$hide_show_search = get_theme_mod('hide_show_search', '1');
												if ($hide_show_search == '1') :
											?>
												<a href="#" aria-label="<?php echo esc_attr__('search','glides'); ?>" data-bs-toggle="modal" data-bs-target="#search">
													<i class="fa fa-search"></i>
												</a>
											<?php endif; ?>

											<div class="modal fade" id="search">
												<div class="modal-dialog modal-fullscreen">
													<div class="modal-content">
														<div class="modal-header">
															<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
														</div>
														<?php
														$hide_show_search = get_theme_mod('hide_show_search', '1');
														if ($hide_show_search == '1') :
														?>
														
															<div class="modal-body">
																<div class="header-search">
																	<form method="get" class="search-form" action="#" aria-label="<?php echo esc_attr__('Search','glides'); ?>">
																		<div>
																			<input type="search" class="form-control" placeholder="<?php echo esc_attr__('Search','glides'); ?>" name="s">
																			<button type="submit" class="submit-search"><i class="fa fa-search"></i></button>
																		</div>
																	</form>
																</div>
															</div>
														<?php endif; ?>
													</div>
												</div>
											</div>
										</li>

										<?php
										$tlh_btn_lbl = get_theme_mod('tlh_btn_lbl', 'Buy Now');
										$tlh_btn_link = get_theme_mod('tlh_btn_link', '#');
										if (!empty($tlh_btn_lbl)) :
										?>
											<li>
												<a href="<?php echo esc_url($tlh_btn_link); ?>" class="btn btn-border-1" aria-label="<?php echo esc_attr__('book now button','glides'); ?>"><?php echo esc_html($tlh_btn_lbl); ?></a>
											</li>
										<?php endif; ?>
										</ul>
									</div>
								</div>
							</div>
						</div>

					</div>
				</div>
			</div>
		</header>
		<!-- Header End -->