<?php
/**
 * Template part for displaying the header navigation menu
 *
 * @package giornalismo
 */

namespace JM_Web_Development\Giornalismo;

if ( ! giornalismo()->is_primary_nav_menu_active() ) {
	return;
}

?>

<nav id="site-navigation" class="main-navigation nav--toggle-sub nav--toggle-small" aria-label="<?php esc_attr_e( 'Main menu', 'giornalismo' ); ?>">

	<button class="menu-toggle" aria-label="<?php esc_attr_e( 'Open main menu', 'giornalismo' ); ?>" aria-controls="main-menu" aria-expanded="false">
		<?php esc_html_e( 'Menu', 'giornalismo' ); ?>
	</button>

	<div class="primary-menu-container">
		<?php giornalismo()->display_primary_nav_menu( array( 'menu_id' => 'main-menu' ) ); ?>
	</div>
</nav><!-- #site-navigation -->
