Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (23 sloc) 1006 Bytes
<?php
/**
* Primary Menu Template
*
* Displays the Primary Menu if it has active menu items.
*
* @package Unique
* @subpackage Template
* @since 0.1.0
* @author Justin Tadlock <justin@justintadlock.com>
* @copyright Copyright (c) 2012, Justin Tadlock
* @link http://themeforest.net/user/greenshady
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
if ( has_nav_menu( 'primary' ) ) : ?>
<?php do_atomic( 'before_menu_primary' ); // unique_before_menu_primary ?>
<div id="menu-primary" class="menu-container">
<?php do_atomic( 'open_menu_primary' ); // unique_open_menu_primary ?>
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => 'menu', 'menu_class' => '', 'menu_id' => 'menu-primary-items', 'fallback_cb' => '' ) ); ?>
<?php do_atomic( 'close_menu_primary' ); // unique_close_menu_primary ?>
</div><!-- #menu-primary .menu-container -->
<?php do_atomic( 'after_menu_primary' ); // unique_after_menu_primary ?>
<?php endif; ?>