[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/layouts/joomla/content/ -> categories_default_items.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  $class     = ' class="first"';
  14  
  15  $item      = $displayData->item;
  16  $items     = $displayData->get('items');
  17  $params    = $displayData->params;
  18  $extension = $displayData->get('extension');
  19  $className = substr($extension, 4);
  20  
  21  // This will work for the core components but not necessarily for other components
  22  // that may have different pluralisation rules.
  23  if (substr($className, -1) === 's') {
  24      $className = rtrim($className, 's');
  25  }


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