Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Menu php Origin theme

By: a guest on Jan 31st, 2013  |  syntax: None  |  size: 0.78 KB  |  views: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /**
  3.  * Primary Menu Template
  4.  *
  5.  * Displays the Primary Menu if it has active menu items.
  6.  *
  7.  * @package Origin
  8.  * @subpackage Template
  9.  */
  10.  
  11. if ( has_nav_menu( 'primary' ) ) : ?>
  12.  
  13.         <?php do_atomic( 'before_menu_primary' ); // origin_before_menu_primary ?>
  14.  
  15.         <div id="menu-primary" class="menu-container">
  16.  
  17.                 <?php do_atomic( 'open_menu_primary' ); // origin_open_menu_primary ?>
  18.  
  19.                 <?php wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => 'menu', 'menu_class' => '', 'menu_id' => 'menu-primary-items', 'fallback_cb' => '' ) ); ?>
  20.  
  21.                 <?php do_atomic( 'close_menu_primary' ); // origin_close_menu_primary ?>
  22.  
  23.         </div><!-- #menu-primary .menu-container -->
  24.  
  25.         <?php do_atomic( 'after_menu_primary' ); // origin_after_menu_primary ?>
  26.  
  27. <?php endif; ?>