From 72c2efaf800929a08ae5a85f25cf91d1d897aee2 Mon Sep 17 00:00:00 2001 From: Felix Schneider Date: Thu, 11 Jun 2026 22:11:57 +0200 Subject: [PATCH] =?UTF-8?q?Footer:=20Verb=C3=A4nde-Zeile=20einzeilig=20('M?= =?UTF-8?q?itglied=20in:'=20+=20Mittelpunkte),=20Nav-Unterpunkte=20flach?= =?UTF-8?q?=20eingereiht=20(Matchcenter)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- app/components/footer.php | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/app/components/footer.php b/app/components/footer.php index 437c04d..5b2afd9 100644 --- a/app/components/footer.php +++ b/app/components/footer.php @@ -13,10 +13,20 @@ $nav = json_load('navigation'); $socialLabels = ['instagram' => 'Instagram', 'facebook' => 'Facebook', 'youtube' => 'YouTube']; $socialIcons = ['instagram' => 'instagram', 'facebook' => 'facebook', 'youtube' => 'youtube']; -$footerNav = array_merge( - array_filter($nav['main'], static fn (array $item): bool => !str_starts_with($item['slug'], '#')), - $nav['ctas'] ?? [] -); +// Hauptnav flach ausrollen (Unterpunkte wie Matchcenter einreihen), Anker-Links raus. +$footerNav = []; +foreach ($nav['main'] as $item) { + if (str_starts_with($item['slug'], '#')) { + continue; + } + $footerNav[] = ['label' => $item['label'], 'slug' => $item['slug']]; + foreach ($item['children'] ?? [] as $child) { + if ($child['slug'] !== $item['slug']) { // „Übersicht“ dupliziert nur den Eltern-Slug + $footerNav[] = $child; + } + } +} +$footerNav = array_merge($footerNav, $nav['ctas'] ?? []); ?>