joomla_test/modules/mod_k2_tools/tmpl/breadcrumbs.php

44 lines
1.3 KiB
PHP
Raw Normal View History

2020-01-02 22:20:31 +07:00
<?php
/**
* @version $Id: breadcrumbs.php 1812 2013-01-14 18:45:06Z lefteris.kavadas $
* @package K2
* @author JoomlaWorks http://www.joomlaworks.net
* @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
*/
// no direct access
defined('_JEXEC') or die;
?>
<div id="k2ModuleBox<?php echo $module->id; ?>" class="k2BreadcrumbsBlock<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>">
<?php
$output = '';
if ($params->get('home')) {
$output .= '<span class="bcTitle">'.JText::_('K2_YOU_ARE_HERE').'</span>';
$output .= '<a href="'.JURI::root().'">'.$params->get('home',JText::_('K2_HOME')).'</a>';
if (count($path)) {
foreach ($path as $link) {
$output .= '<span class="bcSeparator">'.$params->get('seperator','&raquo;').'</span>'.$link;
}
}
if($title){
$output .= '<span class="bcSeparator">'.$params->get('seperator','&raquo;').'</span>'.$title;
}
} else {
if($title){
$output .= '<span class="bcTitle">'.JText::_('K2_YOU_ARE_HERE').'</span>';
}
if (count($path)) {
foreach ($path as $link) {
$output .= $link.'<span class="bcSeparator">'.$params->get('seperator','&raquo;').'</span>';
}
}
$output .= $title;
}
echo $output;
?>
</div>