<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<?php
global $qode_options;
global $wp_query;
?>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>" />
	<?php
	if (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))
		echo('<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">');

	$responsiveness = "yes";
	if (isset($qode_options['responsiveness'])) $responsiveness = $qode_options['responsiveness'];
	if($responsiveness != "no"){
		?>
		<meta name=viewport content="width=device-width,initial-scale=1,user-scalable=no">
	<?php
	}else{
		?>
		<meta name=viewport content="width=1200,user-scalable=no">
	<?php } ?>
	<title><?php wp_title(''); ?></title>

	<?php do_action('qode_header_meta'); ?>

	<link rel="profile" href="http://gmpg.org/xfn/11" />
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
	<link rel="shortcut icon" type="image/x-icon" href="<?php echo $qode_options['favicon_image']; ?>">
	<link rel="apple-touch-icon" href="<?php echo $qode_options['favicon_image']; ?>"/>
	<!--[if gte IE 9]>
	<style type="text/css">
		.gradient {
			filter: none;
		}
	</style>
	<![endif]-->

	<?php wp_head(); ?>

</head>

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

<?php
$loading_animation = true;
if (isset($qode_options['loading_animation'])){ if($qode_options['loading_animation'] == "off") { $loading_animation = false; }};

if (isset($qode_options['loading_image']) && $qode_options['loading_image'] != ""){ $loading_image = $qode_options['loading_image'];}else{ $loading_image =  ""; }
?>
<?php if($loading_animation){ ?>
	<div class="ajax_loader"><div class="ajax_loader_1"><?php if($loading_image != ""){ ?><div class="ajax_loader_2"><img src="<?php echo $loading_image; ?>" alt="" /></div><?php } else{ qode_loading_spinners(); } ?></div></div>
<?php } ?>
<?php
$enable_side_area = "yes";
if (isset($qode_options['enable_side_area'])){ if($qode_options['enable_side_area'] == "no") { $enable_side_area = "no"; }};

$enable_popup_menu = "no";
if (isset($qode_options['enable_popup_menu'])){ if($qode_options['enable_popup_menu'] == "yes" && has_nav_menu('popup-navigation')) { $enable_popup_menu = "yes"; }};


$enable_vertical_menu = false;
if(isset($qode_options['vertical_area']) && $qode_options['vertical_area'] =='yes'){
	$enable_vertical_menu = true;
}

$header_button_size = '';
if(isset($qode_options['header_buttons_size'])){
	$header_button_size = $qode_options['header_buttons_size'];
}
?>
<?php if($enable_side_area == "yes" && $enable_popup_menu == 'no') { ?>
	<section class="side_menu right">
		<?php if(isset($qode_options['side_area_title']) && $qode_options['side_area_title'] != "") { ?>
			<div class="side_menu_title">
				<h5><?php echo $qode_options['side_area_title'] ?></h5>
			</div>
		<?php } ?>
		<a href="#" target="_self" class="close_side_menu"></a>
		<?php dynamic_sidebar('sidearea'); ?>
	</section>
<?php } ?>
<div class="wrapper">
<div class="wrapper_inner">
<!-- Google Analytics start -->
<?php if (isset($qode_options['google_analytics_code'])){
	if($qode_options['google_analytics_code'] != "") {
		?>
		<script>
			var _gaq = _gaq || [];
			_gaq.push(['_setAccount', '<?php echo $qode_options['google_analytics_code']; ?>']);
			_gaq.push(['_trackPageview']);

			(function() {
				var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
				ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
				var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
			})();
		</script>
	<?php }
}
?>
<!-- Google Analytics end -->

<?php
$header_in_grid = true;
if(isset($qode_options['header_in_grid'])){if ($qode_options['header_in_grid'] == "no") $header_in_grid = false;}

$menu_position = "";
if(isset($qode_options['menu_position'])){$menu_position = $qode_options['menu_position']; }

$centered_logo = false;
if (isset($qode_options['center_logo_image'])){ if($qode_options['center_logo_image'] == "yes") { $centered_logo = true; }};

