This commit is contained in:
2025-11-29 00:30:50 +01:00
parent 51fcd16332
commit 3a1b34c0df
2 changed files with 86 additions and 25 deletions

View File

@@ -119,16 +119,27 @@ function build_lang_url(string $code, string $path, array $query): string
<div class="flex items-center gap-6">
<!-- Hauptnavigation -->
<?php if (!empty($navAnchors)): ?>
<nav class="flex flex-wrap items-center gap-4 sm:gap-6 text-xs font-medium text-brand-muted uppercase tracking-[0.18em]">
<?php foreach ($navAnchors as $item): ?>
<a href="<?= htmlspecialchars($item['href'] ?? '#') ?>"
class="hover:text-brand-primary transition-colors">
<?= htmlspecialchars($item['label'] ?? '') ?>
</a>
<?php endforeach; ?>
</nav>
<?php endif; ?>
<!-- Hauptnavigation -->
<?php if (!empty($navAnchors)): ?>
<nav class="flex flex-wrap items-center gap-4 sm:gap-6 text-xs font-medium text-brand-muted uppercase tracking-[0.18em]">
<?php foreach ($navAnchors as $item): ?>
<?php
$href = $item['href'] ?? '#';
$label = $item['label'] ?? '';
$i18nKey = $item['i18n'] ?? '';
?>
<a href="<?= htmlspecialchars($href) ?>"
class="hover:text-brand-primary transition-colors"
<?php if ($i18nKey !== ''): ?>
data-i18n="<?= htmlspecialchars($i18nKey) ?>"
<?php endif; ?>
>
<?= htmlspecialchars($label) ?>
</a>
<?php endforeach; ?>
</nav>
<?php endif; ?>
<!-- Language Switcher -->
<div class="relative">