develop #63

Merged
chris merged 14 commits from develop into main 2022-04-23 21:10:16 +02:00
1 changed files with 11 additions and 11 deletions
Showing only changes of commit 9d3976c1cb - Show all commits

View File

@ -39,10 +39,10 @@ if ($wordpress_endpoint) {
} }
} }
} }
//print_r($items); //print_r($items);
function render_menu($items, $level_id) { if (!function_exists('render_menu')) {
function render_menu($items, $level_id) {
echo '<ul>' . PHP_EOL; echo '<ul>' . PHP_EOL;
foreach ($items[$level_id] as $menu_item) { foreach ($items[$level_id] as $menu_item) {
echo '<li>' . PHP_EOL; echo '<li>' . PHP_EOL;
@ -53,8 +53,8 @@ function render_menu($items, $level_id) {
echo '</li>' . PHP_EOL; echo '</li>' . PHP_EOL;
} }
echo '</ul>' . PHP_EOL; echo '</ul>' . PHP_EOL;
}
} }
if (count($items[0]) > 0) { if (count($items[0]) > 0) {
render_menu($items, 0); render_menu($items, 0);
} }