<?php
/**
 * Displays the site right menu navigation.
 */

?>

<?php if ( has_nav_menu( 'main' ) ) : ?>
	<a class="open-nav">&#9776;</a>
	<nav id="site-navigation" class="primary-navigation" aria-label="<?php esc_attr_e( 'Main', 'sastheme' ); ?>">
		<?php
		wp_nav_menu(
			array(
				'theme_location'  => 'main',
				'menu_class'      => 'menu-wrapper',
				'container_class' => 'primary-menu-container',
				'items_wrap'      => '<ul id="primary-menu-list" class="%2$s">%3$s</ul>',
				'fallback_cb'     => false,
			)
		);
		?>
	</nav>
	<?php
endif;
