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

namespace JM_Web_Development\Giornalismo;

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

?>

<nav id="top-site-navigation" class="top-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 top menu', 'giornalismo' ); ?>" aria-controls="top-menu" aria-expanded="false">
		<?php esc_html_e( 'Menu', 'giornalismo' ); ?>
	</button>

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