<?php

declare(strict_types=1);

/**
 * Seitenkopf mit Logo und Navigation. Props: $current (Slug).
 */
$club = json_load('club');
$nav = json_load('navigation');
?>
    <header class="site-header">
        <div class="container site-header__inner">
            <a class="site-header__brand" href="<?= e(url()) ?>" aria-label="<?= e($club['name']) ?>, Startseite">
                <img class="site-header__logo" src="<?= e(asset('img/logo.svg')) ?>" alt="" width="75" height="97">
                <span class="site-header__name" aria-hidden="true"><?= e($club['name']) ?></span>
            </a>
<?php component('nav', ['current' => $current]); ?>
<?php if (!empty($nav['ctas'])): ?>
            <div class="site-header__actions">
<?php foreach ($nav['ctas'] as $cta): ?>
<?php component('cta', ['cta' => $cta]); ?>
<?php endforeach; ?>
            </div>
<?php endif; ?>
        </div>
    </header>
