[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_contact/tmpl/categories/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  com_contact
   6   *
   7   * @copyright   (C) 2008 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\Language\Text;
  14  use Joomla\CMS\Layout\LayoutHelper;
  15  
  16  // Add strings for translations in Javascript.
  17  Text::script('JGLOBAL_EXPAND_CATEGORIES');
  18  Text::script('JGLOBAL_COLLAPSE_CATEGORIES');
  19  
  20  /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
  21  $wa = $this->document->getWebAssetManager();
  22  $wa->getRegistry()->addExtensionRegistryFile('com_categories');
  23  $wa->useScript('com_categories.shared-categories-accordion');
  24  
  25  ?>
  26  <div class="com-contact-categories categories-list">
  27      <?php
  28          echo LayoutHelper::render('joomla.content.categories_default', $this);
  29          echo $this->loadTemplate('items');
  30      ?>
  31  </div>


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