<?php
/**
 * The header for our theme
 *
 * @subpackage Chiropractor Therapy
 * @since 1.0
 */

?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js no-svg">
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>

<?php
	if ( function_exists( 'wp_body_open' ) ) {
	    wp_body_open();
	} else {
	    do_action( 'wp_body_open' );
	}
?>
	<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'chiropractor-therapy' ); ?></a>
	<?php if( get_option('chiropractor_therapy_theme_loader',true) != 'off'){ ?>
		<?php $chiropractor_therapy_loader_option = get_theme_mod( 'chiropractor_therapy_loader_style','style_one');
		if($chiropractor_therapy_loader_option == 'style_one'){ ?>
			<div id="preloader" class="circle">
				<div id="loader"></div>
			</div>
		<?php }
		else if($chiropractor_therapy_loader_option == 'style_two'){ ?>
			<div id="preloader">
				<div class="spinner">
					<div class="rect1"></div>
					<div class="rect2"></div>
					<div class="rect3"></div>
					<div class="rect4"></div>
					<div class="rect5"></div>
				</div>
			</div>
		<?php }?>
	<?php }?>
	<div id="page" class="site">
		<div class="wrap_figure py-2 wow slideInDown">
			<div class="container">
				<div class="row">
					<div class="col-lg-5 col-md-12 col-sm-12 align-self-center">
						<div class="row email-phone-box text-center text-md-start">
							<div class="col-lg-5 col-md-5 col-sm-5 align-self-center">
								<?php if( get_theme_mod('chiropractor_therapy_phone_text') != '' || get_theme_mod('chiropractor_therapy_phone_number') != '' ){ ?>
									<div class="row">
										<div class="col-lg-3 col-md-3 col-sm-3 align-self-center">
											<i class="<?php echo esc_html(get_theme_mod('chiropractor_therapy_phone_icon','')); ?>"></i>
										</div>
										<div class="col-lg-9 col-md-9 col-sm-9 align-self-center">
											<h4 class="mb-0"><?php echo esc_html(get_theme_mod('chiropractor_therapy_phone_text','')); ?></h4>
											<p class="mb-0"><a href="tel:<?php echo esc_attr(get_theme_mod('chiropractor_therapy_phone_number', '')); ?>"><?php echo esc_html(get_theme_mod('chiropractor_therapy_phone_number', '')); ?></a></p>
										</div>
									</div>
								<?php }?>
							</div>
							<div class="col-lg-7 col-md-7 col-sm-7 align-self-center">
								<?php if( get_theme_mod('chiropractor_therapy_email_text') != '' || get_theme_mod('chiropractor_therapy_email_number') != '' ){ ?>
									<div class="row">
										<div class="col-lg-2 col-md-2 col-sm-2 align-self-center">
											<i class="<?php echo esc_html(get_theme_mod('chiropractor_therapy_email_icon','')); ?>"></i>
										</div>
										<div class="col-lg-10 col-md-10 col-sm-10 align-self-center">
											<h4 class="mb-0"><?php echo esc_html(get_theme_mod('chiropractor_therapy_email_text','')); ?></h4>
											<p class="mb-0"><a href="mailto:<?php echo esc_attr(get_theme_mod('chiropractor_therapy_email_number', '')); ?>"><?php echo esc_html(get_theme_mod('chiropractor_therapy_email_number', '')); ?></a></p>
										</div>
									</div>
								<?php }?>
							</div>
						</div>
					</div>
					<div class="col-lg-2 col-md-12 col-sm-12 align-self-center mb-2 mb-md-0">
						<div class="chiropractor-therapy-logo py-3 py-lg-0 text-center">
					        <?php if ( has_custom_logo() ) : ?>
			            		<?php the_custom_logo(); ?>
				            <?php endif; ?>
			              	<?php $blog_info = get_bloginfo( 'name' ); ?>
								<?php if( get_option('chiropractor_therapy_logo_title',false) != 'off'){ ?>
					                <?php if ( ! empty( $blog_info ) ) : ?>
					                  	<?php if ( is_front_page() && is_home() ) : ?>
					                    	<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
					                  	<?php else : ?>
				                      		<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
				                  		<?php endif; ?>
					                <?php endif; ?>
								<?php } ?>
				                <?php
			                  		$description = get_bloginfo( 'description', 'display' );
				                  	if ( $description || is_customize_preview() ) :
				                ?>
								<?php if( get_option('chiropractor_therapy_logo_text',true) != 'off'){ ?>
				                  	<p class="site-description">
				                    	<?php echo esc_html($description); ?>
				                  	</p>
								<?php } ?>
			              	<?php endif; ?>
					    </div>
					</div>
					<div class="col-lg-5 col-md-12 col-sm-12 align-self-center">
						<div class="row">
							<div class="col-lg-8 col-md-8 col-sm-8 col-7 align-self-center">
								<?php if( get_option('header_social_icon_enable',false) != 'off'){ ?>
									<?php								  		
								 		$chiropractor_therapy_header_fb_target = esc_attr(get_option('chiropractor_therapy_header_fb_target','true'));
										$chiropractor_therapy_header_twitter_target = esc_attr(get_option('chiropractor_therapy_header_twitter_target','true'));
										$chiropractor_therapy_header_youtube_target = esc_attr(get_option('chiropractor_therapy_header_youtube_target','true'));
										$chiropractor_therapy_header_instagram_target = esc_attr(get_option('chiropractor_therapy_header_instagram_target','true'));		 		
									 ?>	
								<div class="linksbox text-md-start text-lg-end text-center">
										<?php if( get_theme_mod('chiropractor_therapy_fb') != '' || get_theme_mod('chiropractor_therapy_youtube') != '' || get_theme_mod('chiropractor_therapy_instagram') != '' || get_theme_mod('chiropractor_therapy_twitter') != ''){ ?>
											<span><?php esc_html_e('Connect With Us - ','chiropractor-therapy'); ?></span>
										<?php }?>
									<?php if( get_theme_mod('chiropractor_therapy_fb') != ''){ ?>
									<a target="<?php echo $chiropractor_therapy_header_fb_target !='off' ? '_blank' : '' ?>" href="<?php echo esc_url(get_theme_mod('chiropractor_therapy_fb','')); ?>">
									  <i class="<?php echo esc_attr(get_theme_mod('chiropractor_therapy_fb_icon','fab fa-facebook-f')); ?>"></i>
									</a>
									<?php }?>
									<?php if( get_theme_mod('chiropractor_therapy_twitter') != ''){ ?>
									<a target="<?php echo $chiropractor_therapy_header_twitter_target !='off' ? '_blank' : '' ?>" href="<?php echo esc_url(get_theme_mod('chiropractor_therapy_twitter','')); ?>">
									  <i class="<?php echo esc_attr(get_theme_mod('chiropractor_therapy_twitter_icon','fab fa-x-twitter')); ?>"></i>
									</a>
									<?php }?>
									<?php if( get_theme_mod('chiropractor_therapy_youtube') != ''){ ?>
									<a target="<?php echo $chiropractor_therapy_header_youtube_target !='off' ? '_blank' : '' ?>" href="<?php echo esc_url(get_theme_mod('chiropractor_therapy_youtube','')); ?>">
									  <i class="<?php echo esc_attr(get_theme_mod('chiropractor_therapy_youtube_icon','fab fa-youtube')); ?>"></i>
									</a>
									<?php }?>
									<?php if( get_theme_mod('chiropractor_therapy_instagram') != ''){ ?>
									<a target="<?php echo $chiropractor_therapy_header_instagram_target !='off' ? '_blank' : '' ?>" href="<?php echo esc_url(get_theme_mod('chiropractor_therapy_instagram','')); ?>">
									  <i class="<?php echo esc_attr(get_theme_mod('chiropractor_therapy_instagram_icon','fab fa-instagram')); ?>"></i>
									</a>
									<?php }?>
								</div>
								<?php }?>
							</div>
							<div class="col-lg-4 col-md-4 col-sm-4 col-5 align-self-center">
								<?php if( get_theme_mod('chiropractor_therapy_header_quote_button') != '' || get_theme_mod('chiropractor_therapy_header_quote_link') != ''){ ?>
									<div class="button_wrap text-center text-md-end">
										<a href="<?php echo esc_url(get_theme_mod('chiropractor_therapy_header_quote_link','')); ?>"><?php echo esc_html(get_theme_mod('chiropractor_therapy_header_quote_button','')); ?></a>
									</div>
								<?php }?>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="menu_wrap py-2 wow slideInUp">
			<div class="container">
					<div class="toggle-menu gb_menu text-center">
						<button onclick="chiropractor_therapy_gb_Menu_open()" class="gb_toggle p-2"><i class="<?php echo esc_attr(get_theme_mod('chiropractor_therapy_menu_icon','fas fa-bars')); ?>"></i></button>
					</div>
				<?php get_template_part('template-parts/navigation/navigation'); ?>
			</div>
		</div>
	</div>
