<?php
/**
 * The header for our theme
 *
 * @subpackage One Login Business
 * @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' );
	}
?>

<div id="page" class="site">
<?php if( get_option('one_login_business_theme_loader',true) != 'off'){ ?>
	<div class="preloader">
		<div class="load">
		  <hr/><hr/><hr/><hr/>
		</div>
	</div>
<?php }?>
<div id="header">
	<div class="container">
		<div class="business-header">
			<div class="row">
				<div class="col-lg-8 text-lg-start text-md-center align-self-center">
					<span class="call">
						
				          <?php if( get_theme_mod('one_login_business_call1') != ''){ ?>
				            <i class="<?php echo esc_attr(get_theme_mod('one_login_business_call_icon','')); ?>"></i><span><a href="tel:<?php echo esc_attr(get_theme_mod('one_login_business_call1', '')); ?>"><?php echo esc_html(get_theme_mod('one_login_business_call1', '')); ?></a></span>
				          <?php } ?>
				        </span>
					
						<span class="mail">
				          <?php if( get_theme_mod('one_login_business_mail1') != ''){ ?>
				            <i class="<?php echo esc_attr(get_theme_mod('one_login_business_mail_icon','')); ?>"></i><span><a href="mailto:<?php echo esc_attr(get_theme_mod('one_login_business_mail1', '')); ?>"><?php echo esc_html(get_theme_mod('one_login_business_mail1', '')); ?></a></span>
				          <?php } ?>
				        </span>
					
						<span class="time">
				          <?php if( get_theme_mod('one_login_business_time1') != ''){ ?>
				            <i class="<?php echo esc_attr(get_theme_mod('one_login_business_clock_icon','')); ?>"></i><span><?php echo esc_html( get_theme_mod('one_login_business_time1','')); ?></span>
				          <?php } ?>
				         
			        </span>
				</div>
				<div class="col-lg-4 align-self-center">
					<?php if( get_option('header_social_icon_enable',false) != 'off'){ ?>
						<?php
				            $one_login_business_header_twt_target = esc_attr(get_option('one_login_business_header_twt_target','true'));
				            $one_login_business_header_linkedin_target = esc_attr(get_option('one_login_business_header_linkedin_target','true'));
				            $one_login_business_header_youtube_target = esc_attr(get_option('one_login_business_header_youtube_target','true'));
				            $one_login_business_header_instagram_target = esc_attr(get_option('one_login_business_header_instagram_target','true'));
				        ?>
						<div class="social-icons">
							 <?php if( get_theme_mod('one_login_business_twitter') != ''){ ?>
				            <a target="<?php echo $one_login_business_header_twt_target !='off' ? '_blank' : '' ?>" href="<?php echo esc_url(get_theme_mod('one_login_business_twitter','')); ?>">
				              <i class="<?php echo esc_attr(get_theme_mod('one_login_business_twitter_icon','fab fa-twitter')); ?>"></i>
				            </a>
				          <?php }?>
				          <?php if( get_theme_mod('one_login_business_linkedin') != ''){ ?>
				            <a target="<?php echo $one_login_business_header_linkedin_target !='off' ? '_blank' : '' ?>" href="<?php echo esc_url(get_theme_mod('one_login_business_linkedin','')); ?>">
				              <i class="<?php echo esc_attr(get_theme_mod('one_login_business_linkedin_icon','fab fa-linkedin-in')); ?>"></i>
				            </a>
				          <?php }?>
				          <?php if( get_theme_mod('one_login_business_youtube') != ''){ ?>
				            <a target="<?php echo $one_login_business_header_youtube_target !='off' ? '_blank' : '' ?>" href="<?php echo esc_url(get_theme_mod('one_login_business_youtube','')); ?>">
				              <i class="<?php echo esc_attr(get_theme_mod('one_login_business_youtube_icon','fab fa-youtube')); ?>"></i>
				            </a>
				          <?php }?>
				          <?php if( get_theme_mod('one_login_business_instagram') != ''){ ?>
				            <a target="<?php echo $one_login_business_header_instagram_target !='off' ? '_blank' : '' ?>" href="<?php echo esc_url(get_theme_mod('one_login_business_instagram','')); ?>">
				              <i class="<?php echo esc_attr(get_theme_mod('one_login_business_instagram_icon','fab fa-instagram')); ?>"></i>
				            </a>
				          <?php }?>
						</div>
			        <?php } ?> 
				</div>
			</div>
		</div>
	</div>
	<div class="container">
		<div class="main-top py-2">
			<div class="row">
				<div class="col-lg-3 col-md-4 col-sm-4 col-12 align-self-center">
					<div class="logo">
				        <?php if ( has_custom_logo() ) : ?>
		            		<?php the_custom_logo(); ?>
			            <?php endif; ?>
		              	<?php $blog_info = get_bloginfo( 'name' ); ?>
		              		<?php if( get_option('one_login_business_logo_title','') != '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('one_login_business_logo_text',true) != 'off'){ ?>	
			                  	<p class="site-description">
			                    	<?php echo esc_html($description); ?>
			                  	</p>
			                <?php }?>
		              	<?php endif; ?>
				    </div>
				</div>
				<div class="col-lg-6 col-md-3 col-sm-2 col-6 align-self-center">
					<div class="fixed_header">
					    <div class="toggle-menu gb_menu text-center">
										<button onclick="one_login_business_gb_Menu_open()" class="gb_toggle p-2"><i class="fas fa-bars"></i></button>
									</div>
				   				<?php get_template_part('template-parts/navigation/navigation'); ?>	
					</div>
				</div>	
				<div class="col-lg-1 col-md-1 col-sm-2 col-6 align-self-center">
				   	<div class="header-search">
      					<div class="header-search-wrapper">
			                <span class="search-main">
			                    <i class="search-icon fas fa-search"></i>
			                </span>
			                <span class="search-close-icon"><i class="fas fa-xmark"></i>
			                </span>
			                <div class="search-form-main clearfix">
			                  <?php get_search_form(); ?>
			                </div>
      					</div>
	            	</div>
				</div>	
				<div class="col-lg-2 col-md-4 col-sm-4 col-12 my-sm-0 my-3 align-self-center">
				    <div class="lets-talk">
			          <?php if ( get_theme_mod('one_login_business_free1','') != "" ) {?>
			             <a href="<?php echo esc_url(get_theme_mod('one_login_business_free')); ?>"><?php echo esc_html(get_theme_mod('one_login_business_free1','')); ?></a>
			          <?php } ?>
			        </div>
				</div>
			</div>
		</div>
	</div>
</div>