<?php global $mkd_options, $mkdIconCollections, $wp_query; ?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
    <?php mkd_wp_title(); ?>

    <?php
    /**
     * @see mkd_header_meta() - hooked with 10
     * @see mkd_user_scalable - hooked with 10
     */
    ?>
	<?php do_action('mkd_header_meta'); ?>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css" integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous">
	<?php wp_head(); ?>
</head>

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

<?php extract(mkd_get_header_variables()); ?>

<?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 esc_url($loading_image); ?>" alt="" />
                </div>
            <?php } else {
                mkd_loading_spinners();
            } ?>
        </div>
    </div>
<?php } ?>
<?php if($enable_side_area == "yes" && $enable_popup_menu == 'no' && !$enable_vertical_menu) { ?>
	<section class="side_menu right">
		<?php if(isset($mkd_options['side_area_title']) && $mkd_options['side_area_title'] != "") { ?>
			<div class="side_menu_title">
				<h5><?php echo esc_html($mkd_options['side_area_title']) ?></h5>
			</div>
		<?php } ?>
		<div class="close_side_menu_holder"><div class="close_side_menu_holder_inner"><a href="#" target="_self" class="close_side_menu"><span aria-hidden="true" class="icon_close"></span></a></div></div>
		<?php dynamic_sidebar('sidearea'); ?>
	</section>
<?php } ?>
<div class="wrapper">
<div class="wrapper_inner">

<?php if($enable_vertical_menu) { ?>
	<aside class="vertical_menu_area<?php echo esc_attr($vertical_area_scroll); ?> <?php echo esc_attr($header_style); ?>">
		<div class="vertical_menu_area_inner">
			<?php if(isset($mkd_options['vertical_area_type']) && ($mkd_options['vertical_area_type'] == 'hidden' || $mkd_options['vertical_area_type'] == 'hidden_with_icons')) { ?>
			<a href="#" class="vertical_menu_hidden_button">
				<span class="vertical_menu_hidden_button_line"></span>
			</a>
			<?php } ?>

            <?php 
			$bkg_image="";
			$page_vertical_area_background_style = "";
			$page_vertical_area_background_transparency_style = "";
			if($vertical_area_background_image != ""){ $bkg_image = 'background-image:url('.esc_url($vertical_area_background_image).');'; }
			if($page_vertical_area_background != ""){ $page_vertical_area_background_style = 'background-color:'.esc_attr($page_vertical_area_background).';'; }
			if($page_vertical_area_background_transparency != ""){ $page_vertical_area_background_transparency_style = 'opacity:'.esc_attr($page_vertical_area_background_transparency).';'; }
			?>
			<div class="vertical_area_background <?php if($vertical_area_background_image != ""){ echo "preload_background";  } ?>" <?php echo 'style="'.esc_attr($bkg_image).esc_attr($page_vertical_area_background_transparency_style).esc_attr($page_vertical_area_background_style).'"'; ?>></div>

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

					?>
					<div class="mkd_logo_vertical" style="height: <?php echo esc_attr(intval($mkd_options['logo_height'])/2); ?>px;">
						<a href="<?php echo esc_url(home_url('/')); ?>">
							<img class="normal" src="<?php echo esc_url($logo_image); ?>" alt="Logo"/>
							<img class="light" src="<?php echo esc_url($logo_image_light); ?>" alt="Logo"/>
							<img class="dark" src="<?php echo esc_url($logo_image_dark); ?>" alt="Logo"/>
						</a>
					</div>

				</div>
			<?php } ?>

			<nav class="vertical_menu dropdown_animation vertical_menu_<?php echo esc_attr($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 mkd_type1_walker_nav_menu()
				));
				?>
			</nav>
			<div class="vertical_menu_area_widget_holder">
				<?php dynamic_sidebar('vertical_menu_area'); ?>
			</div>
		</div>
	</aside>
	<?php if((isset($mkd_options['vertical_area_type']) && ($mkd_options['vertical_area_type'] == 'hidden' || $mkd_options['vertical_area_type'] == 'hidden_with_icons')) &&
		(isset($mkd_options['vertical_logo_bottom']) && $mkd_options['vertical_logo_bottom'] !== '')) { ?>
		<div class="vertical_menu_area_bottom_logo">
			<div class="vertical_menu_area_bottom_logo_inner">
				<a href="javascript: void(0)">
					<img src="<?php echo esc_url($mkd_options['vertical_logo_bottom']); ?>" alt="vertical_menu_area_bottom_logo"/>
				</a>
			</div>
		</div>
	<?php } ?>

