<?php
/**
 * The template for main navigation
 *
 * @package MatrixAddons
 * @subpackage trainify
 * @since 1.0.0
 */
?>
<div id="tff-menu-wrap" class="tff-header-menu-wrapper">
	<div class="tff-header-menu-block-wrap">
		<div class="tff-container">
			<?php
			if ( get_theme_mod( 'harmoclass_logo_on_navigation', 'disable' ) == 'enable' ) {
				trainify_site_identity_section();
			} ?>
			<div class="tff-navigation">
				<a href="javascript:void(0)" class="menu-toggle hide"> <i class="fa fa-navicon"> </i> </a>
				<nav id="site-navigation" class="main-navigation" role="navigation">
					<?php wp_nav_menu( array(
						'theme_location' => 'trainify_primary_menu',
						'menu_id'        => 'primary-menu',
						'fallback_cb' => 'trainify_custom_fallback_menu'
					) );
					?>
				</nav><!-- #site-navigation -->
				<?php
				$trainify_search_icon_option = get_theme_mod( 'trainify_search_icon_option', 'show' );
				if ( $trainify_search_icon_option == 'show' ) {
					?>
					<div class="tff-header-search-wrapper">
						<a class="search-main" href="JavaScript:Void(0);"><i class="fa fa-search"></i></a>
						<div class="search-form-main tff-clearfix">
							<?php get_search_form(); ?>
						</div>
					</div><!-- .tff-header-search-wrapper -->
				<?php } ?>
			</div>
		</div>
	</div>
</div><!-- .tff-header-menu-wrapper -->
