CoreFiles by mySites.guru
default_options.php41 lines, 965 bytes, from Joomla_4.0.0-beta5-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta4
md5
d711492754e131c4ea1f046ffda06cab
sha1
88552c929514c48ade302323a7a9aabba2d33249
sha256
ee7bd0d99c110e74374373321962bdbf76f6610eb3b1a7a3081b957d1fcecde4
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_config
 *
 * @copyright   Copyright (C) 2005 - 2020 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 5 releases, Joomla 4.0.0-beta to 4.0.0-beta5. See them all, or every version of this file.