CoreFiles by mySites.guru
default_options.php37 lines, 1,066 bytes, from Joomla_5.2.0-Stable-Full_Package.zip
Raw History Compare with 5.1.4
md5
39b77880dbb6a63c10c5c979ce776165
sha1
faa00c9bc4d6060917842e03075a6a006fa89648
sha256
67c70d267ce7385b5d9a8b0abe384e189891dbfaccea6266197b9941625834a6
<?php

/**
 * @package     Joomla.Site
 * @subpackage  com_config
 *
 * @copyright   (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;

/** @var \Joomla\Component\Config\Site\View\Templates\HtmlView $this */
$fieldSets = $this->form->getFieldsets('params');
?>

<legend><?php echo Text::_('COM_CONFIG_TEMPLATE_SETTINGS'); ?></legend>

<?php

// Search for com_config field set
if (!empty($fieldSets['com_config'])) {
    echo $this->form->renderFieldset('com_config');
} else {
    // Fall-back to display all in params
    foreach ($fieldSets as $name => $fieldSet) {
        $label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_CONFIG_' . $name . '_FIELDSET_LABEL';

        if (isset($fieldSet->description) && trim($fieldSet->description)) {
            echo '<p class="tip">' . $this->escape(Text::_($fieldSet->description)) . '</p>';
        }

        echo $this->form->renderFieldset($name);
    }
}

The same content is in 120 releases, Joomla 5.2.0-alpha1 to 6.3.0-alpha1. See them all, or every version of this file.