<?php if ( has_nav_menu( 'primary' ) ) { // Check if there's a menu assigned to the 'primary' location. ?>
<div class="section-main-menu">
	<div class="row">
		<div class="col-md-12">
			<div class="header-mainmenu">
				<nav itemscope itemtype="http://schema.org/SiteNavigationElement">
				<?php  
				wp_nav_menu( array( 
					'theme_location' => 'primary', 
					'menu_id' => 'mainmenu',
					'items_wrap' => '
						<div id="nyma-mainmenu-responsive-icon" class="pull-left"><div class="hidden-md hidden-lg"><i class="fa fa-navicon"> </i></div></div>
						<ul id="mainmenu">%3$s</ul>
						<div class="pull-right nyma-nav-search"><i class="fa fa-search"></i></div><div class="clearfix"></div>'
				) ); ?>
				
				</nav>
			</div>
		</div>
	</div>
</div>
<?php } ?>