Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "Wolf" Layout code extract
- <!-- THIS CONDITIONAL NAVIGATION COULD GO INTO A SNIPPET / START -->
- <?php if ($this->level() > 0) { $parent = reset(explode('/', CURRENT_URI)); $topPage = $this->find($parent); } ?>
- <?php if(isset($topPage) && $topPage != '' && $topPage != null) : ?>
- <?php if ($this->level() > 0) : ?>
- <?php if (count($topPage->children()) > 0 && $topPage->slug() != 'articles') : ?>
- <h2><?php echo $topPage->title(); ?> Menu</h2>
- <ul>
- <?php foreach ($topPage->children() as $subPage): ?>
- <li><?php echo $subPage->link($subPage->title, (url_start_with($subPage->url) ? ' class="current"': null)); ?></li>
- <?php endforeach; ?>
- </ul>
- <?php endif; ?>
- <?php endif; ?>
- <?php endif; ?>
- <!-- CONDITIONAL NAVIGATION / END -->
Add Comment
Please, Sign In to add comment