Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $_links = $this->getLinks();
- echo '<pre>';
- print_r($_links); exit;
- $_index = 1;
- $_count = count($_links);
- foreach ($_links as $_link):
- $_last = ($_index++ >= $_count);
- if ($this->isActive($_link)):
- ?>
- <li class="current<?php echo ($_last ? ' last' : '') ?>"><strong><?php echo $_link->getLabel() ?></strong></li>
- <?php else: ?>
- <li<?php echo ($_last ? ' class="last"' : '') ?>><a href="<?php echo $_link->getUrl() ?>"><?php echo $_link->getLabel() ?></a></li>
- <?php endif; endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement