'; } function end_lvl(&$output, $depth = 0, $args = null) { $output .= '
'; } function end_el(&$output, $item, $depth = 0, $args = \null) { $classes = collect($item->classes); if (0 === $depth) { $output .= ''; } } function start_el(&$output, $item, $depth = 0, $args = [], $id = 0) { $classes = collect($item->classes); $needs_login = $classes->contains('loggedin')&&!is_user_logged_in(); if ($args->walker->has_children) { $output .= '
'; $output .= '"; } elseif ($item->url && $item->url != '#') { $output .= ''; } else { $output .= ''; } } }