<?php if ( is_active_sidebar( 'menu' ) ) { ?>
<section id="site-menu" class="region site-container site-menu">
  <div class="inner">
  <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('menu') ) : // begin primary sidebar widgets ?>
  <?php endif; // end primary sidebar widgets  ?>
  </div>
</section>
<?php } else { ?>
<nav id="site-menu" class="region site-container site-menu">
  <div class="inner">
  <?php  wp_nav_menu( array(

    'container'       => 'ul',
    'container_class' => 'menu {menu slug}',
    'container_id'    => 'menu-{menu slug}'

  ) ); ?>
  </div>
</nav>
<?php } ?>
