catchresponsive_secondary_menu

Shows the Secondary Menu.

Description

catchresponsive_secondary_menu(); 

default load in sidebar-header-right.php


Usage

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

Defined (1)

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

/inc/catchresponsive-menus.php  
  1. function catchresponsive_secondary_menu() { 
  2. if ( has_nav_menu( 'secondary' ) ) {  
  3. ?> 
  4. <nav class="nav-secondary" role="navigation"> 
  5. <div class="wrapper"> 
  6. <h1 class="assistive-text"><?php _e( 'Secondary Menu', 'catch-responsive' ); ?></h1> 
  7. <div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'catch-responsive' ); ?>"><?php _e( 'Skip to content', 'catch-responsive' ); ?></a></div> 
  8. <?php  
  9. $catchresponsive_secondary_menu_args = array( 
  10. 'theme_location' => 'secondary',  
  11. 'menu_class' => 'menu catchresponsive-nav-menu' 
  12. ); 
  13. wp_nav_menu( $catchresponsive_secondary_menu_args ); 
  14. ?> 
  15. </div><!-- .wrapper --> 
  16. </nav><!-- .nav-secondary --> 
  17.  
  18. <?php