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);
|
||||
Reference in New Issue
Block a user