<?php
$enable_numbers    = ginevra_core_get_post_value_through_levels( 'qodef_nav_1st_lvl_numbers' );
$numbers = '';

if ( $enable_numbers == 'yes' ) {
    $numbers = 'qodef-menu-has-numbers';
}
?>

<div id="qodef-fullscreen-area">
	<?php if ( $fullscreen_menu_in_grid ) { ?>
	<div class="qodef-content-grid">
	<?php } ?>

		<div id="qodef-fullscreen-area-inner">
			<?php if ( has_nav_menu( 'fullscreen-menu-navigation' ) ) { ?>
				<nav class="qodef-fullscreen-menu <?php echo esc_html__( $numbers );?>" role="navigation" aria-label="<?php esc_attr_e( 'Full Screen Menu', 'ginevra-core' ); ?>">
					<?php
					wp_nav_menu(
						array(
							'theme_location' => 'fullscreen-menu-navigation',
							'container'      => '',
							'link_before'    => '<span class="qodef-menu-item-text">',
							'link_after'     => '</span>',
							'walker'         => new GinevraCoreRootMainMenuWalker(),
						)
					);
					?>
				</nav>
			<?php } ?>
		</div>

	<?php if ( $fullscreen_menu_in_grid ) { ?>

	</div>
	<?php } ?>

    <?php if ( is_active_sidebar( 'qodef-fullscreen-menu-area' ) ) { ?>
        <div id="qodef-fullscreen-widget-area">
            <?php dynamic_sidebar( 'qodef-fullscreen-menu-area' ); ?>
        </div>
    <?php } ?>

</div>