PageRenderTime 47ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/mod_breadcrumbs/tmpl/default.php

https://github.com/joebushi/joomla
PHP | 28 lines | 17 code | 2 blank | 9 comment | 6 complexity | e26f784db45640b257c87e5baed8b29d MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
  1. <?php
  2. /**
  3. * @version $Id$
  4. * @package Joomla.Site
  5. * @subpackage mod_breadcrumbs
  6. * @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
  7. * @license GNU General Public License version 2 or later; see LICENSE.txt
  8. */
  9. // no direct access
  10. defined('_JEXEC') or die;
  11. ?>
  12. <span class="breadcrumbs<?php echo $params->get('moduleclass_sfx'); ?> pathway">
  13. <?php for ($i = 0; $i < $count; $i ++) :
  14. // If not the last item in the breadcrumbs add the separator
  15. if ($i < $count -1) {
  16. if (!empty($list[$i]->link)) {
  17. echo '<a href="'.$list[$i]->link.'" class="pathway">'.$list[$i]->name.'</a>';
  18. } else {
  19. echo $list[$i]->name;
  20. }
  21. echo ' '.$separator.' ';
  22. } else if ($params->get('showLast', 1)) { // when $i == $count -1 and 'showLast' is true
  23. echo $list[$i]->name;
  24. }
  25. endfor; ?>
  26. </span>