Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $i=1; foreach($this->find('/')->children() as $menu): ?><?php $i++; ?>
- <li<?php echo in_array($menu->slug, explode('/', $this->url)) ? ' class="current-tab"': null; ?>><?php echo $menu->link($menu->title.' ['.$i.']', ' accesskey="'.$i.'"'); ?></li>
- <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement