Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2. $_links = $this->getLinks();
  3. echo '<pre>';
  4. print_r($_links); exit;
  5. $_index = 1;
  6. $_count = count($_links);
  7. foreach ($_links as $_link):
  8. $_last = ($_index++ >= $_count);
  9. if ($this->isActive($_link)):
  10. ?>
  11. <li class="current<?php echo ($_last ? ' last' : '') ?>"><strong><?php echo $_link->getLabel() ?></strong></li>
  12. <?php else: ?>
  13. <li<?php echo ($_last ? ' class="last"' : '') ?>><a href="<?php echo $_link->getUrl() ?>"><?php echo $_link->getLabel() ?></a></li>
  14. <?php endif; endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement