Replace small-menu.js with navigation.js inspired by Twenty Twelve.

Doesn't use jQuery, slightly easier to understand, uses a media query for max-width, rather than JS events making it faster to respond.
This commit is contained in:
Konstantin Kovshenin 2012-09-03 21:45:28 +04:00
parent 7fef5cd2ec
commit 22e1613bde
5 changed files with 48 additions and 43 deletions

View file

@ -51,8 +51,8 @@
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
</hgroup>
<nav role="navigation" class="site-navigation main-navigation">
<h1 class="assistive-text"><?php _e( 'Menu', '_s' ); ?></h1>
<nav role="navigation" class="site-navigation main-navigation" id="site-navigation">
<h1 class="menu-toggle"><?php _e( 'Menu', '_s' ); ?></h1>
<div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', '_s' ); ?>"><?php _e( 'Skip to content', '_s' ); ?></a></div>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>