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