<!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>> 
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<?php $bauen_options = get_option('bauen'); ?>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <?php 
	wp_head(); 
	?>
</head>
<body <?php body_class(); ?> <?php if (is_page()||is_single()) { ?> <?php if(get_post_meta($post->ID,'bauen_page_header_menu_style_opt',true)=='st5'){ ?> data-spy="scroll" data-target=".navbar" data-offset="50" <?php } ;?> <?php } else if (is_404()) { ?> <?php if (Bauen_AfterSetupTheme::return_thme_option('nav_menu_style')=='st5'){ ?> data-spy="scroll" data-target=".navbar" data-offset="50"<?php } ;?> <?php } else { ?> <?php if (Bauen_AfterSetupTheme::return_thme_option('nav_menu_style')=='st5'){ ?> data-spy="scroll" data-target=".navbar" data-offset="50"<?php } ;?> <?php };?>>
<?php wp_body_open(); ?>

    <?php if (Bauen_AfterSetupTheme::return_thme_option('enable_preloader')!='no'){ ?>
	<!-- Preloader -->
  	<div id="preloader"></div>
    <?php } ;?>
	
	    <?php if ( !is_page_template( 'coming-soon.php' )) { ?>
		<?php if (!is_search()) { ?>
			<?php if (is_page()||is_single()||!is_404()) { ?>
				<!-- 1st condition -->			
				<?php if(get_post_meta($post->ID,'bauen_page_header_menu_selector_opt',true)=='yes'){ ?> 			    
					<!-- 2nd condition -->
					<?php if(get_post_meta($post->ID,'bauen_page_header_menu_style_opt',true)=='st2'){ ?> 
						<?php if ( is_page_template( 'onepage.php' )) { ?>				
							<?php get_template_part('template-parts/header/menu-classic'); ?> 
						<?php } else { ?>
							<?php get_template_part('template-parts/header/menu-click'); ?> 
						<?php } ;?>	
					<?php } 
					else if(get_post_meta($post->ID,'bauen_page_header_menu_style_opt',true)=='st3'){ ?> 
						<?php get_template_part('template-parts/header/menu-classic-full');?>
					<?php } 
					else if(get_post_meta($post->ID,'bauen_page_header_menu_style_opt',true)=='st4'){ ?> 
						<?php if ( is_page_template( 'onepage.php' )) { ?>	
							<?php get_template_part('template-parts/header/menu-classic'); ?> 
						<?php } else { ?>					
							<?php get_template_part('template-parts/header/menu-click-full'); ?> 	
						<?php } ;?>	
					<?php } 
					else if(get_post_meta($post->ID,'bauen_page_header_menu_style_opt',true)=='st5'){ ?> 
						<?php get_template_part('template-parts/header/menu-sidebar'); ?> 
					<?php } 				
					else { ?>
						<?php get_template_part('template-parts/header/menu-classic'); ?> 
					<?php  } ;?>											
				<?php } 
				else { ?>				    
					<?php if (Bauen_AfterSetupTheme::return_thme_option('nav_menu_style')=='st2'){ ?> 
						<?php if ( is_page_template( 'onepage.php' )) { ?>				
							<?php get_template_part('template-parts/header/menu-classic'); ?> 
						<?php } else { ?>
							<?php get_template_part('template-parts/header/menu-click'); ?> 
						<?php } ;?>	
					<?php } 
					else if (Bauen_AfterSetupTheme::return_thme_option('nav_menu_style')=='st3'){ ?> 
						<?php get_template_part('template-parts/header/menu-classic-full'); ?> 
					<?php } 
					else if (Bauen_AfterSetupTheme::return_thme_option('nav_menu_style')=='st4'){ ?> 
						<?php if ( is_page_template( 'onepage.php' )) { ?>	
							<?php get_template_part('template-parts/header/menu-classic'); ?> 
						<?php } else { ?>					
							<?php get_template_part('template-parts/header/menu-click-full'); ?> 	
						<?php } ;?>	
					<?php } 
					else if (Bauen_AfterSetupTheme::return_thme_option('nav_menu_style')=='st5'){ ?> 
						<?php get_template_part('template-parts/header/menu-sidebar'); ?> 
					<?php }			
					else { ?>	
						<?php get_template_part('template-parts/header/menu-classic'); ?> 	
					<?php } ;?>				 
				<?php } ;?>
			<?php } 
			else { ?>	
				<!-- 1st condition -->
				<?php if (Bauen_AfterSetupTheme::return_thme_option('nav_menu_style')=='st2'){ ?> 
					<?php if ( is_page_template( 'onepage.php' )) { ?>				
						<?php get_template_part('template-parts/header/menu-classic'); ?> 
					<?php } else { ?>
						<?php get_template_part('template-parts/header/menu-click'); ?> 
					<?php } ;?>	
				<?php } 
				else if (Bauen_AfterSetupTheme::return_thme_option('nav_menu_style')=='st3'){ ?> 
					<?php get_template_part('template-parts/header/menu-classic-full'); ?> 
				<?php } 
				else if (Bauen_AfterSetupTheme::return_thme_option('nav_menu_style')=='st4'){ ?> 
						<?php if ( is_page_template( 'onepage.php' )) { ?>	
							<?php get_template_part('template-parts/header/menu-classic'); ?> 
						<?php } else { ?>					
							<?php get_template_part('template-parts/header/menu-click-full'); ?> 	
						<?php } ;?>	
				<?php } 
				else if (Bauen_AfterSetupTheme::return_thme_option('nav_menu_style')=='st5'){ ?> 
					<?php get_template_part('template-parts/header/menu-sidebar'); ?> 
				<?php }			
				else { ?>	
					<?php get_template_part('template-parts/header/menu-classic'); ?> 	
				<?php } ;?>						
			<?php } ;?>	
		<?php }			
		else { ?>
			<!-- 1st condition -->
			<?php if (Bauen_AfterSetupTheme::return_thme_option('nav_menu_style')=='st2'){ ?> 
				<?php if ( is_page_template( 'onepage.php' )) { ?>				
					<?php get_template_part('template-parts/header/menu-classic'); ?> 
				<?php } else { ?>
					<?php get_template_part('template-parts/header/menu-click'); ?> 
				<?php } ;?>	
			<?php } 
			else if (Bauen_AfterSetupTheme::return_thme_option('nav_menu_style')=='st3'){ ?> 
				<?php get_template_part('template-parts/header/menu-classic-full'); ?> 
			<?php } 
			else if (Bauen_AfterSetupTheme::return_thme_option('nav_menu_style')=='st4'){ ?> 
					<?php if ( is_page_template( 'onepage.php' )) { ?>	
						<?php get_template_part('template-parts/header/menu-classic'); ?> 
					<?php } else { ?>					
						<?php get_template_part('template-parts/header/menu-click-full'); ?> 	
					<?php } ;?>	
			<?php } 
			else if (Bauen_AfterSetupTheme::return_thme_option('nav_menu_style')=='st5'){ ?> 
				<?php get_template_part('template-parts/header/menu-sidebar'); ?> 
			<?php }			
			else { ?>	
				<?php get_template_part('template-parts/header/menu-classic'); ?> 	
			<?php } ;?>			
        <?php } ;?>		
		
    
	<?php if ( !is_page()) { ?>
	<?php if ( !is_single()) { ?>
	<!-- Content -->
	<div class="content-wrapper">
		<!-- Lines -->
		<?php if (Bauen_AfterSetupTheme::return_thme_option('content_lines')=='st2'){ ?>
		<section class="content-lines-wrapper">
			<div class="content-lines-inner">
				<div class="content-lines"></div>
			</div>
		</section>
		<?php } ;?>
		<!-- Header Banner -->	
	<?php } ;?>	
	<?php } ;?>	
	
	<?php } ;?>	