catchresponsive_mobile_header_nav_anchor

This function loads Mobile Menus Left Anchor.

Description

catchresponsive_mobile_header_nav_anchor(); 

Usage

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

Defined (1)

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

/inc/catchresponsive-menus.php  
  1. function catchresponsive_mobile_header_nav_anchor() { 
  2.  
  3. // Header Left Mobile Menu Anchor  
  4. if ( has_nav_menu( 'primary' ) ) { 
  5. $classes = "mobile-menu-anchor primary-menu"; 
  6. else { 
  7. $classes = "mobile-menu-anchor page-menu";  
  8. ?> 
  9.  
  10. <div id="mobile-header-left-menu" class="<?php echo $classes; ?>"> 
  11. <a href="#mobile-header-left-nav" id="header-left-menu" class="genericon genericon-menu"> 
  12. <span class="mobile-menu-text"><?php _e( 'Menu', 'catch-responsive' );?></span> 
  13. </a> 
  14. </div><!-- #mobile-header-menu --> 
  15. <?php