[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_config/tmpl/templates/ -> default_options.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  com_config
   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\Language\Text;
  14  
  15  $fieldSets = $this->form->getFieldsets('params');
  16  ?>
  17  
  18  <legend><?php echo Text::_('COM_CONFIG_TEMPLATE_SETTINGS'); ?></legend>
  19  
  20  <?php
  21  
  22  // Search for com_config field set
  23  if (!empty($fieldSets['com_config'])) {
  24      echo $this->form->renderFieldset('com_config');
  25  } else {
  26      // Fall-back to display all in params
  27      foreach ($fieldSets as $name => $fieldSet) {
  28          $label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_CONFIG_' . $name . '_FIELDSET_LABEL';
  29  
  30          if (isset($fieldSet->description) && trim($fieldSet->description)) {
  31              echo '<p class="tip">' . $this->escape(Text::_($fieldSet->description)) . '</p>';
  32          }
  33  
  34          echo $this->form->renderFieldset($name);
  35      }
  36  }


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