[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/layouts/joomla/content/ -> categories_default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  Layout
   6   *
   7   * @copyright   (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  defined('_JEXEC') or die;
  12  
  13  use Joomla\CMS\HTML\HTMLHelper;
  14  
  15  ?>
  16  <?php if ($displayData->params->get('show_page_heading')) : ?>
  17  <h1>
  18      <?php echo $displayData->escape($displayData->params->get('page_heading')); ?>
  19  </h1>
  20  <?php endif; ?>
  21  
  22  <?php if ($displayData->params->get('show_base_description')) : ?>
  23      <?php // If there is a description in the menu parameters use that; ?>
  24      <?php if ($displayData->params->get('categories_description')) : ?>
  25          <div class="category-desc base-desc">
  26              <?php echo HTMLHelper::_('content.prepare', $displayData->params->get('categories_description'), '', $displayData->get('extension') . '.categories'); ?>
  27          </div>
  28      <?php else : ?>
  29          <?php // Otherwise get one from the database if it exists. ?>
  30          <?php if ($displayData->parent->description) : ?>
  31              <div class="category-desc base-desc">
  32                  <?php echo HTMLHelper::_('content.prepare', $displayData->parent->description, '', $displayData->parent->extension . '.categories'); ?>
  33              </div>
  34          <?php endif; ?>
  35      <?php endif; ?>
  36  <?php endif; ?>


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer