first commit

This commit is contained in:
2025-06-17 11:53:18 +02:00
commit 9f0f7ba12b
8804 changed files with 1369176 additions and 0 deletions

View File

@ -0,0 +1,61 @@
<?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\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
$user = $this->getCurrentUser();
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('keepalive')
->useScript('form.validate')
->useScript('com_config.templates');
?>
<?php if ($this->params->get('show_page_heading')) : ?>
<div class="page-header">
<h1>
<?php if ($this->escape($this->params->get('page_heading'))) : ?>
<?php echo $this->escape($this->params->get('page_heading')); ?>
<?php else : ?>
<?php echo $this->escape($this->params->get('page_title')); ?>
<?php endif; ?>
</h1>
</div>
<?php endif; ?>
<form action="<?php echo Route::_('index.php?option=com_config'); ?>" method="post" name="adminForm" id="templates-form" class="form-validate">
<div id="page-site" class="tab-pane active">
<div class="row">
<div class="col-md-12">
<?php echo $this->loadTemplate('options'); ?>
</div>
</div>
</div>
<input type="hidden" name="task" value="">
<?php echo HTMLHelper::_('form.token'); ?>
<div class="mb-2">
<button type="button" class="btn btn-primary " data-submit-task="templates.apply">
<span class="icon-check text-white" aria-hidden="true"></span>
<?php echo Text::_('JSAVE') ?>
</button>
<button type="button" class="btn btn-danger" data-submit-task="templates.cancel">
<span class="icon-times text-white" aria-hidden="true"></span>
<?php echo Text::_('JCANCEL') ?>
</button>
</div>
</form>

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<layout title="COM_CONFIG_TEMPLATES_VIEW_DEFAULT_TITLE" option="COM_CONFIG_TEMPLATES_VIEW_DEFAULT_OPTION">
<help
key = "Menu_Item:_Display_Template_Options"
/>
<message>
<![CDATA[COM_CONFIG_TEMPLATES_VIEW_DEFAULT_DESC]]>
</message>
</layout>
<fields name="request">
<fieldset name="request" >
<field
name="controller"
type="hidden"
default=""
/>
</fieldset>
</fields>
</metadata>

View File

@ -0,0 +1,36 @@
<?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;
$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);
}
}