Files
tsv08kulmbach-website/app/components/header.php

26 lines
806 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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">
</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>