Initial commit
This commit is contained in:
commit
65e0da7e11
1397 changed files with 596542 additions and 0 deletions
11
site/snippets/treemenu.php
Normal file
11
site/snippets/treemenu.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php if(!isset($subpages)) $subpages = page('press')->children() ?>
|
||||
<ul>
|
||||
<?php foreach($subpages->published() AS $p): ?>
|
||||
<li class="depth-<?= $p->depth() ?>">
|
||||
<a class="link-hover white<?php e($p->isActive(), ' active') ?>" href="<?= $p->url() ?>"><?= $p->title()->html() ?></a>
|
||||
<?php if($p->hasChildren()): ?>
|
||||
<?php snippet('treemenu', array('subpages' => $p->children())) ?>
|
||||
<?php endif ?>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
Loading…
Add table
Add a link
Reference in a new issue