'navbar', //'depth' => 2, 'echo' => false, 'fallback_cb' => false, 'walker' => $GLOBALS[ 'shapeshifter_walker_nav_menu_instance_navbar' ] ); $nav_is_mobile = shapeshifter_boolval( wp_nav_menu( $nav_menu_args ) === false ); if ( ! SHAPESHIFTER_IS_MOBILE ) { if ( ! $nav_is_mobile ) { $nav_menu_args = array( 'container_class' => 'shapeshifter-main-nav-div', 'menu_class' => 'shapeshifter-main-nav-menu', 'theme_location' => 'navbar', 'depth' => 3, 'echo' => false, 'fallback_cb' => false, 'walker' => $GLOBALS[ 'shapeshifter_walker_nav_menu_instance_navbar' ] ); $nav_menu_output = substr_replace( wp_nav_menu( $nav_menu_args ), '', -11, 0 ); } else { $nav_menu_args = array( 'container_class' => 'shapeshifter-mobile-nav-div', 'menu_class' => 'shapeshifter-mobile-nav-menu', 'theme_location' => 'top_nav', //'depth' => 2, 'echo' => false, 'fallback_cb' => false, 'walker' => $GLOBALS[ 'shapeshifter_walker_nav_menu_instance_mobile_nav_menu' ] ); $nav_menu_output = substr_replace( wp_nav_menu( $nav_menu_args ), '', -11, 0 ); } } else { $nav_is_mobile = true; $nav_menu_args = array( 'container_class' => 'shapeshifter-mobile-nav-div', 'menu_class' => 'shapeshifter-mobile-nav-menu', 'theme_location' => 'top_nav', //'depth' => 2, 'echo' => false, 'fallback_cb' => false, 'walker' => $GLOBALS[ 'shapeshifter_walker_nav_menu_instance_mobile_nav_menu' ] ); $nav_menu_output = substr_replace( wp_nav_menu( $nav_menu_args ), '', -11, 0 ); } unset( $nav_menu_args ); $either_primary_or_second = ( $nav_is_mobile ? esc_html__( 'Primary Navigation', 'shapeshifter' ) : esc_html( $GLOBALS[ 'shapeshifter_top_nav_menu' ] != '' ? __( 'Secondary Navigation', 'shapeshifter' ) : __( 'Primary Navigation', 'shapeshifter' ) ) ); $either_main_or_mobile = ( $nav_is_mobile ? 'mobile' : 'main' ); echo ''; if ( ! $nav_is_mobile ) { echo '
'; } unset( $nav_is_mobile );