$centered_logo_animate = false;
if (isset($qode_options['center_logo_image_animate'])){ if($qode_options['center_logo_image_animate'] == "yes") { $centered_logo_animate = true; }};

if(isset($qode_options['header_bottom_appearance']) && $qode_options['header_bottom_appearance'] == "fixed_hiding"){
    $centered_logo = true;
    $centered_logo_animate = true;
}

$display_header_top = "yes";
if(isset($qode_options['header_top_area'])){
	$display_header_top = $qode_options['header_top_area'];
}
if (!empty($_SESSION['qode_theme19_header_top'])){
	$display_header_top = $_SESSION['qode_theme19_header_top'];
}
$header_top_area_scroll = "no";
if(isset($qode_options['header_top_area_scroll'])){
	$header_top_area_scroll = $qode_options['header_top_area_scroll'];
}

global $wp_query;
$id = $wp_query->get_queried_object_id();
$is_woocommerce=false;
if(function_exists("is_woocommerce")) {
	$is_woocommerce = is_woocommerce();
	if($is_woocommerce){
		$id = get_option('woocommerce_shop_page_id');
	}
}
$header_style = "";
if(get_post_meta($id, "qode_header-style", true) != ""){
	$header_style = get_post_meta($id, "qode_header-style", true);
}else if(isset($qode_options['header_style'])){
	$header_style = $qode_options['header_style'];
}

$header_color_transparency_per_page = "";
if($qode_options['header_background_transparency_initial'] != "") {
	$header_color_transparency_per_page = $qode_options['header_background_transparency_initial'];
}
if(get_post_meta($id, "qode_header_color_transparency_per_page", true) != ""){
	$header_color_transparency_per_page = get_post_meta($id, "qode_header_color_transparency_per_page", true);
}

$header_color_per_page = "style='";
if(get_post_meta($id, "qode_header_color_per_page", true) != ""){
	if($header_color_transparency_per_page != ""){
		$header_background_color = qode_hex2rgb(get_post_meta($id, "qode_header_color_per_page", true));
		$header_color_per_page .= " background-color:rgba(" . $header_background_color[0] . ", " . $header_background_color[1] . ", " . $header_background_color[2] . ", " . $header_color_transparency_per_page . ");";
	}else{
		$header_color_per_page .= " background-color:" . get_post_meta($id, "qode_header_color_per_page", true) . ";";
	}
} else if($header_color_transparency_per_page != "" && get_post_meta($id, "qode_header_color_per_page", true) == ""){
	$header_background_color = $qode_options['header_background_color'] ? qode_hex2rgb($qode_options['header_background_color']) : qode_hex2rgb("#ffffff");
	$header_color_per_page .= " background-color:rgba(" . $header_background_color[0] . ", " . $header_background_color[1] . ", " . $header_background_color[2] . ", " . $header_color_transparency_per_page . ");";
}

$header_top_color_per_page = "style='";
if(get_post_meta($id, "qode_header_color_per_page", true) != ""){
	if($header_color_transparency_per_page != ""){
		$header_background_color = qode_hex2rgb(get_post_meta($id, "qode_header_color_per_page", true));
		$header_top_color_per_page .= "background-color:rgba(" . $header_background_color[0] . ", " . $header_background_color[1] . ", " . $header_background_color[2] . ", " . $header_color_transparency_per_page . ");";
	}else{
		$header_top_color_per_page .= "background-color:" . get_post_meta($id, "qode_header_color_per_page", true) . ";";
	}
} else if($header_color_transparency_per_page != "" && get_post_meta($id, "qode_header_color_per_page", true) == ""){
	$header_background_color = $qode_options['header_top_background_color'] ? qode_hex2rgb($qode_options['header_top_background_color']) : qode_hex2rgb("#ffffff");
	$header_top_color_per_page .= "background-color:rgba(" . $header_background_color[0] . ", " . $header_background_color[1] . ", " . $header_background_color[2] . ", " . $header_color_transparency_per_page . ");";
}
$header_separator = qode_hex2rgb("#eaeaea");
if(isset($qode_options['header_separator_color']) && $qode_options['header_separator_color'] != ""){
	$header_separator = qode_hex2rgb($qode_options['header_separator_color']);
}

