* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\LayoutHelper; /** * Note that this layout opens a div with the page class suffix. If you do not use the category children * layout you need to close this div either by overriding this file or in your main layout. */ $params = $displayData->params; $category = $displayData->get('category'); $extension = $category->extension; $canEdit = $params->get('access-edit'); $className = substr($extension, 4); $htag = $params->get('show_page_heading') ? 'h2' : 'h1'; $app = Factory::getApplication(); $category->text = $category->description; $app->triggerEvent('onContentPrepare', array($extension . '.categories', &$category, &$params, 0)); $category->description = $category->text; $results = $app->triggerEvent('onContentAfterTitle', array($extension . '.categories', &$category, &$params, 0)); $afterDisplayTitle = trim(implode("\n", $results)); $results = $app->triggerEvent('onContentBeforeDisplay', array($extension . '.categories', &$category, &$params, 0)); $beforeDisplayContent = trim(implode("\n", $results)); $results = $app->triggerEvent('onContentAfterDisplay', array($extension . '.categories', &$category, &$params, 0)); $afterDisplayContent = trim(implode("\n", $results)); /** * This will work for the core components but not necessarily for other components * that may have different pluralisation rules. */ if (substr($className, -1) === 's') { $className = rtrim($className, 's'); } $tagsData = $category->tags->itemTags; ?>
get('show_page_heading')) : ?>

escape($params->get('page_heading')); ?>

get('show_category_title', 1)) : ?> <> title, '', $extension . '.category.title'); ?> > get('show_cat_tags', 1)) : ?> get('show_description', 1) || $params->def('show_description_image', 1)) : ?>
get('show_description_image') && $category->getParams()->get('image')) : ?> $category->getParams()->get('image'), 'alt' => empty($category->getParams()->get('image_alt')) && empty($category->getParams()->get('image_alt_empty')) ? false : $category->getParams()->get('image_alt'), ] ); ?> get('show_description') && $category->description) : ?> description, '', $extension . '.category.description'); ?>
loadTemplate($displayData->subtemplatename); ?> maxLevel != 0 && $displayData->get('children')) : ?>
get('show_category_heading_title_text', 1) == 1) : ?>

loadTemplate('children'); ?>