first commit
This commit is contained in:
31
layouts/joomla/content/info_block/category.php
Normal file
31
layouts/joomla/content/info_block/category.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Layout
|
||||
*
|
||||
* @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\Component\Content\Site\Helper\RouteHelper;
|
||||
|
||||
?>
|
||||
<dd class="category-name">
|
||||
<?php echo LayoutHelper::render('joomla.icon.iconclass', ['icon' => 'icon-folder-open icon-fw']); ?>
|
||||
<?php $title = $this->escape($displayData['item']->category_title); ?>
|
||||
<?php if ($displayData['params']->get('link_category') && !empty($displayData['item']->catid)) : ?>
|
||||
<?php $url = '<a href="' . Route::_(
|
||||
RouteHelper::getCategoryRoute($displayData['item']->catid, $displayData['item']->category_language)
|
||||
)
|
||||
. '">' . $title . '</a>'; ?>
|
||||
<?php echo Text::sprintf('COM_CONTENT_CATEGORY', $url); ?>
|
||||
<?php else : ?>
|
||||
<?php echo Text::sprintf('COM_CONTENT_CATEGORY', '<span>' . $title . '</span>'); ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
Reference in New Issue
Block a user