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 .= ''; } - - } - - - - }