<?php
/**
 * Nebula Ocean navigation.
 * Search overlay removed for a cleaner, faster header.
 *
 * @package Nebula Ocean
 */
?>
<div id="header" class="menubar nebula-menu-clean">
  <div class="header-menu <?php if( get_theme_mod( 'vw_newspaper_sticky_header', false) == 1 || get_theme_mod( 'vw_newspaper_stickyheader_hide_show', false) == 1) { ?> header-sticky<?php } else { ?> close-sticky<?php } ?>">
    <div class="container">
      <div class="row nebula-nav-row">
        <div class="col-12 align-self-center">
          <div class="toggle-nav mobile-menu">
            <button onclick="vw_newspaper_menu_open_nav()" class="responsivetoggle" aria-expanded="false" aria-controls="mySidenav"><i class="<?php echo esc_attr(get_theme_mod('vw_newspaper_res_open_menu_icon','fas fa-bars')); ?>"></i><span class="screen-reader-text"><?php esc_html_e('Open Menu','nebula-ocean'); ?></span></button>
          </div>
          <div id="mySidenav" class="nav sidenav" aria-hidden="true">
            <nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Top Menu', 'nebula-ocean' ); ?>">
              <button type="button" class="nebula-menu-close mobile-menu" onclick="vw_newspaper_menu_close_nav()" aria-label="<?php esc_attr_e('Close Menu','nebula-ocean'); ?>"><i class="<?php echo esc_attr(get_theme_mod('vw_newspaper_res_close_menu_icon','fas fa-times')); ?>"></i></button>
              <?php
                wp_nav_menu( array(
                  'theme_location' => 'primary',
                  'container_class' => 'main-menu clearfix',
                  'menu_class' => 'clearfix',
                  'items_wrap' => '<ul id="%1$s" class="%2$s mobile_nav">%3$s</ul>',
                  'fallback_cb' => 'wp_page_menu',
                ) );
              ?>
            </nav>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
