<?php
/**
* @package Joomla.Plugin
* @subpackage Content.Showtags
*
* @author Roberto Segura <
[email protected]>
* @copyright (c) 2012 Roberto Segura. All Rights Reserved.
* @license GNU/GPL 2, http://www.gnu.org/licenses/gpl-2.0.htm
*/
defined('_JEXEC') or die;
?>
<?php if($this->_tags): ?>
<<?php echo $parentContainer; ?> class="content-showtags <?php echo $customCss; ?>">
<ul>
<span><?php echo "<img src=/images/blue-tag.png>"; ?></span>
<?php foreach ($this->_tags as $tag): ?>
<?php
// Clear tag empty spaces
$tag = trim($tag);
// Generate the url
if ($taxonomyActive)
{
$url = 'index.php?option=com_taxonomy&tag=' . $tag;
}
else
{
$url = 'index.php?option=com_search&searchword=' . $tag . '&ordering=&searchphrase=all';
}
// Force Itemid?
if ($menulink)
{
$url .= "&Itemid=" . $menulink;
}
// Build the route
$url = JRoute::_(JFilterOutput::ampReplace($url));
?>
<li>
<a href="<?php echo $url; ?>" ><?php echo $tag; ?></a>
</li>
<?php endforeach; ?>
</ul>
</<?php echo $parentContainer; ?>>
<?php endif; ?>