<div class="mobile_menu_wrap clearfix">
	<div class="row">
		<div class="col-sm-6">
			<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
				<?php $small_logo = (get_option('FRGN_SITE_LOGO_MOBILE') <> '') ? esc_attr(get_option('FRGN_SITE_LOGO_MOBILE')) : get_template_directory_uri() . esc_html__('/images/logo.png', 'monni' ); ?>
				<img src="<?php echo esc_url( $small_logo ); ?>" alt="<?php echo esc_attr(get_bloginfo('name')); ?>" id="mobile_logo" />
			</a> <!-- Small logo in menu -->
		</div>
		<div class="col-sm-6">
			<div id="mobile_nav" class="closed"><i class="fa fa-bars fa-3x"></i>
			<?php			
			if( has_nav_menu( 'primary' ) ) { 
				if(function_exists('wp_megamenu')){
				 	$wpmm_nav_location_settings = get_wpmm_option('primary');
				 	if(!empty($wpmm_nav_location_settings['is_enabled'])){
				 		wp_nav_menu( array( 'theme_location' => 'mobile_navigation', 'container' => false, 'menu_class' => 'nav justify-content-end', 'menu_id' => 'mobile_menu', 'fallback_cb' => false ) );
				 	} else { 
						wp_nav_menu(array('theme_location' => 'mobile_navigation', 'container' => false, 'menu_class' => 'nav justify-content-end', 'menu_id' => 'mobile_menu', )); 
				 	 }
				} else {
					wp_nav_menu(array('theme_location' => 'primary', 'container' => false, 'menu_class' => 'nav justify-content-end', 'menu_id' => 'mobile_menu', ));
				}
			} 
			?>
			</div>
		</div>
	</div>
</div>

<div class="menu_wrap <?php if ( get_option('FRGN_ENABLE_ONE_PAGE_MENU') == esc_html__('on', 'monni')) echo esc_attr('frgn_onepage'); ?>">
	<div id="menu" class="clearfix container-fluid">
		
		<div class="row">
		
			<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="logo">
				<?php $dark_logo = (get_option('FRGN_SITE_LOGO_SMALL') <> '') ? esc_attr(get_option('FRGN_SITE_LOGO_SMALL')) : get_template_directory_uri() . esc_html__('/images/logo.png', 'monni' ); ?>
				<img src="<?php echo esc_url( $dark_logo ); ?>" alt="<?php echo esc_attr(get_bloginfo('name')); ?>" class="dark_logo" />
			</a> <!-- Small logo in menu -->	

				<?php if(function_exists('wp_megamenu')){ ?>
					<nav id="main-menu" class="navbar-static-top">
						<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
					</nav>
				<?php } else { ?>
					<nav id="main-menu" class="navbar-static-top">
						<?php wp_nav_menu( array( 'theme_location' => 'primary', 'monni', 'menu_class' => 'nav justify-content-end', 'monni', 'fallback_cb' => false ) ); ?>
					</nav>
				<?php } ?>
				
		</div>
	</div> <!-- end #menu -->
</div> <!-- end .menu_wrap -->
<!--MENU-->