$header_color_per_page .="'";
$header_top_color_per_page .="'";

//generate header classes based on qode options
$header_classes = '';

$header_bottom_appearance = 'fixed';
if(isset($qode_options['header_bottom_appearance'])){
	$header_bottom_appearance = $qode_options['header_bottom_appearance'];
}

$per_page_header_transparency = get_post_meta($id, 'qode_header_color_transparency_per_page', true);
$header_transparency = '';

if($per_page_header_transparency !== '') {
	$header_transparency = $per_page_header_transparency;
} else {
	$header_transparency = $qode_options['header_background_transparency_initial'];
}



$vertical_area_background_image = "";
if(isset($qode_options['vertical_area_background_image']) && $qode_options['vertical_area_background_image'] != "") {
	$vertical_area_background_image = $qode_options['vertical_area_background_image'];
}
if(get_post_meta($id, "qode_page_vertical_area_background_image", true) != ""){
	$vertical_area_background_image = get_post_meta($id, "qode_page_vertical_area_background_image", true);
}

?>
<?php if($enable_vertical_menu) { ?>
	<?php
	$vertical_menu_style = "toggle";
	$vertical_area_scroll = " with_scroll";

	$page_vertical_area_background = "";
	if(get_post_meta($id, "qode_page_vertical_area_background", true) != ""){
		$page_vertical_area_background = 'style="background-color:'.get_post_meta($id, "qode_page_vertical_area_background", true).';"';
	}
	?>
	<aside class="vertical_menu_area<?php echo $vertical_area_scroll; ?> <?php echo $header_style; ?>" <?php echo $page_vertical_area_background; ?>>



		<div class="vertical_area_background" <?php if($vertical_area_background_image != ""){ echo 'style="background-image:url('.$vertical_area_background_image.');"'; } ?>></div>


		<div class="vertical_logo_wrapper">
			<?php
			if (isset($qode_options['logo_image']) && $qode_options['logo_image'] != ""){ $logo_image = $qode_options['logo_image'];}else{ $logo_image =  get_template_directory_uri().'/img/logo.png'; };
			if (isset($qode_options['logo_image_light']) && $qode_options['logo_image_light'] != ""){ $logo_image_light = $qode_options['logo_image_light'];}else{ $logo_image_light =  get_template_directory_uri().'/img/logo.png'; };
			if (isset($qode_options['logo_image_dark']) && $qode_options['logo_image_dark'] != ""){ $logo_image_dark = $qode_options['logo_image_dark'];}else{ $logo_image_dark =  get_template_directory_uri().'/img/logo_black.png'; };

			?>
			<div class="q_logo_vertical">
				<a href="<?php echo home_url('/'); ?>">
					<img class="normal" src="<?php echo $logo_image; ?>" alt="Logo"/>
					<img class="light" src="<?php echo $logo_image_light; ?>" alt="Logo"/>
					<img class="dark" src="<?php echo $logo_image_dark; ?>" alt="Logo"/>
				</a>
			</div>

		</div>

		<nav class="vertical_menu dropdown_animation vertical_menu_<?php echo $vertical_menu_style; ?>">
			<?php

			wp_nav_menu( array( 'theme_location' => 'top-navigation' ,
				'container'  => '',
				'container_class' => '',
				'menu_class' => '',
				'menu_id' => '',
				'fallback_cb' => 'top_navigation_fallback',
				'link_before' => '<span>',
				'link_after' => '</span>',
				'walker' => new qode_type1_walker_nav_menu()
			));
			?>
		</nav>
		<div class="vertical_menu_area_widget_holder">
			<?php dynamic_sidebar('vertical_menu_area'); ?>
		</div>
	</aside>

<?php } ?>
<?php
global $qode_toolbar;
?>
<?php if(!$enable_vertical_menu){ ?>
	<header class="<?php qode_header_classes(); ?>">
	<?php if(isset($qode_toolbar)) include("toolbar.php") ?>
	<div class="header_inner clearfix">

	<?php if(isset($qode_options['enable_search']) && $qode_options['enable_search'] == "yes"){ ?>
		<form role="search" id="searchform" action="<?php echo home_url('/'); ?>" class="qode_search_form" method="get">
			<?php if($header_in_grid){ ?>
			<div class="container">
				<div class="container_inner clearfix">
					<?php } ?>

					<i class="fa fa-search"></i>
					<input type="text" placeholder="<?php _e('Search', 'qode'); ?>" name="s" class="qode_search_field" autocomplete="off" />
					<input type="submit" value="Search" />

					<div class="qode_search_close">
						<a href="#">
							<i class="fa fa-times"></i>
						</a>
					</div>
					<?php if($header_in_grid){ ?>
				</div>
			</div>
		<?php } ?>
		</form>

	<?php } ?>
	<div class="header_top_bottom_holder">
		<?php if($display_header_top == "yes"){ ?>
			<div class="header_top clearfix" <?php echo $header_top_color_per_page; ?> >
				<?php if($header_in_grid){ ?>
				<div class="container">
					<div class="container_inner clearfix">
						<?php } ?>
						<div class="left">
							<div class="inner">
								<?php
								dynamic_sidebar('header_left');
								?>
							</div>
						</div>
						<div class="right">
							<div class="inner">
								<?php
								dynamic_sidebar('header_right');
								?>
							</div>
						</div>
						<?php if($header_in_grid){ ?>
					</div>
				</div>
			<?php } ?>
			</div>
		<?php } ?>
		<div class="header_bottom clearfix" <?php echo $header_color_per_page; ?> >
			<?php if($header_in_grid){ ?>
			<div class="container">
				<div class="container_inner clearfix">
					<?php } ?>
                    <?php if($header_bottom_appearance == "stick_with_left_right_menu") { ?>
                        <nav class="main_menu drop_down left_side">
                            <?php
                            wp_nav_menu( array( 'theme_location' => 'left-top-navigation' ,
                                'container'  => '',
                                'container_class' => '',
                                'menu_class' => '',
                                'menu_id' => '',
                                'fallback_cb' => 'top_navigation_fallback',
                                'link_before' => '<span>',
                                'link_after' => '</span>',
                                'walker' => new qode_type1_walker_nav_menu()
                            ));
                            ?>
                        </nav>
                    <?php } ?>
					<div class="header_inner_left">
                        <?php if($centered_logo && $header_bottom_appearance !== "stick menu_bottom") {
                            dynamic_sidebar( 'header_left_from_logo' );
                        } ?>
						<?php if(has_nav_menu('top-navigation') || has_nav_menu('left-top-navigation') || has_nav_menu('right-top-navigation')) { ?>
							<div class="mobile_menu_button"><span><i class="fa fa-bars"></i></span></div>
						<?php } ?>
						<div class="logo_wrapper">
							<?php
							if (isset($qode_options['logo_image']) && $qode_options['logo_image'] != ""){ $logo_image = $qode_options['logo_image'];}else{ $logo_image =  get_template_directory_uri().'/img/logo.png'; };
							if (isset($qode_options['logo_image_light']) && $qode_options['logo_image_light'] != ""){ $logo_image_light = $qode_options['logo_image_light'];}else{ $logo_image_light =  get_template_directory_uri().'/img/logo.png'; };
							if (isset($qode_options['logo_image_dark']) && $qode_options['logo_image_dark'] != ""){ $logo_image_dark = $qode_options['logo_image_dark'];}else{ $logo_image_dark =  get_template_directory_uri().'/img/logo_black.png'; };
							if (isset($qode_options['logo_image_sticky']) && $qode_options['logo_image_sticky'] != ""){ $logo_image_sticky = $qode_options['logo_image_sticky'];}else{ $logo_image_sticky =  get_template_directory_uri().'/img/logo_black.png'; };
							if (isset($qode_options['logo_image_popup']) && $qode_options['logo_image_popup'] != ""){ $logo_image_popup = $qode_options['logo_image_popup'];}else{ $logo_image_popup =  get_template_directory_uri().'/img/logo_white.png'; };
                            if (isset($qode_options['logo_image_fixed_hidden']) && $qode_options['logo_image_fixed_hidden'] != ""){ $logo_image_fixed_hidden = $qode_options['logo_image_fixed_hidden'];}else{ $logo_image_fixed_hidden =  get_template_directory_uri().'/img/logo.png'; };
							?>
							<div class="q_logo"><a href="<?php echo home_url('/'); ?>"><img class="normal" src="<?php echo $logo_image; ?>" alt="Logo"/><img class="light" src="<?php echo $logo_image_light; ?>" alt="Logo"/><img class="dark" src="<?php echo $logo_image_dark; ?>" alt="Logo"/><img class="sticky" src="<?php echo $logo_image_sticky; ?>" alt="Logo"/><?php if($enable_popup_menu == 'yes'){ ?><img class="popup" src="<?php echo $logo_image_popup; ?>" alt="Logo"/><?php } ?></a></div>
                            <?php if($header_bottom_appearance == "fixed_hiding") { ?>
                                <div class="q_logo_hidden"><a href="<?php echo home_url('/'); ?>"><img alt="Logo" src="<?php echo $logo_image_fixed_hidden; ?>" style="height: 100%;"></a></div>
                            <?php } ?>
						</div>
						<?php if($header_bottom_appearance == "stick menu_bottom" && is_active_sidebar('header_fixed_right')){ ?>
							<div class="header_fixed_right_area">
								<?php dynamic_sidebar('header_fixed_right'); ?>
							</div>
						<?php } ?>
                        <?php if($centered_logo && $header_bottom_appearance !== "stick menu_bottom") {
                            dynamic_sidebar( 'header_right_from_logo' );
                        } ?>
					</div>
                    <?php if($header_bottom_appearance == "stick_with_left_right_menu") { ?>
                        <nav class="main_menu drop_down right_side">
                            <?php
                            wp_nav_menu( array( 'theme_location' => 'right-top-navigation' ,
                                'container'  => '',
                                'container_class' => '',
                                'menu_class' => '',
                                'menu_id' => '',
                                'fallback_cb' => 'top_navigation_fallback',
                                'link_before' => '<span>',
                                'link_after' => '</span>',
                                'walker' => new qode_type1_walker_nav_menu()
                            ));
                            ?>
                        </nav>
                    <?php } ?>
					<?php if($header_bottom_appearance != "stick menu_bottom" && $header_bottom_appearance != "stick_with_left_right_menu"){ ?>
                        <?php if($header_bottom_appearance == "fixed_hiding") { ?> <div class="holeder_for_hidden_menu"> <?php } //only for fixed with hiding menu ?>
                        <?php if(!$centered_logo) { ?>
							<div class="header_inner_right">
								<div class="side_menu_button_wrapper right">
									<?php if(is_active_sidebar('header_bottom_right')) { ?>
										<div class="header_bottom_right_widget_holder"><?php dynamic_sidebar('header_bottom_right'); ?></div>
									<?php } ?>
									<?php if(is_active_sidebar('woocommerce_dropdown')) {
										dynamic_sidebar('woocommerce_dropdown');
									} ?>
									<div class="side_menu_button">
										<?php if(isset($qode_options['enable_search']) && $qode_options['enable_search'] == "yes"){ ?>
											<a class="search_button" href="javascript:void(0)">
												<i class="fa fa-search"></i>
											</a>
										<?php } ?>
										<?php if($enable_popup_menu == "yes"){ ?>
											<a href="javascript:void(0)" class="popup_menu <?php echo $header_button_size; ?>"><span class="popup_menu_inner"><i class="line">&nbsp;</i></span></a>
										<?php } ?>
										<?php if($enable_side_area == "yes" && $enable_popup_menu == 'no'){ ?>
										<a class="side_menu_button_link <?php echo $header_button_size; ?>" href="javascript:void(0)">
												<i class="fa fa-bars"></i>
											</a><?php } ?>
									</div>
								</div>
							</div>
						<?php } ?>
						<nav class="main_menu drop_down <?php if($menu_position == "" && $header_bottom_appearance != "stick menu_bottom"){ echo 'right';} ?>">
							<?php

							wp_nav_menu( array( 'theme_location' => 'top-navigation' ,
								'container'  => '',
								'container_class' => '',
								'menu_class' => '',
								'menu_id' => '',
								'fallback_cb' => 'top_navigation_fallback',
								'link_before' => '<span>',
								'link_after' => '</span>',
								'walker' => new qode_type1_walker_nav_menu()
							));
							?>
						</nav>
						<?php if($centered_logo) { ?>
							<div class="header_inner_right">
								<div class="side_menu_button_wrapper right">
									<?php if(is_active_sidebar('header_bottom_right')) { ?>
										<div class="header_bottom_right_widget_holder"><?php dynamic_sidebar('header_bottom_right'); ?></div>
									<?php } ?>
									<?php if(is_active_sidebar('woocommerce_dropdown')) {
										dynamic_sidebar('woocommerce_dropdown');
									} ?>
									<div class="side_menu_button">
										<?php if(isset($qode_options['enable_search']) && $qode_options['enable_search'] == "yes"){ ?>
											<a class="search_button" href="javascript:void(0)">
												<i class="fa fa-search"></i>
											</a>
										<?php } ?>
										<?php if($enable_popup_menu == "yes"){ ?>
											<a href="javascript:void(0)" class="popup_menu <?php echo $header_button_size; ?>"><span class="popup_menu_inner"><i class="line">&nbsp;</i></span></a>
										<?php } ?>
										<?php if($enable_side_area == "yes" && $enable_popup_menu == 'no'){ ?>
											<a class="side_menu_button_link <?php echo $header_button_size; ?>" href="javascript:void(0)">
												<i class="fa fa-bars"></i>
											</a>
										<?php } ?>

									</div>
								</div>
							</div>
						<?php } ?>
                        <?php if($header_bottom_appearance == "fixed_hiding") { ?> </div> <?php } //only for fixed with hiding menu ?>
					<?php }else if($header_bottom_appearance == "stick menu_bottom"){ ?>
					<div class="header_menu_bottom">
						<div class="header_menu_bottom_inner">
							<?php if($centered_logo) { ?>
							<div class="main_menu_header_inner_right_holder with_center_logo">
								<?php } else { ?>
								<div class="main_menu_header_inner_right_holder">
									<?php } ?>
									<nav class="main_menu drop_down">
										<?php
										wp_nav_menu( array(
											'theme_location' => 'top-navigation' ,
											'container'  => '',
											'container_class' => '',
											'menu_class' => 'clearfix',
											'menu_id' => '',
											'fallback_cb' => 'top_navigation_fallback',
											'link_before' => '<span>',
											'link_after' => '</span>',
											'walker' => new qode_type1_walker_nav_menu()
										));
										?>
									</nav>
									<div class="header_inner_right">
										<div class="side_menu_button_wrapper right">
											<?php if(is_active_sidebar('header_bottom_right')) { ?>
												<div class="header_bottom_right_widget_holder"><?php dynamic_sidebar('header_bottom_right'); ?></div>
											<?php } ?>
											<?php if(is_active_sidebar('woocommerce_dropdown')) {
												dynamic_sidebar('woocommerce_dropdown');
											} ?>
											<div class="side_menu_button">
												<?php if(isset($qode_options['enable_search']) && $qode_options['enable_search'] == "yes"){ ?>
													<a class="search_button" href="javascript:void(0)">
														<i class="fa fa-search"></i>
													</a>
												<?php } ?>
												<?php if($enable_popup_menu == "yes"){ ?>
													<a href="javascript:void(0)" class="popup_menu <?php echo $header_button_size; ?>"><span class="popup_menu_inner"><i class="line">&nbsp;</i></span></a>
												<?php } ?>
												<?php if($enable_side_area == "yes" && $enable_popup_menu == 'no'){ ?>
													<a class="side_menu_button_link <?php echo $header_button_size; ?>" href="javascript:void(0)">
														<i class="fa fa-bars"></i>
													</a>
												<?php } ?>

											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<?php } ?>
						<nav class="mobile_menu">
							<?php
                            if($header_bottom_appearance == "stick_with_left_right_menu") {
                                echo '<ul>';
                                wp_nav_menu( array( 'theme_location' => 'left-top-navigation' ,
                                    'container'  => '',
                                    'container_class' => '',
                                    'menu_class' => '',
                                    'menu_id' => '',
                                    'fallback_cb' => '',
                                    'link_before' => '<span>',
                                    'link_after' => '</span>',
                                    'walker' => new qode_type4_walker_nav_menu(),
                                    'items_wrap'      => '%3$s'
                                ));
                                wp_nav_menu( array( 'theme_location' => 'right-top-navigation' ,
                                    'container'  => '',
                                    'container_class' => '',
                                    'menu_class' => '',
                                    'menu_id' => '',
                                    'fallback_cb' => '',
                                    'link_before' => '<span>',
                                    'link_after' => '</span>',
                                    'walker' => new qode_type4_walker_nav_menu(),
                                    'items_wrap'      => '%3$s'
                                ));
                                echo '</ul>';
                            }else{
                                wp_nav_menu( array( 'theme_location' => 'top-navigation' ,
                                    'container'  => '',
                                    'container_class' => '',
                                    'menu_class' => '',
                                    'menu_id' => '',
                                    'fallback_cb' => 'top_navigation_fallback',
                                    'link_before' => '<span>',
                                    'link_after' => '</span>',
                                    'walker' => new qode_type2_walker_nav_menu()
                                ));
                            }
							?>
						</nav>
						<?php if($header_in_grid){ ?>
					</div>
				</div>
				<?php } ?>
			</div>
		</div>
	</div>

	</header>
<?php } else{?>
	<header class="page_header <?php if($display_header_top == "yes"){ echo 'has_top'; }  if($header_top_area_scroll == "yes"){ echo ' scroll_top'; }?> <?php echo $header_bottom_appearance; ?>  <?php echo $header_style; ?> <?php if(is_active_sidebar('header_fixed_right')) { echo 'has_header_fixed_right'; } ?>">
		<?php if(isset($qode_toolbar)) include("toolbar.php") ?>
		<div class="header_inner clearfix">
			<div class="header_bottom clearfix" <?php echo $header_color_per_page; ?> >
				<?php if($header_in_grid){ ?>
				<div class="container">
					<div class="container_inner clearfix">
						<?php } ?>
						<div class="header_inner_left">
							<?php if(has_nav_menu('top-navigation') || has_nav_menu('left-top-navigation') || has_nav_menu('right-top-navigation')) { ?>
								<div class="mobile_menu_button"><span><i class="fa fa-bars"></i></span></div>
							<?php } ?>
							<div class="logo_wrapper">
								<?php
								if (isset($qode_options['logo_image']) && $qode_options['logo_image'] != ""){ $logo_image = $qode_options['logo_image'];}else{ $logo_image =  get_template_directory_uri().'/img/logo.png'; };
								if (isset($qode_options['logo_image_light']) && $qode_options['logo_image_light'] != ""){ $logo_image_light = $qode_options['logo_image_light'];}else{ $logo_image_light =  get_template_directory_uri().'/img/logo.png'; };
								if (isset($qode_options['logo_image_dark']) && $qode_options['logo_image_dark'] != ""){ $logo_image_dark = $qode_options['logo_image_dark'];}else{ $logo_image_dark =  get_template_directory_uri().'/img/logo_black.png'; };
								if (isset($qode_options['logo_image_sticky']) && $qode_options['logo_image_sticky'] != ""){ $logo_image_sticky = $qode_options['logo_image_sticky'];}else{ $logo_image_sticky =  get_template_directory_uri().'/img/logo_black.png'; };
								if (isset($qode_options['logo_image_popup']) && $qode_options['logo_image_popup'] != ""){ $logo_image_popup = $qode_options['logo_image_popup'];}else{ $logo_image_popup =  get_template_directory_uri().'/img/logo_white.png'; };
								?>
								<div class="q_logo"><a href="<?php echo home_url('/'); ?>"><img class="normal" src="<?php echo $logo_image; ?>" alt="Logo"/><img class="light" src="<?php echo $logo_image_light; ?>" alt="Logo"/><img class="dark" src="<?php echo $logo_image_dark; ?>" alt="Logo"/><img class="sticky" src="<?php echo $logo_image_sticky; ?>" alt="Logo"/><?php if($enable_popup_menu == 'yes'){ ?><img class="popup" src="<?php echo $logo_image_popup; ?>" alt="Logo"/><?php } ?></a></div>

							</div>
						</div>


						<?php if($header_in_grid){ ?>
					</div>
				</div>
			<?php } ?>
				<nav class="mobile_menu">
					<?php
					wp_nav_menu( array( 'theme_location' => 'top-navigation' ,
						'container'  => '',
						'container_class' => '',
						'menu_class' => '',
						'menu_id' => '',
						'fallback_cb' => 'top_navigation_fallback',
						'link_before' => '<span>',
						'link_after' => '</span>',
						'walker' => new qode_type2_walker_nav_menu()
					));
					?>
				</nav>
			</div>
		</div>
	</header>
<?php } ?>
<?php if($qode_options['show_back_button'] == "yes") { ?>
	<a id='back_to_top' href='#'>
			<span class="fa-stack">
				<span class="arrow_carrot-up"></span>
			</span>
	</a>
<?php } ?>
<?php if($enable_popup_menu == "yes"){ ?>
	<div class="popup_menu_holder_outer">
		<div class="popup_menu_holder">
			<div class="popup_menu_holder_inner">
				<nav class="popup_menu">
					<?php
					wp_nav_menu( array( 'theme_location' => 'popup-navigation' ,
						'container'  => '',
						'container_class' => '',
						'menu_class' => '',
						'menu_id' => '',
						'fallback_cb' => 'top_navigation_fallback',
						'link_before' => '<span>',
						'link_after' => '</span>',
						'walker' => new qode_type3_walker_nav_menu()
					));
					?>
				</nav>
			</div>
		</div>
	</div>
<?php } ?>