<?php } ?>
<?php if(!$enable_vertical_menu){ ?>

	<?php if($header_bottom_appearance == "regular" || $header_bottom_appearance == "fixed" || $header_bottom_appearance == "fixed_hiding" || $header_bottom_appearance == "stick" || $header_bottom_appearance == "stick menu_bottom" || $header_bottom_appearance == "stick_with_left_right_menu"){ ?>
		<header class="<?php mkd_header_classes(); ?>">
			<div class="header_inner clearfix">
				<?php if(isset($mkd_options['enable_search']) && $mkd_options['enable_search'] == "yes" ){ ?>
					<?php if( ($header_color_transparency_per_page == '' || $header_color_transparency_per_page == '1') && ($header_color_transparency_on_scroll=='' || $header_color_transparency_on_scroll == '1') &&  isset($mkd_options['search_type']) && $mkd_options['search_type'] == "search_slides_from_header_bottom"){ ?>
					<form role="search" action="<?php echo esc_url(home_url('/')); ?>" class="mkd_search_form_2" method="get">
						<?php if($header_in_grid){ ?>
						<div class="container">
							<div class="container_inner clearfix">
							<?php if($mkd_options['overlapping_content'] == 'yes') {?><div class="overlapping_content_margin"><?php } ?>
							 <?php } ?>
								<div class="form_holder_outer">
									<div class="form_holder">
										<input type="text" placeholder="<?php _e('Search', 'mkd'); ?>" name="s" class="mkd_search_field" autocomplete="off" />
                                        <a class="mkd_search_submit" href="javascript:void(0)">
                                            <?php $mkdIconCollections->getSearchIcon($mkd_options['search_icon_pack']); ?>
                                        </a>
									</div>
								</div>
								<?php if($header_in_grid){ ?>
								<?php if($mkd_options['overlapping_content'] == 'yes') {?></div><?php } ?>
							</div>
						</div>
					<?php } ?>
					</form>

				<?php } else if(isset($mkd_options['search_type']) && $mkd_options['search_type'] == "search_covers_header") { ?>
					<form role="search" action="<?php echo esc_url(home_url('/')); ?>" class="mkd_search_form_3" method="get">
							<?php if($header_in_grid){ ?>
							<div class="container">
								<div class="container_inner clearfix">
								<?php if($mkd_options['overlapping_content'] == 'yes') {?><div class="overlapping_content_margin"><?php } ?>
							<?php } ?>
									<div class="form_holder_outer">
										<div class="form_holder">
											
											<input type="text" placeholder="<?php _e('Search', 'mkd'); ?>" name="s" class="mkd_search_field" autocomplete="off" />

											<div class="mkd_search_close">
												<a href="#">
													<?php if(isset($mkd_options['header_icon_pack'])) { $mkdIconCollections->getSearchClose($mkd_options['header_icon_pack']); } ?>
													<!--<i class="fa fa-times"></i>-->
												</a>
											</div>
										</div>
									</div>
							<?php if($header_in_grid){ ?>
								<?php if($mkd_options['overlapping_content'] == 'yes') {?></div><?php } ?>
								</div>
							</div>
							<?php } ?>
					</form>
				<?php } else if(isset($mkd_options['search_type']) && $mkd_options['search_type'] == "search_slides_from_window_top") { ?>
					<form role="search" id="searchform" action="<?php echo esc_url(home_url('/')); ?>" class="mkd_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', 'mkd'); ?>" name="s" class="mkd_search_field" autocomplete="off" />
						<input type="submit" value="Search" />
						<div class="mkd_search_close">
							<a href="#">
								<i class="fa fa-times"></i>
							</a>
						</div>
						<?php if($header_in_grid){ ?>
								</div>
							</div>
						<?php } ?>
					</form>
				<?php } ?>
				
				
			<?php } ?>
			
		
			<div class="header_top_bottom_holder">
				<?php if($display_header_top == "yes"){ ?>
					<div class="header_top clearfix" <?php mkd_inline_style($header_top_color_per_page); ?> >
						<?php if($header_in_grid){ ?>
						<div class="container">
							<div class="container_inner clearfix" >
							<?php if($mkd_options['overlapping_content'] == 'yes') {?><div class="overlapping_content_margin"><?php } ?>
								<?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){ ?>
								<?php if($mkd_options['overlapping_content'] == 'yes') {?></div><?php } ?>
							</div>
						</div>
					<?php } ?>
					</div>
				<?php } ?>
				<div class="header_bottom <?php echo esc_attr($header_bottom_class) ;?> clearfix <?php if($menu_item_icon_position=="top"){echo 'with_large_icons ';} if($menu_position == "left" && $header_bottom_appearance != "fixed_hiding" && $header_bottom_appearance != "stick menu_bottom" && $header_bottom_appearance != "stick_with_left_right_menu"){ echo 'left_menu_position';} ?>" <?php mkd_inline_style($header_color_per_page); ?> >
					<?php if($header_in_grid){ ?>
					<div class="container">
						<div class="container_inner clearfix" <?php mkd_inline_style($header_bottom_border_style); ?>>
						<?php if($mkd_options['overlapping_content'] == 'yes') {?><div class="overlapping_content_margin"><?php } ?>
							<?php } ?>
							<?php if($header_bottom_appearance == "stick_with_left_right_menu") { ?>
								<nav class="main_menu drop_down left_side <?php echo esc_attr($menu_dropdown_appearance_class); ?>" <?php mkd_inline_style($divided_left_menu_padding); ?>>
									<div class="side_menu_button_wrapper right">
										<?php if(is_active_sidebar('header_bottom_left')) { ?>
											<div class="header_bottom_right_widget_holder"><?php dynamic_sidebar('header_bottom_left'); ?></div>
										<?php } ?>
									</div>
									
									<?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 mkd_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(mkd_is_main_menu_set()) { ?>
									<div class="mobile_menu_button">
										<span>
											<?php $mkdIconCollections->getMobileMenuIcon($mkd_options['header_icon_pack']); ?>
										</span>
									</div>
								<?php } ?>
								
								
								
								<?php if (!(isset($mkd_options['show_logo']) && $mkd_options['show_logo'] == "no")){ ?>
									<div class="logo_wrapper" <?php mkd_inline_style($logo_wrapper_style); ?>>
										<?php
										if (isset($mkd_options['logo_image']) && $mkd_options['logo_image'] != ""){ $logo_image = $mkd_options['logo_image'];}else{ $logo_image =  get_template_directory_uri().'/img/logo.png'; };
										if (isset($mkd_options['logo_image_light']) && $mkd_options['logo_image_light'] != ""){ $logo_image_light = $mkd_options['logo_image_light'];}else{ $logo_image_light =  get_template_directory_uri().'/img/logo.png'; };
										if (isset($mkd_options['logo_image_dark']) && $mkd_options['logo_image_dark'] != ""){ $logo_image_dark = $mkd_options['logo_image_dark'];}else{ $logo_image_dark =  get_template_directory_uri().'/img/logo_black.png'; };
										if (isset($mkd_options['logo_image_sticky']) && $mkd_options['logo_image_sticky'] != ""){ $logo_image_sticky = $mkd_options['logo_image_sticky'];}else{ $logo_image_sticky =  get_template_directory_uri().'/img/logo_black.png'; };
										if (isset($mkd_options['logo_image_popup']) && $mkd_options['logo_image_popup'] != ""){ $logo_image_popup = $mkd_options['logo_image_popup'];}else{ $logo_image_popup =  get_template_directory_uri().'/img/logo_white.png'; };
										if (isset($mkd_options['logo_image_fixed_hidden']) && $mkd_options['logo_image_fixed_hidden'] != ""){ $logo_image_fixed_hidden = $mkd_options['logo_image_fixed_hidden'];}else{ $logo_image_fixed_hidden =  get_template_directory_uri().'/img/logo.png'; };
										if (isset($mkd_options['logo_image_mobile']) && $mkd_options['logo_image_mobile'] != ""){
											$logo_image_mobile = $mkd_options['logo_image_mobile'];
										}else{ 
											if(isset($mkd_options['logo_image']) && $mkd_options['logo_image'] != ""){
												$logo_image_mobile = $mkd_options['logo_image'];
											}else{ 
												$logo_image_mobile =  get_template_directory_uri().'/img/logo.png'; 
											}
										}
										?>
										<div class="mkd_logo"><a <?php mkd_inline_style($logo_wrapper_style); ?> href="<?php echo esc_url(home_url('/')); ?>"><img class="normal" src="<?php echo esc_url($logo_image); ?>" alt="Logo"/><img class="light" src="<?php echo esc_url($logo_image_light); ?>" alt="Logo"/><img class="dark" src="<?php echo esc_url($logo_image_dark); ?>" alt="Logo"/><img class="sticky" src="<?php echo esc_url($logo_image_sticky); ?>" alt="Logo"/><img class="mobile" src="<?php echo esc_url($logo_image_mobile); ?>" alt="Logo"/><?php if($enable_popup_menu == 'yes'){ ?><img class="popup" src="<?php echo esc_url($logo_image_popup); ?>" alt="Logo"/><?php } ?></a></div>
										<?php if($header_bottom_appearance == "fixed_hiding") { ?>
											<div class="mkd_logo_hidden"><a href="<?php echo esc_url(home_url('/')); ?>"><img alt="Logo" src="<?php echo esc_url($logo_image_fixed_hidden); ?>" style="height: 100%;"></a></div>
										<?php } ?>
									</div>
								<?php } ?>
								
								
								<?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 echo esc_attr($menu_dropdown_appearance_class); ?>" <?php mkd_inline_style($divided_right_menu_padding); ?>>
									<?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 mkd_type1_walker_nav_menu()
									));
									?>
									<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($mkd_options['enable_search']) && $mkd_options['enable_search'] == 'yes') {
											$search_type_class = 'search_slides_from_top';
											if(isset($mkd_options['search_type']) && $mkd_options['search_type'] !== '') {
												$search_type_class = $mkd_options['search_type'];
											}
											if(isset($mkd_options['search_type']) && $mkd_options['search_type'] == 'search_covers_header') {
												if (isset($mkd_options['search_cover_only_bottom_yesno']) && $mkd_options['search_cover_only_bottom_yesno']=='yes') {
													$search_type_class .= ' search_covers_only_bottom';
												}
											}
											if (isset($mkd_options['search_icon_background_full_height']) && $mkd_options['search_icon_background_full_height'] == 'yes'){
												$search_type_class .= ' search_icon_bckg_full';
											}
											?>
											<a class="<?php echo esc_attr($search_type_class); ?> <?php echo esc_attr($header_button_size); ?>" href="javascript:void(0)">
												<?php if(isset($mkd_options['search_icon_pack'])){
                                                    $mkdIconCollections->getSearchIcon($mkd_options['search_icon_pack']);
												} ?>
												<?php if(isset($mkd_options['enable_search_icon_text']) && $mkd_options['enable_search_icon_text'] == 'yes'){?>
													<span class="search_icon_text">
														<?php _e('Search', 'mkd'); ?>
													</span>
												<?php } ?>
											</a>
								
											<?php if($search_type_class == 'fullscreen_search' && $fullscreen_search_animation=='from_circle'){ ?>
												<div class="fullscreen_search_overlay"></div>
											<?php } ?>
										<?php } ?>
										<?php if($enable_popup_menu == "yes"){ ?>
											<a href="javascript:void(0)" class="popup_menu <?php echo esc_attr($header_button_size.' '.$popup_menu_animation_style); ?>"><span class="popup_menu_inner"><i class="line">&nbsp;</i></span></a>
										<?php } ?>
										<?php if($enable_side_area == "yes" && $enable_popup_menu == 'no'){
											$sidearea_type_class = "";
											if (isset($mkd_options['sidearea_icon_background_full_height']) && $mkd_options['sidearea_icon_background_full_height'] == 'yes'){
												$sidearea_type_class .= ' sidearea_icon_bckg_full';
											}
											?>
											<a class="side_menu_button_link <?php echo esc_attr($header_button_size); echo esc_attr($sidearea_type_class); ?>" href="javascript:void(0)">
											<?php echo mkd_get_side_menu_icon_html(); ?></a>
										<?php } ?>
										</div>
									</div>
								</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($mkd_options['enable_search']) && $mkd_options['enable_search'] == 'yes') {
												$search_type_class = 'search_slides_from_top';
												if(isset($mkd_options['search_type']) && $mkd_options['search_type'] !== '') {
													$search_type_class = $mkd_options['search_type'];
												}
												if(isset($mkd_options['search_type']) && $mkd_options['search_type'] == 'search_covers_header') {
													if (isset($mkd_options['search_cover_only_bottom_yesno']) && $mkd_options['search_cover_only_bottom_yesno']=='yes') {
														$search_type_class .= ' search_covers_only_bottom';
													}
												}
												if (isset($mkd_options['search_icon_background_full_height']) && $mkd_options['search_icon_background_full_height'] == 'yes'){
													$search_type_class .= ' search_icon_bckg_full';
												} ?>

												<a class="<?php echo esc_attr($search_type_class); ?> <?php echo esc_attr($header_button_size); ?>" href="javascript:void(0)">
													<?php if(isset($mkd_options['search_icon_pack'])){
														$mkdIconCollections->getSearchIcon($mkd_options['search_icon_pack']);
													} ?>
													<?php if(isset($mkd_options['enable_search_icon_text']) && $mkd_options['enable_search_icon_text'] == 'yes'){?>
														<span class="search_icon_text">
															<?php _e('Search', 'mkd'); ?>
														</span>
													<?php } ?>
												</a>
						
												<?php if($search_type_class == 'fullscreen_search' && $fullscreen_search_animation=='from_circle'){ ?>
													<div class="fullscreen_search_overlay"></div>
												<?php } ?>

											<?php } ?>
		
												<?php if($enable_popup_menu == "yes"){ ?>
													<a href="javascript:void(0)" class="popup_menu <?php echo esc_attr($header_button_size.' '.$popup_menu_animation_style); ?>"><span class="popup_menu_inner"><i class="line">&nbsp;</i></span></a>
												<?php } ?>
												<?php if($enable_side_area == "yes" && $enable_popup_menu == 'no'){
													$sidearea_type_class = "";
													if (isset($mkd_options['sidearea_icon_background_full_height']) && $mkd_options['sidearea_icon_background_full_height'] == 'yes'){
														$sidearea_type_class .= ' sidearea_icon_bckg_full';
													}
													?>
													<a class="side_menu_button_link <?php echo esc_attr($header_button_size); echo esc_attr($sidearea_type_class); ?>" href="javascript:void(0)">
													<?php echo mkd_get_side_menu_icon_html(); ?></a>
												<?php } ?>
											</div>
										</div>
									</div>
								<?php } ?>
								<?php if($centered_logo == true && $enable_border_top_bottom_menu == true) { ?> <div class="main_menu_and_widget_holder"> <?php } //only for logo is centered ?>
								<nav class="main_menu drop_down  <?php  echo esc_attr($menu_dropdown_appearance_class); 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 mkd_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($mkd_options['enable_search']) && $mkd_options['enable_search'] == 'yes') {
													$search_type_class = 'search_slides_from_top';
													if(isset($mkd_options['search_type']) && $mkd_options['search_type'] !== '') {
														$search_type_class = $mkd_options['search_type'];
													}
													if(isset($mkd_options['search_type']) && $mkd_options['search_type'] == 'search_covers_header') {
														if (isset($mkd_options['search_cover_only_bottom_yesno']) && $mkd_options['search_cover_only_bottom_yesno']=='yes') {
															$search_type_class .= ' search_covers_only_bottom';
														}
													}
													if (isset($mkd_options['search_icon_background_full_height']) && $mkd_options['search_icon_background_full_height'] == 'yes'){
														$search_type_class .= ' search_icon_bckg_full';
													}?>

													<a class="<?php echo esc_attr($search_type_class); ?> <?php echo esc_attr($header_button_size); ?>" href="javascript:void(0)">
														<?php if(isset($mkd_options['search_icon_pack'])){
															$mkdIconCollections->getSearchIcon($mkd_options['search_icon_pack']);
														} ?>
														<?php if(isset($mkd_options['enable_search_icon_text']) && $mkd_options['enable_search_icon_text'] == 'yes'){?>
															<span class="search_icon_text">
																<?php _e('Search', 'mkd'); ?>
															</span>
														<?php } ?>
													</a>
													<?php if($search_type_class == 'fullscreen_search' && $fullscreen_search_animation=='from_circle'){ ?>
														<div class="fullscreen_search_overlay"></div>
													<?php } ?>

												<?php } ?>
												<?php if($enable_popup_menu == "yes"){ ?>
													<a href="javascript:void(0)" class="popup_menu <?php echo esc_attr($header_button_size.' '.$popup_menu_animation_style); ?>"><span class="popup_menu_inner"><i class="line">&nbsp;</i></span></a>
												<?php } ?>
												<?php if($enable_side_area == "yes" && $enable_popup_menu == 'no'){
													$sidearea_type_class = "";
													if (isset($mkd_options['sidearea_icon_background_full_height']) && $mkd_options['sidearea_icon_background_full_height'] == 'yes'){
														$sidearea_type_class .= ' sidearea_icon_bckg_full';
													}
													?>
													<a class="side_menu_button_link <?php echo esc_attr($header_button_size); echo esc_attr($sidearea_type_class); ?>" href="javascript:void(0)">
													<?php echo mkd_get_side_menu_icon_html(); ?></a>
												<?php } ?>

											</div>
										</div>
									</div>
								<?php } ?>
								<?php if($centered_logo == true && $enable_border_top_bottom_menu == true) { ?> </div> <?php } //only for logo is centered ?>
								<?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 clearfix">
								<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 echo esc_attr($menu_dropdown_appearance_class); ?>">
												<?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 mkd_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($mkd_options['enable_search']) && $mkd_options['enable_search'] == 'yes') {
														$search_type_class = 'search_slides_from_top';
														if(isset($mkd_options['search_type']) && $mkd_options['search_type'] !== '') {
															$search_type_class = $mkd_options['search_type'];
														}
														if(isset($mkd_options['search_type']) && $mkd_options['search_type'] == 'search_covers_header') {
															if (isset($mkd_options['search_cover_only_bottom_yesno']) && $mkd_options['search_cover_only_bottom_yesno']=='yes') {
																$search_type_class .= ' search_covers_only_bottom';
															}
														}
														if (isset($mkd_options['search_icon_background_full_height']) && $mkd_options['search_icon_background_full_height'] == 'yes'){
															$search_type_class .= ' search_icon_bckg_full';
														}?>

														<a class="<?php echo esc_attr($search_type_class); ?> <?php echo esc_attr($header_button_size); ?>" href="javascript:void(0)">
															<?php if(isset($mkd_options['search_icon_pack'])){
																$mkdIconCollections->getSearchIcon($mkd_options['search_icon_pack']);
															} ?>
															<?php if(isset($mkd_options['enable_search_icon_text']) && $mkd_options['enable_search_icon_text'] == 'yes'){?>
																<span class="search_icon_text">
																	<?php _e('Search', 'mkd'); ?>
																</span>
															<?php } ?>
														</a>
												
														<?php if($search_type_class == 'fullscreen_search' && $fullscreen_search_animation=='from_circle'){ ?>
															<div class="fullscreen_search_overlay"></div>
														<?php } ?>

													<?php } ?>
		
														<?php if($enable_popup_menu == "yes"){ ?>
															<a href="javascript:void(0)" class="popup_menu <?php echo esc_attr($header_button_size.' '.$popup_menu_animation_style); ?>"><span class="popup_menu_inner"><i class="line">&nbsp;</i></span></a>
														<?php } ?>
														<?php if($enable_side_area == "yes" && $enable_popup_menu == 'no'){
															$sidearea_type_class = "";
															if (isset($mkd_options['sidearea_icon_background_full_height']) && $mkd_options['sidearea_icon_background_full_height'] == 'yes'){
																$sidearea_type_class .= ' sidearea_icon_bckg_full';
															}
															?>
															<a class="side_menu_button_link <?php echo esc_attr($header_button_size); echo esc_attr($sidearea_type_class); ?>" href="javascript:void(0)">
															<?php echo mkd_get_side_menu_icon_html(); ?></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 mkd_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 mkd_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 mkd_type2_walker_nav_menu()
										));
									}
									?>
								</nav>
								<?php if($header_in_grid){ ?>
								<?php if($mkd_options['overlapping_content'] == 'yes') {?></div><?php } ?>
							</div>
						</div>
						<?php } ?>
					</div>
				</div>
			</div>
		</header>
	<?php } else if($header_bottom_appearance == "fixed_top_header"){ ?>
	
<?php //FIXED HEADER TOP Header Type ?>
	
	<header class="<?php mkd_header_classes(); ?>">
		<div class="header_inner clearfix">
			<!--insert start-->
				<?php if(isset($mkd_options['enable_search']) && $mkd_options['enable_search'] == "yes" ){ ?>
					<?php  if(isset($mkd_options['search_type']) && $mkd_options['search_type'] == "search_covers_header") { ?>
						<form role="search" action="<?php echo esc_url(home_url('/')); ?>" class="mkd_search_form_3" method="get">
								<?php if($header_in_grid){ ?>
								<div class="container">
									<div class="container_inner clearfix">
									<?php if($mkd_options['overlapping_content'] == 'yes') {?><div class="overlapping_content_margin"><?php } ?>
								<?php } ?>
										<div class="form_holder_outer">
											<div class="form_holder">
												<input type="text" placeholder="<?php _e('Search', 'mkd'); ?>" name="s" class="mkd_search_field" autocomplete="off" />
												<div class="mkd_search_close">
													<a href="#">
														<?php if(isset($mkd_options['header_icon_pack'])) { $mkdIconCollections->getSearchClose($mkd_options['header_icon_pack']); } ?>
													</a>
												</div>
											</div>
										</div>
								<?php if($header_in_grid){ ?>
									<?php if($mkd_options['overlapping_content'] == 'yes') {?></div><?php } ?>
									</div>
								</div>
							<?php } ?>
						</form>
					<?php } ?>
				<?php } ?>
			<!--insert end-->
			<div class="header_top_bottom_holder">
				<?php if($display_header_top == "yes"){ ?>
					<div class="top_header clearfix" <?php mkd_inline_style($header_top_color_per_page); ?> >
						<?php if($header_in_grid){ ?>
						<div class="container">
							<div class="container_inner clearfix" >
							<?php if($mkd_options['overlapping_content'] == 'yes') {?><div class="overlapping_content_margin"><?php } ?>
								<?php } ?>
								<div class="left">
									<div class="inner">
										<nav class="main_menu drop_down <?php echo esc_attr($menu_dropdown_appearance_class); ?>">
											<?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 mkd_type1_walker_nav_menu()
											));
											?>
										</nav>
										<?php if(mkd_is_main_menu_set()) { ?>
											<div class="mobile_menu_button"><span>
													<?php $mkdIconCollections->getMobileMenuIcon($mkd_options['header_icon_pack']); ?>
												</span>
											</div>
										<?php } ?>
										
									</div>
								</div>
								<div class="right">
									<div class="inner">
										<div class="side_menu_button_wrapper right">
											<div class="header_bottom_right_widget_holder">
												<?php
												dynamic_sidebar('header_right');
												?>
											</div>
											<?php if(is_active_sidebar('woocommerce_dropdown')) {
												dynamic_sidebar('woocommerce_dropdown');
											} ?>
											<div class="side_menu_button">
												<?php if(isset($mkd_options['enable_search']) && $mkd_options['enable_search'] == 'yes') { ?>
													<a class="search_covers_header <?php echo esc_attr($header_button_size); ?>" href="javascript:void(0)">
														<?php if(isset($mkd_options['search_icon_pack'])){ $mkdIconCollections->getSearchIcon($mkd_options['search_icon_pack']); } ?>
													</a>
												<?php } ?>
												
												<?php if($enable_popup_menu == "yes"){ ?>
													<a href="javascript:void(0)" class="popup_menu <?php echo esc_attr($header_button_size.' '.$popup_menu_animation_style); ?>"><span class="popup_menu_inner"><i class="line">&nbsp;</i></span></a>
												<?php } ?>
												<?php if($enable_side_area == "yes" && $enable_popup_menu == 'no'){
													$sidearea_type_class = "";
													if (isset($mkd_options['sidearea_icon_background_full_height']) && $mkd_options['sidearea_icon_background_full_height'] == 'yes'){
														$sidearea_type_class .= ' sidearea_icon_bckg_full';
													}
													?>
													<a class="side_menu_button_link <?php echo esc_attr($header_button_size); echo esc_attr($sidearea_type_class); ?>" href="javascript:void(0)">
													<?php echo mkd_get_side_menu_icon_html(); ?></a>
												<?php } ?>
										
											</div>
										</div>
									</div>
								</div>
								<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 mkd_type2_walker_nav_menu()
									));
								
								?>
								</nav>
								<?php if($header_in_grid){ ?>
								<?php if($mkd_options['overlapping_content'] == 'yes') {?></div><?php } ?>
							</div>
						</div>
					<?php } ?>
					</div>
				<?php } ?>
				<div class="bottom_header clearfix" <?php mkd_inline_style($header_color_per_page); ?> >
					<?php if($header_in_grid){ ?>
					<div class="container">
						<div class="container_inner clearfix" <?php mkd_inline_style($header_bottom_border_style); ?>>
						<?php if($mkd_options['overlapping_content'] == 'yes') {?><div class="overlapping_content_margin"><?php } ?>
							<?php } ?>
							<div class="header_inner_center">
								
								<?php if (!(isset($mkd_options['show_logo']) && $mkd_options['show_logo'] == "no")){ ?>
									<div class="logo_wrapper" <?php mkd_inline_style($logo_wrapper_style); ?>>
										<?php
										if (isset($mkd_options['logo_image']) && $mkd_options['logo_image'] != ""){ $logo_image = $mkd_options['logo_image'];}else{ $logo_image =  get_template_directory_uri().'/img/logo.png'; };
										if (isset($mkd_options['logo_image_light']) && $mkd_options['logo_image_light'] != ""){ $logo_image_light = $mkd_options['logo_image_light'];}else{ $logo_image_light =  get_template_directory_uri().'/img/logo.png'; };
										if (isset($mkd_options['logo_image_dark']) && $mkd_options['logo_image_dark'] != ""){ $logo_image_dark = $mkd_options['logo_image_dark'];}else{ $logo_image_dark =  get_template_directory_uri().'/img/logo_black.png'; };
										if (isset($mkd_options['logo_image_sticky']) && $mkd_options['logo_image_sticky'] != ""){ $logo_image_sticky = $mkd_options['logo_image_sticky'];}else{ $logo_image_sticky =  get_template_directory_uri().'/img/logo_black.png'; };
										if (isset($mkd_options['logo_image_popup']) && $mkd_options['logo_image_popup'] != ""){ $logo_image_popup = $mkd_options['logo_image_popup'];}else{ $logo_image_popup =  get_template_directory_uri().'/img/logo_white.png'; };
										if (isset($mkd_options['logo_image_fixed_hidden']) && $mkd_options['logo_image_fixed_hidden'] != ""){ $logo_image_fixed_hidden = $mkd_options['logo_image_fixed_hidden'];}else{ $logo_image_fixed_hidden =  get_template_directory_uri().'/img/logo.png'; };
										if (isset($mkd_options['logo_image_mobile']) && $mkd_options['logo_image_mobile'] != ""){
											$logo_image_mobile = $mkd_options['logo_image_mobile'];
										}else{ 
											if(isset($mkd_options['logo_image']) && $mkd_options['logo_image'] != ""){
												$logo_image_mobile = $mkd_options['logo_image'];
											}else{ 
												$logo_image_mobile =  get_template_directory_uri().'/img/logo.png'; 
											}
										}
										?>
										<div class="mkd_logo"><a <?php mkd_inline_style($logo_wrapper_style); ?> href="<?php echo esc_url(home_url('/')); ?>"><img class="normal" src="<?php echo esc_url($logo_image); ?>" alt="Logo"/><img class="light" src="<?php echo esc_url($logo_image_light); ?>" alt="Logo"/><img class="dark" src="<?php echo esc_url($logo_image_dark); ?>" alt="Logo"/><img class="sticky" src="<?php echo esc_url($logo_image_sticky); ?>" alt="Logo"/><img class="mobile" src="<?php echo esc_url($logo_image_mobile); ?>" alt="Logo"/><?php if($enable_popup_menu == 'yes'){ ?><img class="popup" src="<?php echo esc_url($logo_image_popup); ?>" alt="Logo"/><?php } ?></a></div>
										
									</div>
								<?php } ?>
								<?php
									dynamic_sidebar('header_bottom_center');
								?>
								
							</div>
								<?php if($header_in_grid){ ?>
								<?php if($mkd_options['overlapping_content'] == 'yes') {?></div><?php } ?>
						</div>
					</div>
					<?php } ?>
				</div>
			</div>
		</div>
	</header>

	<?php } else if($header_bottom_appearance == "fixed fixed_minimal"){ ?>
	
<?php //FIXED MINIMAL Header Type ?>

		<header class="<?php mkd_header_classes(); ?>">
			<div class="header_inner clearfix">
				<?php if(isset($mkd_options['enable_search']) && $mkd_options['enable_search'] == "yes" ){ ?>
					<?php if( ($header_color_transparency_per_page == '' || $header_color_transparency_per_page == '1') && ($header_color_transparency_on_scroll=='' || $header_color_transparency_on_scroll == '1') &&  isset($mkd_options['search_type']) && $mkd_options['search_type'] == "search_slides_from_header_bottom"){ ?>
					<form role="search" action="<?php echo esc_url(home_url('/')); ?>" class="mkd_search_form_2" method="get">
						<?php if($header_in_grid){ ?>
						<div class="container">
							<div class="container_inner clearfix">
							<?php if($mkd_options['overlapping_content'] == 'yes') {?><div class="overlapping_content_margin"><?php } ?>
							 <?php } ?>
								<div class="form_holder_outer">
									<div class="form_holder">
										<input type="text" placeholder="<?php _e('Search', 'mkd'); ?>" name="s" class="mkd_search_field" autocomplete="off" />
										<input type="submit" class="mkd_search_submit" value="&#xf002;" />
									</div>
								</div>
								<?php if($header_in_grid){ ?>
								<?php if($mkd_options['overlapping_content'] == 'yes') {?></div><?php } ?>
							</div>
						</div>
					<?php } ?>
					</form>
				<?php } else if(isset($mkd_options['search_type']) && $mkd_options['search_type'] == "search_covers_header") { ?>
					<form role="search" action="<?php echo esc_url(home_url('/')); ?>" class="mkd_search_form_3" method="get">
						<?php if($header_in_grid){ ?>
						<div class="container">
							<div class="container_inner clearfix">
							<?php if($mkd_options['overlapping_content'] == 'yes') {?><div class="overlapping_content_margin"><?php } ?>
						<?php } ?>
								<div class="form_holder_outer">
									<div class="form_holder">
										<input type="text" placeholder="<?php _e('Search', 'mkd'); ?>" name="s" class="mkd_search_field" autocomplete="off" />
										<div class="mkd_search_close">
											<a href="#">
												<?php if(isset($mkd_options['header_icon_pack'])) { $mkdIconCollections->getSearchClose($mkd_options['header_icon_pack']); } ?>
											</a>
										</div>
									</div>
								</div>
						<?php if($header_in_grid){ ?>
							<?php if($mkd_options['overlapping_content'] == 'yes') {?></div><?php } ?>
							</div>
						</div>
					<?php } ?>
					</form>
					<?php } ?>
				<?php } ?>
				<div class="header_top_bottom_holder">
					<?php if($display_header_top == "yes"){ ?>
						<div class="header_top clearfix" <?php mkd_inline_style($header_top_color_per_page); ?> >
							<?php if($header_in_grid){ ?>
							<div class="container">
								<div class="container_inner clearfix" >
								<?php if($mkd_options['overlapping_content'] == 'yes') {?><div class="overlapping_content_margin"><?php } ?>
									<?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){ ?>
									<?php if($mkd_options['overlapping_content'] == 'yes') {?></div><?php } ?>
								</div>
							</div>
						<?php } ?>
						</div>
					<?php } ?>
					<div class="header_bottom <?php echo esc_attr($header_bottom_class) ;?> clearfix" <?php mkd_inline_style($header_color_per_page); ?> >
						<?php if($header_in_grid){ ?>
						<div class="container">
							<div class="container_inner clearfix" <?php mkd_inline_style($header_bottom_border_style); ?>>
							<?php if($mkd_options['overlapping_content'] == 'yes') {?><div class="overlapping_content_margin"><?php } ?>
						<?php } ?>
								<div class="header_inner_left">
									<div class="side_menu_button_wrapper left">
										<div class="side_menu_button">
											<?php if($enable_popup_menu == "yes"){ ?>
												<a href="javascript:void(0)" class="popup_menu <?php echo esc_attr($header_button_size.' '.$popup_menu_animation_style); ?>"><span class="popup_menu_inner"><i class="line">&nbsp;</i></span></a>
											<?php } ?>
										</div>
									</div>
								</div>
								<?php if (!(isset($mkd_options['show_logo']) && $mkd_options['show_logo'] == "no")){ ?>
									<div class="logo_wrapper" <?php mkd_inline_style($logo_wrapper_style); ?>>
										<?php
										if (isset($mkd_options['logo_image']) && $mkd_options['logo_image'] != ""){ $logo_image = $mkd_options['logo_image'];}else{ $logo_image =  get_template_directory_uri().'/img/logo.png'; };
										if (isset($mkd_options['logo_image_light']) && $mkd_options['logo_image_light'] != ""){ $logo_image_light = $mkd_options['logo_image_light'];}else{ $logo_image_light =  get_template_directory_uri().'/img/logo.png'; };
										if (isset($mkd_options['logo_image_dark']) && $mkd_options['logo_image_dark'] != ""){ $logo_image_dark = $mkd_options['logo_image_dark'];}else{ $logo_image_dark =  get_template_directory_uri().'/img/logo_black.png'; };
										if (isset($mkd_options['logo_image_sticky']) && $mkd_options['logo_image_sticky'] != ""){ $logo_image_sticky = $mkd_options['logo_image_sticky'];}else{ $logo_image_sticky =  get_template_directory_uri().'/img/logo_black.png'; };
										if (isset($mkd_options['logo_image_popup']) && $mkd_options['logo_image_popup'] != ""){ $logo_image_popup = $mkd_options['logo_image_popup'];}else{ $logo_image_popup =  get_template_directory_uri().'/img/logo_white.png'; };
										if (isset($mkd_options['logo_image_fixed_hidden']) && $mkd_options['logo_image_fixed_hidden'] != ""){ $logo_image_fixed_hidden = $mkd_options['logo_image_fixed_hidden'];}else{ $logo_image_fixed_hidden =  get_template_directory_uri().'/img/logo.png'; };
										if (isset($mkd_options['logo_image_mobile']) && $mkd_options['logo_image_mobile'] != ""){
											$logo_image_mobile = $mkd_options['logo_image_mobile'];
										}else{ 
											if(isset($mkd_options['logo_image']) && $mkd_options['logo_image'] != ""){
												$logo_image_mobile = $mkd_options['logo_image'];
											}else{ 
												$logo_image_mobile =  get_template_directory_uri().'/img/logo.png'; 
											}
										}
										?>
										<div class="mkd_logo"><a <?php mkd_inline_style($logo_wrapper_style); ?> href="<?php echo esc_url(home_url('/')); ?>"><img class="normal" src="<?php echo esc_url($logo_image); ?>" alt="Logo"/><img class="light" src="<?php echo esc_url($logo_image_light); ?>" alt="Logo"/><img class="dark" src="<?php echo esc_url($logo_image_dark); ?>" alt="Logo"/><img class="sticky" src="<?php echo esc_url($logo_image_sticky); ?>" alt="Logo"/><img class="mobile" src="<?php echo esc_url($logo_image_mobile); ?>" alt="Logo"/><?php if($enable_popup_menu == 'yes'){ ?><img class="popup" src="<?php echo esc_url($logo_image_popup); ?>" alt="Logo"/><?php } ?></a></div>
								
									</div>
								<?php } ?>
								<div class="header_inner_right">
									<div class="side_menu_button_wrapper right">
										<?php if(is_active_sidebar('woocommerce_dropdown')) {
											dynamic_sidebar('woocommerce_dropdown');
										} ?>
										<div class="side_menu_button">
											<?php if(isset($mkd_options['enable_search']) && $mkd_options['enable_search'] == 'yes') {
												$search_type_class = 'search_slides_from_top';
												if(isset($mkd_options['search_type']) && $mkd_options['search_type'] !== '') {
													$search_type_class = $mkd_options['search_type'];
												}
												if(isset($mkd_options['search_type']) && $mkd_options['search_type'] == 'search_covers_header') {
													if (isset($mkd_options['search_cover_only_bottom_yesno']) && $mkd_options['search_cover_only_bottom_yesno']=='yes') {
														$search_type_class .= ' search_covers_only_bottom';
													}
												}										
												if (isset($mkd_options['search_icon_background_full_height']) && $mkd_options['search_icon_background_full_height'] == 'yes'){
													$search_type_class .= ' search_icon_bckg_full';
												}?>
												<a class="<?php echo esc_attr($search_type_class); ?> <?php echo esc_attr($header_button_size); ?>" href="javascript:void(0)">
													<?php if(isset($mkd_options['search_icon_pack'])){
														$mkdIconCollections->getSearchIcon($mkd_options['search_icon_pack']);
													} ?>
													<?php if(isset($mkd_options['enable_search_icon_text']) && $mkd_options['enable_search_icon_text'] == 'yes'){?>
														<span class="search_icon_text">
															<?php _e('Search', 'mkd'); ?>
														</span>
													<?php } ?>
												</a>
												<?php if($search_type_class == 'fullscreen_search' && $fullscreen_search_animation=='from_circle'){ ?>
													<div class="fullscreen_search_overlay"></div>
												<?php } ?>
											<?php } ?>
										</div>
									</div>
								</div>
								<?php if($header_in_grid){ ?>
								<?php if($mkd_options['overlapping_content'] == 'yes') {?></div><?php } ?>
							</div>
						</div>
						<?php } ?>
					</div>
				</div>
			</div>
		</header>
	
<?php } else if($header_bottom_appearance == "stick compound"){ ?>
<header class="<?php mkd_header_classes(); ?>">
	<div class="header_inner clearfix">
		<?php if(isset($mkd_options['enable_search']) && $mkd_options['enable_search'] == "yes" ){ ?>
			<?php if( ($header_color_transparency_per_page == '' || $header_color_transparency_per_page == '1') && ($header_color_transparency_on_scroll=='' || $header_color_transparency_on_scroll == '1') &&  isset($mkd_options['search_type']) && $mkd_options['search_type'] == "search_slides_from_header_bottom"){ ?>
			<form role="search" action="<?php echo esc_url(home_url('/')); ?>" class="mkd_search_form_2" method="get">
				<?php if($header_in_grid){ ?>
				<div class="container">
					<div class="container_inner clearfix">
					<?php if($mkd_options['overlapping_content'] == 'yes') {?><div class="overlapping_content_margin"><?php } ?>
					 <?php } ?>
						<div class="form_holder_outer">
							<div class="form_holder">
								<input type="text" placeholder="<?php _e('Search', 'mkd'); ?>" name="s" class="mkd_search_field" autocomplete="off" />
								<!--<input type="submit" class="mkd_search_submit" value="<?php /*if (isset($mkd_options['header_icon_pack'])) { $mkdIconCollections->getSearchIconValue($mkd_options['header_icon_pack']); } */?>"/>-->
								<input type="submit" class="mkd_search_submit" value="&#xf002" />
							</div>
						</div>
						<?php if($header_in_grid){ ?>
						<?php if($mkd_options['overlapping_content'] == 'yes') {?></div><?php } ?>
					</div>
				</div>
				<?php } ?>
			</form>
		<?php } else if(isset($mkd_options['search_type']) && $mkd_options['search_type'] == "search_covers_header") { ?>
			<form role="search" action="<?php echo esc_url(home_url('/')); ?>" class="mkd_search_form_3" method="get">
					<?php if($header_in_grid){ ?>
					<div class="container">
						<div class="container_inner clearfix">
						<?php if($mkd_options['overlapping_content'] == 'yes') {?><div class="overlapping_content_margin"><?php } ?>
					<?php } ?>
							<div class="form_holder_outer">
								<div class="form_holder">
									
									<input type="text" placeholder="<?php _e('Search', 'mkd'); ?>" name="s" class="mkd_search_field" autocomplete="off" />

									<div class="mkd_search_close">
										<a href="#">
											<?php if(isset($mkd_options['header_icon_pack'])) { $mkdIconCollections->getSearchClose($mkd_options['header_icon_pack']); } ?>
											<!--<i class="fa fa-times"></i>-->
										</a>
									</div>
								</div>
							</div>
					<?php if($header_in_grid){ ?>
						<?php if($mkd_options['overlapping_content'] == 'yes') {?></div><?php } ?>
						</div>
					</div>
				<?php } ?>
			</form>
			<?php } else if(isset($mkd_options['search_type']) && $mkd_options['search_type'] == "search_slides_from_window_top") { ?>
				<form role="search" id="searchform" action="<?php echo esc_url(home_url('/')); ?>" class="mkd_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', 'mkd'); ?>" name="s" class="mkd_search_field" autocomplete="off" />
					<input type="submit" value="Search" />
					<div class="mkd_search_close">
						<a href="#">
							<i class="fa fa-times"></i>
						</a>
					</div>
					<?php if($header_in_grid){ ?>
							</div>
						</div>
					<?php } ?>
				</form>
			<?php } ?>
	<?php } ?>
		<div class="header_top_bottom_holder">
		<?php if($display_header_top == "yes"){ ?>
			<div class="header_top clearfix" <?php mkd_inline_style($header_top_color_per_page); ?> >
				<?php if($header_in_grid){ ?>
				<div class="container">
					<div class="container_inner clearfix" >
					<?php if($mkd_options['overlapping_content'] == 'yes') {?><div class="overlapping_content_margin"><?php } ?>
						<?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){ ?>
						<?php if($mkd_options['overlapping_content'] == 'yes') {?></div><?php } ?>
					</div>
				</div>
				<?php } ?>
			</div>
		<?php } ?>
			<div class="header_bottom <?php echo esc_attr($header_bottom_class) ;?> clearfix <?php if
            ($menu_item_icon_position=="top"){echo 'with_large_icons ';}?>" <?php mkd_inline_style($header_color_per_page); ?> >
			<?php if($header_in_grid){ ?>
				<div class="container">
					<div class="container_inner clearfix" <?php mkd_inline_style($header_bottom_border_style); ?>>
					<?php if($mkd_options['overlapping_content'] == 'yes') {?><div class="overlapping_content_margin"><?php } ?>
						<?php } ?>
						<div class="header_inner_left">
							<?php if(mkd_is_main_menu_set()) { ?>
								<div class="mobile_menu_button">
									<span>
										<?php $mkdIconCollections->getMobileMenuIcon($mkd_options['header_icon_pack']); ?>
									</span>
								</div>
							<?php } ?>
							<?php if (!(isset($mkd_options['show_logo']) && $mkd_options['show_logo'] == "no")){ ?>
								<div class="logo_wrapper" <?php mkd_inline_style($logo_wrapper_style); ?>>
									<?php
									if (isset($mkd_options['logo_image']) && $mkd_options['logo_image'] != ""){ $logo_image = $mkd_options['logo_image'];}else{ $logo_image =  get_template_directory_uri().'/img/logo.png'; };
									if (isset($mkd_options['logo_image_light']) && $mkd_options['logo_image_light'] != ""){ $logo_image_light = $mkd_options['logo_image_light'];}else{ $logo_image_light =  get_template_directory_uri().'/img/logo.png'; };
									if (isset($mkd_options['logo_image_dark']) && $mkd_options['logo_image_dark'] != ""){ $logo_image_dark = $mkd_options['logo_image_dark'];}else{ $logo_image_dark =  get_template_directory_uri().'/img/logo_black.png'; };
									if (isset($mkd_options['logo_image_sticky']) && $mkd_options['logo_image_sticky'] != ""){ $logo_image_sticky = $mkd_options['logo_image_sticky'];}else{ $logo_image_sticky =  get_template_directory_uri().'/img/logo_black.png'; };
									if (isset($mkd_options['logo_image_popup']) && $mkd_options['logo_image_popup'] != ""){ $logo_image_popup = $mkd_options['logo_image_popup'];}else{ $logo_image_popup =  get_template_directory_uri().'/img/logo_white.png'; };
									if (isset($mkd_options['logo_image_fixed_hidden']) && $mkd_options['logo_image_fixed_hidden'] != ""){ $logo_image_fixed_hidden = $mkd_options['logo_image_fixed_hidden'];}else{ $logo_image_fixed_hidden =  get_template_directory_uri().'/img/logo.png'; };
									if (isset($mkd_options['logo_image_mobile']) && $mkd_options['logo_image_mobile'] != ""){
										$logo_image_mobile = $mkd_options['logo_image_mobile'];
									}else{ 
										if(isset($mkd_options['logo_image']) && $mkd_options['logo_image'] != ""){
											$logo_image_mobile = $mkd_options['logo_image'];
										}else{ 
											$logo_image_mobile =  get_template_directory_uri().'/img/logo.png'; 
										}
									}
									?>
									<div class="mkd_logo"><a <?php mkd_inline_style($logo_wrapper_style); ?> href="<?php echo esc_url(home_url('/')); ?>"><img class="normal" src="<?php echo esc_url($logo_image); ?>" alt="Logo"/><img class="light" src="<?php echo esc_url($logo_image_light); ?>" alt="Logo"/><img class="dark" src="<?php echo esc_url($logo_image_dark); ?>" alt="Logo"/><img class="sticky" src="<?php echo esc_url($logo_image_sticky); ?>" alt="Logo"/><img class="mobile" src="<?php echo esc_url($logo_image_mobile); ?>" alt="Logo"/><?php if($enable_popup_menu == 'yes'){ ?><img class="popup" src="<?php echo esc_url($logo_image_popup); ?>" alt="Logo"/><?php } ?></a></div>
									<?php if($header_bottom_appearance == "fixed_hiding") { ?>
										<div class="mkd_logo_hidden"><a href="<?php echo esc_url(home_url('/')); ?>"><img alt="Logo" src="<?php echo esc_url($logo_image_fixed_hidden); ?>" style="height: 100%;"></a></div>
									<?php } ?>
								</div>
							<?php } ?>
						</div>
						<div class="bottom_right">
							<div class="header_inner_right">
								<div class="side_menu_button_wrapper right">
									<?php if(is_active_sidebar('woocommerce_dropdown')) {
										dynamic_sidebar('woocommerce_dropdown');
									} ?>
									<div class="side_menu_button">
									<?php if(isset($mkd_options['enable_search']) && $mkd_options['enable_search'] == 'yes'){
										$search_type_class = 'search_slides_from_top';
										if(isset($mkd_options['search_type']) && $mkd_options['search_type'] !== '') {
											$search_type_class = $mkd_options['search_type'];
										}
										if(isset($mkd_options['search_type']) && $mkd_options['search_type'] == 'search_covers_header') {
											if (isset($mkd_options['search_cover_only_bottom_yesno']) && $mkd_options['search_cover_only_bottom_yesno']=='yes') {
												$search_type_class .= ' search_covers_only_bottom';
											}
										}
										if (isset($mkd_options['search_icon_background_full_height']) && $mkd_options['search_icon_background_full_height'] == 'yes'){
											$search_type_class .= ' search_icon_bckg_full';
										}?>
										<a class="<?php echo esc_attr($search_type_class); ?> <?php echo esc_attr($header_button_size); ?>" href="javascript:void(0)">
											<?php if(isset($mkd_options['search_icon_pack'])){
												$mkdIconCollections->getSearchIcon($mkd_options['search_icon_pack']);
											} ?>
											<?php if(isset($mkd_options['enable_search_icon_text']) && $mkd_options['enable_search_icon_text'] == 'yes'){?>
												<span class="search_icon_text">
													<?php _e('Search', 'mkd'); ?>
												</span>
											<?php } ?>
										</a>
										<?php if($search_type_class == 'fullscreen_search' && $fullscreen_search_animation=='from_circle'){ ?>
											<div class="fullscreen_search_overlay"></div>
										<?php } ?>
									<?php } ?>
									<?php if($enable_popup_menu == "yes"){ ?>
										<a href="javascript:void(0)" class="popup_menu <?php echo esc_attr($header_button_size.' '.$popup_menu_animation_style); ?>"><span class="popup_menu_inner"><i class="line">&nbsp;</i></span></a>
									<?php } ?>
										<?php if($enable_side_area == "yes" && $enable_popup_menu == 'no'){
											$sidearea_type_class = "";
											if (isset($mkd_options['sidearea_icon_background_full_height']) && $mkd_options['sidearea_icon_background_full_height'] == 'yes'){
												$sidearea_type_class .= ' sidearea_icon_bckg_full';
											}
											?>
											<a class="side_menu_button_link <?php echo esc_attr($header_button_size); echo esc_attr($sidearea_type_class); ?>" href="javascript:void(0)">
											<?php echo mkd_get_side_menu_icon_html(); ?></a>
										<?php } ?>
									</div>
								</div>
							</div>
							<nav class="main_menu drop_down right <?php  echo esc_attr($menu_dropdown_appearance_class);?>">
								<?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 mkd_type1_walker_nav_menu()
									));
								?>
							</nav>
						</div>
						<div class="header_right_top">
							<div class="header_right_top_left">
								<?php if(is_active_sidebar('header_bottom_right')) { ?>
									<div class="header_right_top_widget_holder"><?php dynamic_sidebar('header_bottom_right'); ?></div>
								<?php } ?>
							</div>
						</div>
						<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 mkd_type2_walker_nav_menu()
								));
							?>
						</nav>
							<?php if($header_in_grid){ ?>
							<?php if($mkd_options['overlapping_content'] == 'yes') {?></div><?php } ?>
					</div>
				</div>
				<?php } ?>
			</div>
		</div>
	</div>
