2022-11-27 19:40:38 +01:00

12 lines
606 B
PHP

<nav class="menu">
<div class="container">
<a class="menu-header" href="<?= $site->uri() ?>"><?= $site->title() ?></a>
<button type="button" class="menu-toggle" data-toggle="main-menu" aria-expanded="false">&#9776;</button>
<div class="menu-list menu-collapse" id="main-menu">
<?php foreach ($site->children()->published()->listed() as $item): ?>
<a class="menu-item<?php if ($item->isCurrent()): ?> active<?php endif; ?>" href="<?= $item->uri() ?>"><?= $item->get('menu', $item->title()) ?></a>
<?php endforeach; ?>
</div>
</div>
</nav>