[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_tags/tmpl/tags/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  com_tags
   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  // Note that there are certain parts of this layout used only when there is exactly one tag.
  16  $description      = $this->params->get('all_tags_description');
  17  $descriptionImage = $this->params->get('all_tags_description_image');
  18  ?>
  19  <div class="com-tags tag-category">
  20      <?php if ($this->params->get('show_page_heading')) : ?>
  21          <h1>
  22              <?php echo $this->escape($this->params->get('page_heading')); ?>
  23          </h1>
  24      <?php endif; ?>
  25      <?php if ($this->params->get('all_tags_show_description_image') && !empty($descriptionImage)) : ?>
  26          <div class="com-tags__image">
  27              <?php echo HTMLHelper::_('image', $descriptionImage, empty($this->params->get('all_tags_description_image_alt')) && empty($this->params->get('all_tags_description_image_alt_empty')) ? false : $this->params->get('all_tags_description_image_alt')); ?>
  28          </div>
  29      <?php endif; ?>
  30      <?php if (!empty($description)) : ?>
  31          <div class="com-tags__description">
  32              <?php echo $description; ?>
  33          </div>
  34      <?php endif; ?>
  35      <?php echo $this->loadTemplate('items'); ?>
  36  </div>


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