From 8c50bbff43946ac1c94215831c6bb1aa38636588 Mon Sep 17 00:00:00 2001 From: sephger Date: Tue, 11 Jun 2024 11:17:57 +0200 Subject: [PATCH] Login Button --- theme/wowpress/Frontend/NavWalker.php | 84 ++++++++++++++++----------- 1 file changed, 51 insertions(+), 33 deletions(-) diff --git a/theme/wowpress/Frontend/NavWalker.php b/theme/wowpress/Frontend/NavWalker.php index 2a4b4fa..bda96a2 100644 --- a/theme/wowpress/Frontend/NavWalker.php +++ b/theme/wowpress/Frontend/NavWalker.php @@ -1,80 +1,98 @@
'; - } - function end_lvl(&$output, $depth= 0, $args=null) { + } + function end_lvl(&$output, $depth = 0, $args = null) + { - - $output .= '
'; - } - function end_el(&$output, $item, $depth = 0, $args = \null) - { + $output .= ''; + } + + function end_el(&$output, $item, $depth = 0, $args = \null) + { if (0 === $depth) { - $output .= ''; + $output .= ''; } - } + } function start_el(&$output, $item, $depth = 0, $args = [], $id = 0) { - - if($args->walker->has_children){ + + if ($args->walker->has_children) { $output .= '
'; $output .= '"; - - } - elseif ($item->url && $item->url != '#') { + if ($args->walker->has_children) { + $output .= ""; + } elseif ($item->url && $item->url != '#') { $output .= ''; } else { $output .= ''; } - - } - - - - }