</header>

<?php } ?>
	
<?php } else{?>

	<?php //Here renders header simplified because Side Menu is enabled?>
	
	<header class="page_header <?php if($display_header_top == "yes"){ echo 'has_top'; }  if($header_top_area_scroll == "yes"){ echo ' scroll_top'; }?> <?php if($centered_logo){ echo " centered_logo"; } ?> <?php echo esc_attr($header_bottom_appearance); ?>  <?php echo esc_attr($header_style); ?> <?php if(is_active_sidebar('header_fixed_right')) { echo 'has_header_fixed_right'; } ?>">
		<div class="header_inner clearfix">
			<div class="header_bottom <?php echo esc_attr($header_bottom_class) ;?> clearfix" <?php mkd_inline_style($header_color_per_page); ?>>
				<?php if($header_in_grid){ ?>
				<div class="container">
					<div class="container_inner clearfix" <?php mkd_inline_style($header_bottom_border_style); ?>>
                    <?php if($mkd_options['overlapping_content'] == 'yes') {?><div class="overlapping_content_margin"><?php } ?>
						<?php } ?>
						<div class="header_inner_left">
							<?php if(mkd_is_main_menu_set()) { ?>
								<div class="mobile_menu_button"><span>
										<?php $mkdIconCollections->getMobileMenuIcon($mkd_options['header_icon_pack']); ?>
									</span>
								</div>
							<?php } ?>
							<?php if (!(isset($mkd_options['show_logo']) && $mkd_options['show_logo'] == "no")){ ?>
								<div class="logo_wrapper">
									<?php
									if (isset($mkd_options['logo_image']) && $mkd_options['logo_image'] != ""){ $logo_image = $mkd_options['logo_image'];}else{ $logo_image =  get_template_directory_uri().'/img/logo.png'; };
									if (isset($mkd_options['logo_image_light']) && $mkd_options['logo_image_light'] != ""){ $logo_image_light = $mkd_options['logo_image_light'];}else{ $logo_image_light =  get_template_directory_uri().'/img/logo.png'; };
									if (isset($mkd_options['logo_image_dark']) && $mkd_options['logo_image_dark'] != ""){ $logo_image_dark = $mkd_options['logo_image_dark'];}else{ $logo_image_dark =  get_template_directory_uri().'/img/logo_black.png'; };
									if (isset($mkd_options['logo_image_sticky']) && $mkd_options['logo_image_sticky'] != ""){ $logo_image_sticky = $mkd_options['logo_image_sticky'];}else{ $logo_image_sticky =  get_template_directory_uri().'/img/logo_black.png'; };
									if (isset($mkd_options['logo_image_popup']) && $mkd_options['logo_image_popup'] != ""){ $logo_image_popup = $mkd_options['logo_image_popup'];}else{ $logo_image_popup =  get_template_directory_uri().'/img/logo_white.png'; };
									if (isset($mkd_options['logo_image_mobile']) && $mkd_options['logo_image_mobile'] != ""){
										$logo_image_mobile = $mkd_options['logo_image_mobile'];
									}else{ 
										if(isset($mkd_options['logo_image']) && $mkd_options['logo_image'] != ""){
											$logo_image_mobile = $mkd_options['logo_image'];
										}else{ 
											$logo_image_mobile =  get_template_directory_uri().'/img/logo.png'; 
										}
									}
									?>
									<div class="mkd_logo"><a href="<?php echo esc_url(home_url('/')); ?>"><img class="normal" src="<?php echo esc_url($logo_image); ?>" alt="Logo"/><img class="light" src="<?php echo esc_url($logo_image_light); ?>" alt="Logo"/><img class="dark" src="<?php echo esc_url($logo_image_dark); ?>" alt="Logo"/><img class="sticky" src="<?php echo esc_url($logo_image_sticky); ?>" alt="Logo"/><img class="mobile" src="<?php echo esc_url($logo_image_mobile); ?>" alt="Logo"/><?php if($enable_popup_menu == 'yes'){ ?><img class="popup" src="<?php echo esc_url($logo_image_popup); ?>" alt="Logo"/><?php } ?></a></div>
								</div>
							<?php } ?>
						</div>
						<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 mkd_type2_walker_nav_menu()
							));
							?>
						</nav>

						<?php if($header_in_grid){ ?>
                        <?php if($mkd_options['overlapping_content'] == 'yes') {?></div><?php } ?>
					</div>
				</div>
			<?php } ?>				
			</div>
		</div>
	</header>
