Footer: Verbände-Zeile einzeilig ('Mitglied in:' + Mittelpunkte), Nav-Unterpunkte flach eingereiht (Matchcenter)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,10 +13,20 @@ $nav = json_load('navigation');
|
|||||||
$socialLabels = ['instagram' => 'Instagram', 'facebook' => 'Facebook', 'youtube' => 'YouTube'];
|
$socialLabels = ['instagram' => 'Instagram', 'facebook' => 'Facebook', 'youtube' => 'YouTube'];
|
||||||
$socialIcons = ['instagram' => 'instagram', 'facebook' => 'facebook', 'youtube' => 'youtube'];
|
$socialIcons = ['instagram' => 'instagram', 'facebook' => 'facebook', 'youtube' => 'youtube'];
|
||||||
|
|
||||||
$footerNav = array_merge(
|
// Hauptnav flach ausrollen (Unterpunkte wie Matchcenter einreihen), Anker-Links raus.
|
||||||
array_filter($nav['main'], static fn (array $item): bool => !str_starts_with($item['slug'], '#')),
|
$footerNav = [];
|
||||||
$nav['ctas'] ?? []
|
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'] ?? []);
|
||||||
?>
|
?>
|
||||||
<footer class="site-footer">
|
<footer class="site-footer">
|
||||||
<div class="container site-footer__grid">
|
<div class="container site-footer__grid">
|
||||||
@@ -70,7 +80,7 @@ $footerNav = array_merge(
|
|||||||
<div class="site-footer__bottom">
|
<div class="site-footer__bottom">
|
||||||
<div class="container site-footer__bottom-inner">
|
<div class="container site-footer__bottom-inner">
|
||||||
<p>© <?= e(date('Y')) ?> <?= e($club['legal_name']) ?></p>
|
<p>© <?= e(date('Y')) ?> <?= e($club['legal_name']) ?></p>
|
||||||
<p>Mitglied im <?= e(implode(', ', $club['memberships'])) ?></p>
|
<p class="site-footer__memberships">Mitglied in: <?= e(implode(' · ', $club['memberships'])) ?></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
Reference in New Issue
Block a user