mirror of
https://github.com/Huber1/skigemeinschaft.git
synced 2026-05-13 12:27:34 +02:00
49 lines
1.6 KiB
PHP
49 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* @var Site $site
|
|
*/
|
|
|
|
use Kirby\Panel\Site;
|
|
|
|
?>
|
|
</main>
|
|
</div>
|
|
|
|
<footer class="bg-primary py-4 text-white text-sm">
|
|
<div class="max-w-7xl m-auto px-4 flex flex-col items-center">
|
|
<div class="text-center prose max-w-none text-inherit text-sm">
|
|
<?= $site->footertext() ?>
|
|
</div>
|
|
<!-- Partner -->
|
|
<h3 class="mt-8 text-lg font-medium text-white">Unsere Partner</h3>
|
|
<div class="mt-6 w-full md:w-2/3 lg:w-1/2 flex flex-wrap items-center justify-center gap-4">
|
|
<?php foreach ($site->sponsors()->toStructure() as $sponsor): ?>
|
|
<?php if ($sponsor->link()->toUrl() != null): ?>
|
|
<a href="<?= $sponsor->link()->toUrl() ?>">
|
|
<img class="h-10 w-auto max-w-[8rem] max-h-12 object-contain object-center"
|
|
src="<?= $sponsor->logo()->toFile()->url() ?>" alt="<?= $sponsor->name() ?>">
|
|
</a>
|
|
<?php else: ?>
|
|
<img class="h-10 w-auto max-w-[8rem] max-h-12 object-contain object-center"
|
|
src="<?= $sponsor->logo()->toFile()->url() ?>" alt="<?= $sponsor->name() ?>">
|
|
<?php endif ?>
|
|
<?php endforeach ?>
|
|
</div>
|
|
<div class="mt-4">
|
|
<?php foreach ($site->footerlinks()->toStructure() as $i => $link): ?>
|
|
<a class="font-medium" href="<?= $link->url()->toUrl() ?>"><?= $link->label() ?></a>
|
|
<?php if ($i < $site->footerlinks()->toStructure()->count() - 1): ?>
|
|
<span class="mx-2">/</span>
|
|
<?php endif ?>
|
|
<?php endforeach ?>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<?= js([
|
|
'assets/js/index.js',
|
|
'@auto'
|
|
]) ?>
|
|
|
|
</body>
|
|
</html>
|