<?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 $title = $this->escape($displayData['item']->category_title); ?>
	<?php if ($displayData['params']->get('link_category') && !empty($displayData['item']->catid)) : ?>
		<?php echo '<span data-uk-tooltip title="' . Text::sprintf('COM_CONTENT_CATEGORY', '') . '"><i class="fa fa-folder-open-o"></i><a href="' . Route::_(RouteHelper::getCategoryRoute($displayData['item']->catid, $displayData['item']->category_language)) . '" itemprop="genre">' . $title . '</a></span>'; ?>
	<?php else : ?>
		<?php echo '<span itemprop="genre" data-uk-tooltip title="' . Text::sprintf('COM_CONTENT_CATEGORY', '') . '"><i class="fa fa-folder-open-o"></i>' . $title . '</span>'; ?>
	<?php endif; ?>
</dd>
