first commit
This commit is contained in:
@ -0,0 +1,82 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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;
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->document->getWebAssetManager();
|
||||
$wa->useScript('keepalive')
|
||||
->useScript('form.validate');
|
||||
|
||||
// Load JS message titles
|
||||
Text::script('ERROR');
|
||||
Text::script('WARNING');
|
||||
Text::script('NOTICE');
|
||||
Text::script('MESSAGE');
|
||||
?>
|
||||
|
||||
<form action="<?php echo Route::_('index.php?option=com_config'); ?>" id="application-form" method="post" name="adminForm" class="main-card form-validate">
|
||||
<div class="row main-card-columns">
|
||||
<div id="sidebar" class="col-md-3">
|
||||
<button class="btn btn-sm btn-secondary my-2 options-menu d-md-none" type="button" data-bs-toggle="collapse" data-bs-target=".sidebar-nav" aria-controls="sidebar-nav" aria-expanded="false" aria-label="<?php echo Text::_('JTOGGLE_SIDEBAR_MENU'); ?>">
|
||||
<span class="icon-align-justify" aria-hidden="true"></span>
|
||||
<?php echo Text::_('JTOGGLE_SIDEBAR_MENU'); ?>
|
||||
</button>
|
||||
<div id="sidebar-nav" class="sidebar-nav">
|
||||
<?php echo $this->loadTemplate('navigation'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<?php echo HTMLHelper::_('uitab.startTabSet', 'configTabs', ['active' => 'page-site', 'recall' => true, 'breakpoint' => 768]); ?>
|
||||
<?php echo HTMLHelper::_('uitab.addTab', 'configTabs', 'page-site', Text::_('JSITE')); ?>
|
||||
<?php echo $this->loadTemplate('site'); ?>
|
||||
<?php echo $this->loadTemplate('metadata'); ?>
|
||||
<?php echo $this->loadTemplate('seo'); ?>
|
||||
<?php echo $this->loadTemplate('cookie'); ?>
|
||||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
|
||||
<?php echo HTMLHelper::_('uitab.addTab', 'configTabs', 'page-system', Text::_('COM_CONFIG_SYSTEM')); ?>
|
||||
<?php echo $this->loadTemplate('debug'); ?>
|
||||
<?php echo $this->loadTemplate('cache'); ?>
|
||||
<?php echo $this->loadTemplate('session'); ?>
|
||||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
|
||||
<?php echo HTMLHelper::_('uitab.addTab', 'configTabs', 'page-server', Text::_('COM_CONFIG_SERVER')); ?>
|
||||
<?php echo $this->loadTemplate('server'); ?>
|
||||
<?php echo $this->loadTemplate('locale'); ?>
|
||||
<?php echo $this->loadTemplate('webservices'); ?>
|
||||
<?php echo $this->loadTemplate('proxy'); ?>
|
||||
<?php echo $this->loadTemplate('database'); ?>
|
||||
<?php echo $this->loadTemplate('mail'); ?>
|
||||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
|
||||
<?php echo HTMLHelper::_('uitab.addTab', 'configTabs', 'page-logging', Text::_('COM_CONFIG_LOGGING')); ?>
|
||||
<?php echo $this->loadTemplate('logging'); ?>
|
||||
<?php echo $this->loadTemplate('logging_custom'); ?>
|
||||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
|
||||
<?php echo HTMLHelper::_('uitab.addTab', 'configTabs', 'page-filters', Text::_('COM_CONFIG_TEXT_FILTERS')); ?>
|
||||
<?php echo $this->loadTemplate('filters'); ?>
|
||||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
|
||||
<?php echo HTMLHelper::_('uitab.addTab', 'configTabs', 'page-permissions', Text::_('COM_CONFIG_PERMISSIONS')); ?>
|
||||
<?php echo $this->loadTemplate('permissions'); ?>
|
||||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
<?php echo HTMLHelper::_('uitab.endTabSet'); ?>
|
||||
|
||||
<input type="hidden" name="task" value="">
|
||||
<?php echo HTMLHelper::_('form.token'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<layout title="COM_CONFIG_CONFIG_VIEW_DEFAULT_TITLE">
|
||||
<message>
|
||||
<![CDATA[COM_CONFIG_CONFIG_VIEW_DEFAULT_DESC]]>
|
||||
</message>
|
||||
</layout>
|
||||
</metadata>
|
||||
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$this->name = Text::_('COM_CONFIG_CACHE_SETTINGS');
|
||||
$this->fieldsname = 'cache';
|
||||
$this->formclass = 'options-form';
|
||||
|
||||
echo LayoutHelper::render('joomla.content.options_default', $this);
|
||||
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$this->name = Text::_('COM_CONFIG_COOKIE_SETTINGS');
|
||||
$this->fieldsname = 'cookie';
|
||||
$this->formclass = 'options-form';
|
||||
|
||||
echo LayoutHelper::render('joomla.content.options_default', $this);
|
||||
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$this->name = Text::_('COM_CONFIG_DATABASE_SETTINGS');
|
||||
$this->fieldsname = 'database';
|
||||
$this->formclass = 'options-form';
|
||||
|
||||
echo LayoutHelper::render('joomla.content.options_default', $this);
|
||||
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$this->name = Text::_('COM_CONFIG_DEBUG_SETTINGS');
|
||||
$this->fieldsname = 'debug';
|
||||
$this->formclass = 'options-form';
|
||||
|
||||
echo LayoutHelper::render('joomla.content.options_default', $this);
|
||||
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$this->name = Text::_('COM_CONFIG_TEXT_FILTER_SETTINGS');
|
||||
$this->fieldsname = 'filters';
|
||||
$this->formclass = 'options-form';
|
||||
|
||||
echo LayoutHelper::render('joomla.content.text_filters', $this);
|
||||
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$this->name = Text::_('COM_CONFIG_LOCATION_SETTINGS');
|
||||
$this->fieldsname = 'locale';
|
||||
$this->formclass = 'options-form';
|
||||
|
||||
echo LayoutHelper::render('joomla.content.options_default', $this);
|
||||
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_config
|
||||
*
|
||||
* @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$this->name = Text::_('COM_CONFIG_LOGGING_SETTINGS');
|
||||
$this->fieldsname = 'logging';
|
||||
$this->formclass = 'options-form';
|
||||
|
||||
echo LayoutHelper::render('joomla.content.options_default', $this);
|
||||
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_config
|
||||
*
|
||||
* @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$this->name = Text::_('COM_CONFIG_LOGGING_CUSTOM_SETTINGS');
|
||||
$this->fieldsname = 'logging_custom';
|
||||
$this->formclass = 'options-form';
|
||||
|
||||
echo LayoutHelper::render('joomla.content.options_default', $this);
|
||||
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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
|
||||
*/
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
HTMLHelper::_('form.csrf');
|
||||
$this->document->getWebAssetManager()
|
||||
->useScript('webcomponent.field-send-test-mail');
|
||||
|
||||
// Load JavaScript message titles
|
||||
Text::script('ERROR');
|
||||
Text::script('WARNING');
|
||||
Text::script('NOTICE');
|
||||
Text::script('MESSAGE');
|
||||
|
||||
// Add strings for JavaScript error translations.
|
||||
Text::script('JLIB_JS_AJAX_ERROR_CONNECTION_ABORT');
|
||||
Text::script('JLIB_JS_AJAX_ERROR_NO_CONTENT');
|
||||
Text::script('JLIB_JS_AJAX_ERROR_OTHER');
|
||||
Text::script('JLIB_JS_AJAX_ERROR_PARSE');
|
||||
Text::script('JLIB_JS_AJAX_ERROR_TIMEOUT');
|
||||
|
||||
// Ajax request data.
|
||||
$ajaxUri = Route::_('index.php?option=com_config&task=application.sendtestmail&format=json');
|
||||
|
||||
$this->name = Text::_('COM_CONFIG_MAIL_SETTINGS');
|
||||
$this->fieldsname = 'mail';
|
||||
$this->formclass = 'options-form';
|
||||
|
||||
?>
|
||||
|
||||
<joomla-field-send-test-mail uri="<?php echo $ajaxUri; ?>">
|
||||
<?php echo LayoutHelper::render('joomla.content.options_default', $this); ?>
|
||||
|
||||
<button class="btn btn-primary" type="button" id="sendtestmail">
|
||||
<span><?php echo Text::_('COM_CONFIG_SENDMAIL_ACTION_BUTTON'); ?></span>
|
||||
</button>
|
||||
</joomla-field-send-test-mail>
|
||||
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$this->name = Text::_('COM_CONFIG_METADATA_SETTINGS');
|
||||
$this->fieldsname = 'metadata';
|
||||
$this->formclass = 'options-form';
|
||||
|
||||
echo LayoutHelper::render('joomla.content.options_default', $this);
|
||||
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<ul class="nav flex-column">
|
||||
<?php if ($this->userIsSuperAdmin) : ?>
|
||||
<li class="nav-header"><?php echo Text::_('COM_CONFIG_SYSTEM'); ?></li>
|
||||
<li class="item active">
|
||||
<a href="index.php?option=com_config"><?php echo Text::_('COM_CONFIG_GLOBAL_CONFIGURATION'); ?></a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<?php endif; ?>
|
||||
<li class="nav-header"><?php echo Text::_('COM_CONFIG_COMPONENT_FIELDSET_LABEL'); ?></li>
|
||||
<?php foreach ($this->components as $component) : ?>
|
||||
<li class="item">
|
||||
<a href="index.php?option=com_config&view=component&component=<?php echo $component; ?>"><?php echo Text::_($component); ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$this->name = Text::_('COM_CONFIG_PERMISSION_SETTINGS');
|
||||
$this->description = '';
|
||||
$this->fieldsname = 'permissions';
|
||||
$this->formclass = 'form-no-columns options-form';
|
||||
$this->showlabel = false;
|
||||
|
||||
echo LayoutHelper::render('joomla.content.options_default', $this);
|
||||
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_config
|
||||
*
|
||||
* @copyright (C) 2014 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$this->name = Text::_('COM_CONFIG_PROXY_SETTINGS');
|
||||
$this->fieldsname = 'proxy';
|
||||
$this->formclass = 'options-form';
|
||||
|
||||
echo LayoutHelper::render('joomla.content.options_default', $this);
|
||||
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$this->name = Text::_('COM_CONFIG_SEO_SETTINGS');
|
||||
$this->fieldsname = 'seo';
|
||||
$this->formclass = 'options-form';
|
||||
|
||||
echo LayoutHelper::render('joomla.content.options_default', $this);
|
||||
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$this->name = Text::_('COM_CONFIG_SERVER_SETTINGS');
|
||||
$this->fieldsname = 'server';
|
||||
$this->formclass = 'options-form';
|
||||
|
||||
echo LayoutHelper::render('joomla.content.options_default', $this);
|
||||
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$this->name = Text::_('COM_CONFIG_SESSION_SETTINGS');
|
||||
$this->fieldsname = 'session';
|
||||
$this->formclass = 'options-form';
|
||||
|
||||
echo LayoutHelper::render('joomla.content.options_default', $this);
|
||||
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$this->name = Text::_('COM_CONFIG_SITE_SETTINGS');
|
||||
$this->fieldsname = 'site';
|
||||
$this->formclass = 'options-form';
|
||||
|
||||
echo LayoutHelper::render('joomla.content.options_default', $this);
|
||||
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$this->name = Text::_('COM_CONFIG_WEBSERVICES_SETTINGS');
|
||||
$this->fieldsname = 'webservices';
|
||||
$this->formclass = 'options-form';
|
||||
|
||||
echo LayoutHelper::render('joomla.content.options_default', $this);
|
||||
142
administrator/components/com_config/tmpl/component/default.php
Normal file
142
administrator/components/com_config/tmpl/component/default.php
Normal file
@ -0,0 +1,142 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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\Factory;
|
||||
use Joomla\CMS\Form\FormHelper;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
|
||||
$app = Factory::getApplication();
|
||||
$template = $app->getTemplate();
|
||||
|
||||
Text::script('ERROR');
|
||||
Text::script('WARNING');
|
||||
Text::script('NOTICE');
|
||||
Text::script('MESSAGE');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->document->getWebAssetManager();
|
||||
$wa->useScript('form.validate')
|
||||
->useScript('keepalive');
|
||||
|
||||
if ($this->fieldsets) {
|
||||
HTMLHelper::_('bootstrap.framework');
|
||||
}
|
||||
|
||||
$xml = $this->form->getXml();
|
||||
?>
|
||||
|
||||
<form action="<?php echo Route::_('index.php?option=com_config'); ?>" id="component-form" method="post" class="form-validate main-card" name="adminForm" autocomplete="off">
|
||||
<div class="row main-card-columns">
|
||||
<?php // Begin Sidebar ?>
|
||||
<div class="col-md-3" id="sidebar">
|
||||
<button class="btn btn-sm btn-secondary my-2 options-menu d-md-none" type="button" data-bs-toggle="collapse" data-bs-target=".sidebar-nav" aria-controls="sidebar-nav" aria-expanded="false">
|
||||
<span class="icon-align-justify" aria-hidden="true"></span>
|
||||
<?php echo Text::_('JTOGGLE_SIDEBAR_MENU'); ?>
|
||||
</button>
|
||||
<div id="sidebar-nav" class="sidebar-nav">
|
||||
<?php echo $this->loadTemplate('navigation'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php // End Sidebar ?>
|
||||
|
||||
<div class="col-md-9" id="config">
|
||||
<?php if ($this->fieldsets) : ?>
|
||||
<?php $opentab = 0; ?>
|
||||
|
||||
<?php echo HTMLHelper::_('uitab.startTabSet', 'configTabs', ['recall' => true, 'breakpoint' => 768]); ?>
|
||||
|
||||
<?php foreach ($this->fieldsets as $name => $fieldSet) : ?>
|
||||
<?php
|
||||
$hasChildren = $xml->xpath('//fieldset[@name="' . $name . '"]/fieldset');
|
||||
$hasParent = $xml->xpath('//fieldset/fieldset[@name="' . $name . '"]');
|
||||
$isGrandchild = $xml->xpath('//fieldset/fieldset/fieldset[@name="' . $name . '"]');
|
||||
?>
|
||||
|
||||
<?php $dataShowOn = ''; ?>
|
||||
<?php if (!empty($fieldSet->showon)) : ?>
|
||||
<?php $wa->useScript('showon'); ?>
|
||||
<?php $dataShowOn = ' data-showon=\'' . json_encode(FormHelper::parseShowOnConditions($fieldSet->showon, $this->formControl)) . '\''; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $label = empty($fieldSet->label) ? 'COM_CONFIG_' . $name . '_FIELDSET_LABEL' : $fieldSet->label; ?>
|
||||
|
||||
<?php if (!$isGrandchild && $hasParent) : ?>
|
||||
<fieldset id="fieldset-<?php echo $this->escape($name); ?>" class="options-menu options-form">
|
||||
<legend><?php echo Text::_($fieldSet->label); ?></legend>
|
||||
<div class="form-grid">
|
||||
<?php elseif (!$hasParent) : ?>
|
||||
<?php if ($opentab) : ?>
|
||||
<?php if ($opentab > 1) : ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo HTMLHelper::_('uitab.addTab', 'configTabs', $name, Text::_($label)); ?>
|
||||
|
||||
<?php $opentab = 1; ?>
|
||||
|
||||
<?php if (!$hasChildren) : ?>
|
||||
<fieldset id="fieldset-<?php echo $this->escape($name); ?>" class="options-menu options-form">
|
||||
<legend><?php echo Text::_($fieldSet->label); ?></legend>
|
||||
<div class="form-grid">
|
||||
<?php $opentab = 2; ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($fieldSet->description)) : ?>
|
||||
<div class="tab-description alert alert-info">
|
||||
<span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span>
|
||||
<?php echo Text::_($fieldSet->description); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$hasChildren) : ?>
|
||||
<?php echo $this->form->renderFieldset($name, $name === 'permissions' ? ['hiddenLabel' => true, 'class' => 'revert-controls'] : []); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$isGrandchild && $hasParent) : ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if ($opentab) : ?>
|
||||
<?php if ($opentab > 1) : ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo HTMLHelper::_('uitab.endTabSet'); ?>
|
||||
|
||||
<?php else : ?>
|
||||
<div class="alert alert-info">
|
||||
<span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span>
|
||||
<?php echo Text::_('COM_CONFIG_COMPONENT_NO_CONFIG_FIELDS_MESSAGE'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="id" value="<?php echo $this->component->id; ?>">
|
||||
<input type="hidden" name="component" value="<?php echo $this->component->option; ?>">
|
||||
<input type="hidden" name="return" value="<?php echo $this->return; ?>">
|
||||
<input type="hidden" name="task" value="">
|
||||
<?php echo HTMLHelper::_('form.token'); ?>
|
||||
</div>
|
||||
</form>
|
||||
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<layout title="COM_CONFIG_COMPONENT_VIEW_DEFAULT_TITLE">
|
||||
<message>
|
||||
<![CDATA[COM_CONFIG_COMPONENT_VIEW_DEFAULT_DESC]]>
|
||||
</message>
|
||||
</layout>
|
||||
<fields name="request">
|
||||
<fieldset name="request" addfieldprefix="Joomla\Component\Config\Administrator\Field">
|
||||
<field
|
||||
name="component"
|
||||
type="configComponents"
|
||||
label="JGLOBAL_CHOOSE_COMPONENT_LABEL"
|
||||
required="true"
|
||||
/>
|
||||
</fieldset>
|
||||
</fields>
|
||||
</metadata>
|
||||
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @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
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<ul class="nav flex-column">
|
||||
<?php if ($this->userIsSuperAdmin) : ?>
|
||||
<li class="nav-header"><?php echo Text::_('COM_CONFIG_SYSTEM'); ?></li>
|
||||
<li class="item"><a href="index.php?option=com_config"><?php echo Text::_('COM_CONFIG_GLOBAL_CONFIGURATION'); ?></a></li>
|
||||
<li class="divider"></li>
|
||||
<?php endif; ?>
|
||||
<li class="nav-header"><?php echo Text::_('COM_CONFIG_COMPONENT_FIELDSET_LABEL'); ?></li>
|
||||
<?php foreach ($this->components as $component) : ?>
|
||||
<?php
|
||||
$active = '';
|
||||
if ($this->currentComponent === $component) {
|
||||
$active = ' active';
|
||||
}
|
||||
?>
|
||||
<li class="item<?php echo $active; ?>">
|
||||
<a href="index.php?option=com_config&view=component&component=<?php echo $component; ?>"><?php echo Text::_($component); ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
Reference in New Issue
Block a user