'; if ( has_nav_menu( 'primary' ) ) { $args = array( 'theme_location' => 'primary', 'container' => false, 'items_wrap' => '' ); wp_nav_menu( $args ); } else { wp_page_menu( array( 'menu_class' => 'menu' ) ); } echo ''; //For Secondary Menu if ( has_nav_menu( 'secondary' ) ) { echo ''; } } endif; //catchresponsive_mobile_menus add_action( 'catchresponsive_after', 'catchresponsive_mobile_menus', 20 ); if ( ! function_exists( 'catchresponsive_mobile_header_nav_anchor' ) ) : /** * This function loads Mobile Menus Left Anchor * * @uses catchresponsive_header action to add in the Header */ function catchresponsive_mobile_header_nav_anchor() { // Header Left Mobile Menu Anchor if ( has_nav_menu( 'primary' ) ) { $classes = "mobile-menu-anchor primary-menu"; } else { $classes = "mobile-menu-anchor page-menu"; } ?>