Exemplo n.º 1
0
	protected function _setBreadcrumb()
	{
		$app          = JFactory::getApplication();
		$pathway      = $app->getPathway();
		$pathwayArray = array();

		$pathwayArray[] = JUDownloadFrontHelperBreadcrumb::getRootPathway();

		$linkTags       = JRoute::_(JUDownloadHelperRoute::getTagsRoute());
		$pathwayArray[] = JUDownloadFrontHelperBreadcrumb::createPathwayItem('tags', $linkTags);

		$linkTag        = JRoute::_(JUDownloadHelperRoute::getTagRoute($this->tag->id));
		$pathwayArray[] = JUDownloadFrontHelperBreadcrumb::createPathwayItem($this->tag->title, $linkTag);

		$pathway->setPathway($pathwayArray);
	}
Exemplo n.º 2
0
						<div
							class="display-number"><?php echo JText::_('COM_JUDOWNLOAD_PAGINATION_DISPLAY'); ?></div>
						<?php 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::_(JUDownloadHelperRoute::getTagRoute($item->id)); ?>">
						<?php echo $item->title; ?><span> (<?php echo $item->total_documents; ?>)</span></a>
				</div>
				<?php
				$key++;
				if (($key % 2) == 0 && $key < count($this->items))
				{
				?>
			</div>
			<div class="row">
				<?php
				} ?>

				<?php
				} ?>
			</div>
Exemplo n.º 3
0
<?php
/**
 * ------------------------------------------------------------------------
 * JUDownload 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::_(JUDownloadHelperRoute::getTagRoute($tag->id));
		$html .= '<li><a href="' . $tagLink . '">' . $tag->title . '</a></li>';
	}
	$html .= "</ul>";

	echo $html;
}
?>