Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 38 lines (26 sloc) 1.179 kB
2aa8890 Importing the initial My Life theme files and folders.
greenshady authored
1 <?php
2 /**
3 * Primary Menu Template
4 *
5 * Displays the Primary Menu if it has active menu items.
6 *
7 * @package MyLife
8 * @subpackage Template
9 * @since 0.1.0
10 * @author Justin Tadlock <justin@justintadlock.com>
11 * @copyright Copyright (c) 2011, Justin Tadlock
12 * @link http://themehybrid.com/themes/my-life
13 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
14 */
15
16 if ( has_nav_menu( 'primary' ) ) : ?>
17
18 <?php do_atomic( 'before_menu_primary' ); // my-life_before_menu_primary ?>
19
20 <div id="menu-primary" class="menu-container">
21
22 <div class="wrap">
23
24 <?php do_atomic( 'open_menu_primary' ); // my-life_open_menu_primary ?>
25
26 <?php wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => 'menu', 'menu_class' => '', 'menu_id' => 'menu-primary-items', 'fallback_cb' => '' ) ); ?>
27
28 <?php do_atomic( 'close_menu_primary' ); // my-life_close_menu_primary ?>
29
30 <?php if ( !is_admin_bar_showing() ) get_search_form(); // Loads the searchform.php template. ?>
31
32 </div>
33
34 </div><!-- #menu-primary .menu-container -->
35
36 <?php do_atomic( 'after_menu_primary' ); // my-life_after_menu_primary ?>
37
38 <?php endif; ?>
Something went wrong with that request. Please try again.