REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 3.80 KB
Close
/home/jambtst2015/public_html/ida.com.ng/layouts/joomla/content/category_default.php
Text
Base64
<?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\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; ?> <div> <div class="<?php echo $className . '-category' . $displayData->pageclass_sfx; ?>"> <?php if ($params->get('show_page_heading')) : ?> <h1> <?php echo $displayData->escape($params->get('page_heading')); ?> </h1> <?php endif; ?> <?php if ($params->get('show_category_title', 1)) : ?> <<?php echo $htag; ?>> <?php echo HTMLHelper::_('content.prepare', $category->title, '', $extension . '.category.title'); ?> </<?php echo $htag; ?>> <?php endif; ?> <?php echo $afterDisplayTitle; ?> <?php if ($params->get('show_cat_tags', 1)) : ?> <?php echo LayoutHelper::render('joomla.content.tags', $tagsData); ?> <?php endif; ?> <?php if ($beforeDisplayContent || $afterDisplayContent || $params->get('show_description', 1) || $params->def('show_description_image', 1)) : ?> <div class="category-desc"> <?php if ($params->get('show_description_image') && $category->getParams()->get('image')) : ?> <?php $alt = empty($category->getParams()->get('image_alt')) && empty($category->getParams()->get('image_alt_empty')) ? '' : 'alt="' . htmlspecialchars($category->getParams()->get('image_alt'), ENT_COMPAT, 'UTF-8') . '"'; ?> <img src="<?php echo $category->getParams()->get('image'); ?>" <?php echo $alt; ?>> <?php endif; ?> <?php echo $beforeDisplayContent; ?> <?php if ($params->get('show_description') && $category->description) : ?> <?php echo HTMLHelper::_('content.prepare', $category->description, '', $extension . '.category.description'); ?> <?php endif; ?> <?php echo $afterDisplayContent; ?> </div> <?php endif; ?> <?php echo $displayData->loadTemplate($displayData->subtemplatename); ?> <?php if ($displayData->maxLevel != 0 && $displayData->get('children')) : ?> <div class="cat-children"> <?php if ($params->get('show_category_heading_title_text', 1) == 1) : ?> <h3> <?php echo Text::_('JGLOBAL_SUBCATEGORIES'); ?> </h3> <?php endif; ?> <?php echo $displayData->loadTemplate('children'); ?> </div> <?php endif; ?> </div> </div>
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 16
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
icons
DIR
-
drwxr-xr-x
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
info_block
DIR
-
drwxr-xr-x
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
associations.php
648 B
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
blog_style_default_item_title.php
1.76 KB
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
categories_default.php
1.22 KB
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
categories_default_items.php
683 B
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
category_default.php
3.80 KB
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
emptystate.php
2.31 KB
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
emptystate_module.php
1.12 KB
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
full_image.php
1.55 KB
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
icons.php
600 B
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
info_block.php
2.18 KB
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
intro_image.php
2.19 KB
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
language.php
763 B
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
options_default.php
1.61 KB
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
readmore.php
2.19 KB
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
tags.php
1.12 KB
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
text_filters.php
1.56 KB
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).