Location: PHPKode > projects > Kirby CMS > bastianallgeier-kirbycms-aa68a2c/site/snippets/menu.php
<nav class="menu">
  <ul>
    <?php foreach($pages->visible() AS $p): ?>
    <li><a<?php echo ($p->isOpen()) ? ' class="active"' : '' ?> href="<?php echo $p->url() ?>"><?php echo html($p->title()) ?></a></li>
    <?php endforeach ?>
  </ul>
</nav>
Return current item: Kirby CMS