[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_config/tmpl/config/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  com_config
   6   *
   7   * @copyright   (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  defined('_JEXEC') or die;
  12  
  13  use Joomla\CMS\HTML\HTMLHelper;
  14  use Joomla\CMS\Language\Text;
  15  use Joomla\CMS\Router\Route;
  16  
  17  /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
  18  $wa = $this->document->getWebAssetManager();
  19  $wa->useScript('keepalive')
  20      ->useScript('form.validate')
  21      ->useScript('com_config.config')
  22      ->useScript('inlinehelp');
  23  
  24  ?>
  25  <?php if ($this->params->get('show_page_heading')) : ?>
  26      <div class="page-header">
  27          <h1>
  28              <?php if ($this->escape($this->params->get('page_heading'))) : ?>
  29                  <?php echo $this->escape($this->params->get('page_heading')); ?>
  30              <?php else : ?>
  31                  <?php echo $this->escape($this->params->get('page_title')); ?>
  32              <?php endif; ?>
  33          </h1>
  34      </div>
  35  <?php endif; ?>
  36  <form action="<?php echo Route::_('index.php?option=com_config'); ?>" id="application-form" method="post" name="adminForm" class="form-validate">
  37  
  38      <div class="mb-2 d-flex">
  39          <button type="button" class="btn btn-sm btn-outline-info button-inlinehelp ms-auto">
  40              <span class="fa fa-question-circle" aria-hidden="true"></span>
  41              <?php echo Text::_('JINLINEHELP') ?>
  42          </button>
  43      </div>
  44  
  45      <?php echo $this->loadTemplate('site'); ?>
  46      <?php echo $this->loadTemplate('seo'); ?>
  47      <?php echo $this->loadTemplate('metadata'); ?>
  48  
  49      <input type="hidden" name="task" value="">
  50      <?php echo HTMLHelper::_('form.token'); ?>
  51  
  52      <div class="mb-2">
  53      <button type="button" class="btn btn-primary" data-submit-task="config.apply">
  54          <span class="icon-check" aria-hidden="true"></span>
  55          <?php echo Text::_('JSAVE') ?>
  56      </button>
  57      <button type="button" class="btn btn-danger" data-submit-task="config.cancel">
  58          <span class="icon-times" aria-hidden="true"></span>
  59          <?php echo Text::_('JCANCEL') ?>
  60      </button>
  61      </div>
  62  
  63  </form>


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer