url ) ? $item->url : ''; if ( isset( $atts['data-toggle'] ) ) { unset( $atts['data-toggle'] ); } return $atts; } ////////////////////////////////////////////////// /** * Returns this class fallback function name. * * @since 1.0.0 * * @param misc $content Content to filter. * * @return string */ static function get_fallback( $content = null ) { return __CLASS__ . '::fallback'; } //////////////////////////////////////////////////////////// //// Menu construction. //////////////////////////////////////////////////////////// /** * @see Walker::start_lvl() * @since 1.0.0 * * @param string $output Passed by reference. Used to append additional content. * @param int $depth Depth of page. Used for padding. */ public function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat( "\t", $depth ); $output .= "\n$indent'; if ( $container ) { $fb_output .= ''; } $fb_output = apply_filters( 'bahotel_l_nav_menu_fallback_html', $fb_output, $args ); echo wp_kses_post($fb_output); } //////////////////////////////////////////////////////////// //// End of our class. //////////////////////////////////////////////////////////// } ////////////////////////////////////////////////// /** * Call to setup class. */ BAH_L_Nav_Menu::init();