Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 17 lines (14 sloc) 0.466 kb
274951e @bastianallgeier the first set of snippets
authored
1 <?php
2
3 // find the open/active page on the first level
4 $open = $pages->findOpen();
5 $items = ($open) ? $open->children()->visible() : false;
6
7 ?>
8 <?php if($items && $items->count()): ?>
9 <nav class="submenu">
10 <ul>
11 <?php foreach($items AS $item): ?>
12 <li><a<?php echo ($item->isOpen()) ? ' class="active"' : '' ?> href="<?php echo $item->url() ?>"><?php echo html($item->title()) ?></a></li>
13 <?php endforeach ?>
14 </ul>
15 </nav>
16 <?php endif ?>
Something went wrong with that request. Please try again.