<?php } ?>

<?php if($mkd_options['show_back_button'] == "yes") {
    $mkd_back_to_top_button_styles = "";
    if(isset($mkd_options['back_to_top_position']) && !empty($mkd_options['back_to_top_position'])) {
        $mkd_back_to_top_button_styles = $mkd_options['back_to_top_position'];
    } ?>
		<a id='back_to_top' class="<?php echo esc_attr($mkd_back_to_top_button_styles);?>" href='#'>
			<span class="mkd_icon_stack">
				<?php if(isset($mkd_options['show_back_button_icon']) && $mkd_options['show_back_button_icon']!== '') { ?>				
				<span <?php mkd_class_attribute($mkd_options['show_back_button_icon'])?>></span>
				<?php } else {
					$mkdIconCollections->getBackToTopIcon('font_elegant');
				} ?>
			</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">
			<?php if (isset($mkd_options['popup_in_grid']) && $mkd_options['popup_in_grid'] == "yes") { ?>
				<div class = "container_inner">
			<?php } ?>

				<?php if(is_active_sidebar('fullscreen_above_menu')) { ?>
					<div class="fullscreen_above_menu_widget_holder"><?php dynamic_sidebar('fullscreen_above_menu'); ?></div>
				<?php } ?>
				<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 mkd_type3_walker_nav_menu()
					));
					?>
				</nav>
				<?php if(is_active_sidebar('fullscreen_menu')) { ?>
					<div class="fullscreen_menu_widget_holder"><?php dynamic_sidebar('fullscreen_menu'); ?></div>
				<?php } ?>
			<?php if (isset($mkd_options['popup_in_grid']) && $mkd_options['popup_in_grid'] == "yes") { ?>
				</div>
			<?php } ?>
			</div>
		</div>
	</div>
