advantage_nav_menu

The Advantage advantage nav menu function.

Description

advantage_nav_menu(); 

Usage

  1. if ( !function_exists( 'advantage_nav_menu' ) ) { 
  2. require_once '/inc/lib-content.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = advantage_nav_menu(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/lib-content.php  
  1. function advantage_nav_menu() { 
  2. global $advantage_options; 
  3.  
  4. ?> 
  5. <div id="mainmenu" class="navbar navbar-inverse"> 
  6. <div class="container-fluid"> 
  7. <div class="navbar-inner"> 
  8. <nav id="section-menu" class="section-menu">  
  9. <a class="brand" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php echo '<i class="icon-home"></i>'; ?></a> 
  10. <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a> 
  11. <div class="nav-collapse"> 
  12. wp_nav_menu( array( 
  13. 'container' => false,  
  14. 'menu_class' => 'nav',  
  15. 'theme_location' => 'section-menu',  
  16. 'fallback_cb' => 'advantage_nav_fb',  
  17. walker => new advantage_bootstrap_walker() 
  18. )); 
  19. ?> 
  20. </div><?php //nav-collapse ?> 
  21. </nav> 
  22. </div><?php //nav-inner ?> 
  23. </div><?php //container ?> 
  24. </div><?php //navbar ?> 
  25. <?php