<?php 
	global $elonissa_fn_option, $post;
	

	// get navigation skin
	$logo  = '<div class="fn_logo">';
		$logo .= elonissa_fn_get_logo();
	$logo .= '</div>';



	if(has_nav_menu('main_menu')){
		$menu = wp_nav_menu( array('theme_location'  => 'main_menu','menu_class' => 'elonissa_fn_main_nav', 'echo' => false, 'link_before' => '<span class="link">', 'link_after' => '</span>') );
	}else{
		$menu = '<ul class="elonissa_fn_main_nav"><li><a href=""><span class="link">'.esc_html__('No menu assigned', 'elonissa').'</span></a></li></ul>';
	}
	

	// get social icons via Kirki
	$social_list = elonissa_fn_header_social();
	
?>
<header class="elonissa_fn_header">
		
	<div class="header_top">
		<div class="fn-container">
			<div class="top_inner">
			
				<?php echo wp_kses(elonissa_fn_get_logo('top'), 'post'); ?>
				
				<div class="header_nav">
					<?php echo wp_kses($menu, 'post'); ?>
				</div>
				
				<div class="header_helper">
					
					
					<!-- Social List -->
					<?php echo wp_kses($social_list, 'post'); ?>
					<!-- /Social List -->
					
					<div class="helper_extra">
						<a href="#" class="fn_finder">
							<?php echo wp_kses(elonissa_fn_getSVG_theme('search-new'), 'post'); ?>
						</a>
					</div>
					
				</div>
				
			</div>
		</div>
	</div>

	<div class="header_logo">
		<?php echo wp_kses($logo, 'post'); ?>
	</div>

</header>

<div class="elonissa_fn_hidden more_cats">
 	<div class="elonissa_fn_more_categories">
		<a href="#" data-more="<?php esc_attr_e('Show More','elonissa'); ?>" data-less="<?php esc_attr_e('Show Less','elonissa');?>">
			<span class="text"><?php esc_html_e('Show More','elonissa'); ?></span>
			<span class="fn_count"></span>
		</a>
	</div>
</div>