<?php
$content_class = "";
$is_title_area_visible = true;
if(get_post_meta($id, "qode_show-page-title", true) == 'no') {
	$is_title_area_visible = true;
} elseif(get_post_meta($id, "qode_show-page-title", true) == 'yes') {
	$is_title_area_visible = false;
} elseif(isset($qode_options['show_page_title']) && $qode_options['show_page_title'] == 'yes') {
	$is_title_area_visible = false;
}

//this isn't used because contact page map isn't on top anymore.
$is_contact_page_with_solid_header_and_map = qode_is_contact_page_template() && $qode_options['enable_google_map'] === 'yes' && ($header_transparency === '' || $header_transparency == 1);

if(get_post_meta($id, "qode_revolution-slider", true) == "" && !$is_title_area_visible && !is_category() && !is_tag() && !is_author()){
	if($qode_options['header_bottom_appearance'] == "fixed"){
		$content_class = "content_top_margin";
	}else {
		$content_class = "content_top_margin_none";
	}
}
?>
<div class="content <?php echo $content_class; ?>">
	<?php
	$animation = get_post_meta($id, "qode_show-animation", true);
	if (!empty($_SESSION['qode_animation']) && $animation == "")
		$animation = $_SESSION['qode_animation'];

	?>
	<?php if($qode_options['page_transitions'] == "1" || $qode_options['page_transitions'] == "2" || $qode_options['page_transitions'] == "3" || $qode_options['page_transitions'] == "4" || ($animation == "updown") || ($animation == "fade") || ($animation == "updown_fade") || ($animation == "leftright")){ ?>
		<div class="meta">

			<?php do_action('qode_ajax_meta'); ?>

			<span id="qode_page_id"><?php echo $wp_query->get_queried_object_id(); ?></span>
			<div class="body_classes"><?php echo implode( ',', get_body_class()); ?></div>
		</div>
	<?php } ?>
	<div class="content_inner <?php echo $animation;?> ">
