Add customisable footer menu
All checks were successful
Deploy / deploy (push) Successful in 4s

This commit is contained in:
Marcel Kapfer 2024-10-07 17:45:31 +02:00
parent 03ff4fc0f6
commit 0de1f74f75
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09
4 changed files with 18 additions and 7 deletions

View file

@ -21,6 +21,10 @@ columns:
options:
- page
- url
footerMenu:
type: pages
label: Footer Menu
sidebar:
width: 1/3
sections:

View file

@ -62,7 +62,9 @@
<footer>
<p><?= date('Y') ?> © <?= $site->author() ?></p>
<p>
<a href="<?= page('imprint')->url() ?>">Impressum und Datenschutz</a>
<?php foreach ($site->footerMenu()->toPages() as $item): ?>
<a href="<?= $item->url() ?>"><?= $item->title() ?></a>
<?php endforeach ?>
</p>
</footer>
</body>