<?php } ?>

<?php if($enable_fullscreen_search=="yes"){ ?>
	<div class="fullscreen_search_holder <?php echo esc_attr($fullscreen_search_animation); ?>">
		<div class="close_container">
			<?php if($header_in_grid){ ?>
				<div class="container">
					<div class="container_inner clearfix" >
			<?php } ?>
					<div class="search_close_holder">
						<div class="side_menu_button">
							<a class="fullscreen_search_close" href="javascript:void(0)">
								<?php if(isset($mkd_options['header_icon_pack'])) { $mkdIconCollections->getSearchClose($mkd_options['header_icon_pack']); } ?>
							</a>
							<?php if($header_bottom_appearance!="fixed fixed_minimal"){?>
								<?php if($enable_popup_menu == "yes"){ ?>
									<a href="javascript:void(0)" class="popup_menu <?php echo esc_attr($header_button_size.' '.$popup_menu_animation_style); ?>"><span class="popup_menu_inner"><i class="line">&nbsp;</i></span></a>
								<?php } ?>
								<?php if($enable_side_area == "yes" && $enable_popup_menu == 'no'){
									$sidearea_type_class = "";
									if (isset($mkd_options['sidearea_icon_background_full_height']) && $mkd_options['sidearea_icon_background_full_height'] == 'yes'){
										$sidearea_type_class .= ' sidearea_icon_bckg_full';
									}
									?>
									<a class="side_menu_button_link <?php echo esc_attr($header_button_size); echo esc_attr($sidearea_type_class); ?>" href="javascript:void(0)">
									<?php echo mkd_get_side_menu_icon_html(); ?></a>
								<?php } ?>
							<?php } ?>
						</div>
					</div>
			<?php if($header_in_grid){ ?>
					</div>
				</div>
			<?php } ?>
		</div>
		<div class="fullscreen_search_table">
			<div class="fullscreen_search_cell">
				<div class="fullscreen_search_inner">
					<form role="search" action="<?php echo esc_url(home_url('/')); ?>" class="fullscreen_search_form" method="get">
						<div class="form_holder">
							<span class="search_label"><?php _e('Search:', 'mkd'); ?></span>
							<div class="field_holder">
								<input type="text"  name="s" class="search_field" autocomplete="off" />
								<div class="line"></div>
							</div>
							<input type="submit" class="search_submit" value="&#x55;" />
						</div>	
					</form>
				</div>
			</div>
		</div>
	</div>
<?php } ?>


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

