<?php /** * ------------------------------------------------------------------------ * JUDirectory for Joomla 2.5, 3.x * ------------------------------------------------------------------------ * * @copyright Copyright (C) 2010-2015 JoomUltra Co., Ltd. All Rights Reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @author JoomUltra Co., Ltd * @website http://www.joomultra.com * @----------------------------------------------------------------------@ */ // No direct access to this file defined('_JEXEC') or die('Restricted access'); if ($value) { $html = "<ul " . $this->getAttribute(null, null, "output") . ">"; foreach ($value as $tag) { $tagLink = JRoute::_(JUDirectoryHelperRoute::getTagRoute($tag->id)); $html .= '<li><a href="' . $tagLink . '">' . $tag->title . '</a></li>'; } $html .= "</ul>"; echo $html; }
echo $this->pagination->getLimitBox(); ?> </div> </div> </div> </div> <div class="container-fluid"> <div class="row"> <?php foreach ($this->items as $key => $item) { ?> <div class="col-md-6"> <i class="fa fa-tag"></i> <a href="<?php echo JRoute::_(JUDirectoryHelperRoute::getTagRoute($item->id)); ?> "> <?php echo $item->title; ?> <span> (<?php echo $item->total_listings; ?> )</span></a> </div> <?php $key++; if ($key % 2 == 0 && $key < count($this->items)) { ?> </div>
protected function _setBreadcrumb() { $app = JFactory::getApplication(); $pathway = $app->getPathway(); $pathwayArray = array(); $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::getRootPathway(); $linkTags = JRoute::_(JUDirectoryHelperRoute::getTagsRoute()); $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::createPathwayItem('tags', $linkTags); $linkTag = JRoute::_(JUDirectoryHelperRoute::getTagRoute($this->tag->id)); $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::createPathwayItem($this->tag->title, $linkTag); $pathway->setPathway($pathwayArray); }