Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 34 lines (22 sloc) 1.081 kB
789a1c8 @samikeijonen Commit all files.
authored
1 <?php
2 /**
3 * Secondary Menu Mobile Template
4 *
5 * Displays the Secondary Menu Mobile if it has active menu items.
6 *
7 * @package Path
8 * @subpackage Template
9 * @since 0.1.0
10 */
11
12 if ( has_nav_menu( 'secondary' ) ) : ?>
13
4ce7a0c @samikeijonen Small typo.
authored
14 <?php do_atomic( 'before_menu_secondary_mobile' ); // path_before_menu_secondary_mobile ?>
789a1c8 @samikeijonen Commit all files.
authored
15
847cbe0 Some markup changes.
Sami Keijonen authored
16 <nav id="menu-secondary-mobile" class="menu-container">
789a1c8 @samikeijonen Commit all files.
authored
17
18 <div class="wrap">
19
20 <?php do_atomic( 'open_menu_secondary_mobile' ); // path_open_menu_secondary_mobile ?>
21
22 <h3 class="menu-secondary-mobile-title"><?php _e( 'Secondary Menu', 'path' ); ?></h3>
23
24 <?php wp_nav_menu( array( 'theme_location' => 'secondary', 'container_class' => 'menu-mobile', 'menu_class' => '', 'menu_id' => 'menu-secondary-mobile-items', 'fallback_cb' => '' ) ); ?>
25
26 <?php do_atomic( 'close_menu_secondary_mobile' ); // path_close_menu_secondary_mobile ?>
27
28 </div><!-- .wrap -->
29
847cbe0 Some markup changes.
Sami Keijonen authored
30 </nav><!-- #menu-secondary-mobile .menu-container -->
789a1c8 @samikeijonen Commit all files.
authored
31
32 <?php do_atomic( 'after_menu_secondary_mobile' ); // path_after_menu_secondary_mobile ?>
33
34 <?php endif; ?>
Something went wrong with that request. Please try again.