if((get_post_meta($id, "mkd_revolution-slider", true) == "" && ($header_transparency == '' || $header_transparency == 1))  || get_post_meta($id, "mkd_enable_content_top_margin", true) == "yes"){
	if($mkd_options['header_bottom_appearance'] == "fixed" || $mkd_options['header_bottom_appearance'] == "fixed_hiding" || $mkd_options['header_bottom_appearance'] == "fixed fixed_minimal"){
		$content_class = "content_top_margin";
	}else {
		$content_class = "content_top_margin_none";
	}
}

//check if this page is full screen, because plugin counts full height of window
if(mkd_get_page_template_name() == "full_screen" && (isset($mkd_options['paspartu']) && $mkd_options['paspartu'] == 'no')){

    if((isset($mkd_options['vertical_area']) && $mkd_options['vertical_area'] == 'no') && (($header_transparency == '' || $header_transparency == 1) || ($mkd_options['header_bottom_appearance'] == "regular" || $mkd_options['header_bottom_appearance'] == "fixed_top_header"))) {
        if ($mkd_options['header_bottom_appearance'] == "fixed" || $mkd_options['header_bottom_appearance'] == "fixed_hiding" || $mkd_options['header_bottom_appearance'] == "fixed fixed_minimal") {
            $content_class = "content_top_margin_none";
        } else {
            $content_class = "content_top_margin_negative";
        }
    }
}

