<?php
/**
 * Main Navigation Component
 *
 * Please review documentation upon first use, and, as-needed:
 * https://docs.vincentdevelopment.ca/docs/starter-v3-enhancements/navigation/
 */

namespace KsPortfolio;

global $views;

// Expose resume link to the menu items renderer so the CTA can be appended
// as the final <li> in the mobile panel (hidden on desktop via lg:hidden).
$GLOBALS['ks_portfolio_link_resume'] = isset( $GLOBALS['ks_portfolio_link_resume'] ) ? $GLOBALS['ks_portfolio_link_resume'] : '';
?>

<nav class="nav-main" role="navigation" aria-label="Main">
	<?php require_once __DIR__ . '/nav-main__toggle.php'; ?> 

	<?php
	if ( has_nav_menu( 'main_navigation' ) ) {
		// Initialize and render menu items
		$menuItems = new MenuItems( 'main_navigation' );
		$menuItems->render();
	}
	?>
</nav>
