CoreFiles by mySites.guru
default_options.php41 lines, 965 bytes, from Joomla_4.0.0-alpha7-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha6
md5
620dbb7bbfa1d736308b62b7a282bef9
sha1
7fd4e0229d60cdbb3545cbc2c16e89b22466328b
sha256
9b50f9f9e5920080b3a9f56a47b8b4c84e899588fd6ade369b3780e7f31816a3
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_config
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;

$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 6 releases, Joomla 4.0.0-alpha7 to 4.0.0-alpha12. See them all, or every version of this file.