//check if there is slider added and set class to content div, this is used for content top margin in style_dynamic.php
if(get_post_meta($id, "mkd_revolution-slider", true) != ""){
    $content_class .= " has_slider";
}
?>

<?php
if(isset($mkd_options['paspartu']) && $mkd_options['paspartu'] == 'yes'){

$paspartu_additional_classes = "";
if(isset($mkd_options['paspartu_on_top']) && $mkd_options['paspartu_on_top'] == 'no'){
    $paspartu_additional_classes .= " disable_top_paspartu";
}
if(isset($mkd_options['paspartu_on_bottom']) && $mkd_options['paspartu_on_bottom'] == 'no'){
    $paspartu_additional_classes .= " disable_bottom_paspartu";
}
if(isset($mkd_options['paspartu_on_bottom_slider']) && $mkd_options['paspartu_on_bottom_slider'] == 'yes'){
    $paspartu_additional_classes .= " paspartu_on_bottom_slider";
}
if((isset($mkd_options['paspartu_on_bottom']) && $mkd_options['paspartu_on_bottom'] == 'yes' && isset($mkd_options['paspartu_on_bottom_fixed']) && $mkd_options['paspartu_on_bottom_fixed'] == 'yes') || 
(isset($mkd_options['vertical_area']) && $mkd_options['vertical_area'] == 'yes' && isset($mkd_options['vertical_menu_inside_paspartu']) && $mkd_options['vertical_menu_inside_paspartu'] == 'yes')){
    $paspartu_additional_classes .= " paspartu_on_bottom_fixed";
}
?>


<div class="paspartu_outer <?php echo esc_attr($paspartu_additional_classes); ?>">
    <?php if(isset($mkd_options['vertical_area']) && $mkd_options['vertical_area'] =='yes' && isset($mkd_options['vertical_menu_inside_paspartu']) && $mkd_options['vertical_menu_inside_paspartu'] == 'no') { ?>
        <div class="paspartu_middle_inner">
    <?php }?>
	
	<?php if((isset($mkd_options['paspartu_on_top']) && $mkd_options['paspartu_on_top'] == 'yes' && isset($mkd_options['paspartu_on_top_fixed']) && $mkd_options['paspartu_on_top_fixed'] == 'yes') || 
	(isset($mkd_options['vertical_area']) && $mkd_options['vertical_area'] == 'yes' && isset($mkd_options['vertical_menu_inside_paspartu']) && $mkd_options['vertical_menu_inside_paspartu'] == 'yes')){ ?>
        <div class="paspartu_top"></div>
    <?php }?>
	<div class="paspartu_left"></div>
    <div class="paspartu_right"></div>
    <?php if((isset($mkd_options['paspartu_on_bottom']) && $mkd_options['paspartu_on_bottom'] == 'yes' && isset($mkd_options['paspartu_on_bottom_fixed']) && $mkd_options['paspartu_on_bottom_fixed'] == 'yes') ||
	(isset($mkd_options['vertical_area']) && $mkd_options['vertical_area'] == 'yes' && isset($mkd_options['vertical_menu_inside_paspartu']) && $mkd_options['vertical_menu_inside_paspartu'] == 'yes')){ ?>
        <div class="paspartu_bottom"></div>
    <?php }?>
    <div class="paspartu_inner">
<?php
}
?>

<div class="content <?php echo esc_attr($content_class); ?>">
	<?php
	$animation = get_post_meta($id, "mkd_show-animation", true);

	?>
	<?php if($mkd_options['page_transitions'] == "1" || $mkd_options['page_transitions'] == "2" || $mkd_options['page_transitions'] == "3" || $mkd_options['page_transitions'] == "4" || ($animation == "updown") || ($animation == "fade") || ($animation == "updown_fade") || ($animation == "leftright")){ ?>
		<div class="meta">
			<?php do_action('mkd_ajax_meta'); ?>
			<span id="mkd_page_id"><?php echo esc_html($wp_query->get_queried_object_id()); ?></span>
			<div class="body_classes"><?php echo esc_html(implode( ',', get_body_class())); ?></div>
		</div>
	<?php } ?>
	<div class="content_inner <?php echo esc_attr($animation);?> ">
		<?php if($mkd_options['page_transitions'] == "1" || $mkd_options['page_transitions'] == "2" || $mkd_options['page_transitions'] == "3" || $mkd_options['page_transitions'] == "4" || ($animation == "updown") || ($animation == "fade") || ($animation == "updown_fade") || ($animation == "leftright")){ ?>
		<?php do_action('mkd_visual_composer_custom_shortcodce_css');?>
	<?php } ?>