[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_config/tmpl/templates/ -> 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\Factory;
  14  use Joomla\CMS\HTML\HTMLHelper;
  15  use Joomla\CMS\Language\Text;
  16  use Joomla\CMS\Router\Route;
  17  
  18  $user = Factory::getUser();
  19  
  20  /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
  21  $wa = $this->document->getWebAssetManager();
  22  $wa->useScript('keepalive')
  23      ->useScript('form.validate')
  24      ->useScript('com_config.templates');
  25  
  26  ?>
  27  <?php if ($this->params->get('show_page_heading')) : ?>
  28      <div class="page-header">
  29          <h1>
  30              <?php if ($this->escape($this->params->get('page_heading'))) : ?>
  31                  <?php echo $this->escape($this->params->get('page_heading')); ?>
  32              <?php else : ?>
  33                  <?php echo $this->escape($this->params->get('page_title')); ?>
  34              <?php endif; ?>
  35          </h1>
  36      </div>
  37  <?php endif; ?>
  38  <form action="<?php echo Route::_('index.php?option=com_config'); ?>" method="post" name="adminForm" id="templates-form" class="form-validate">
  39  
  40      <div id="page-site" class="tab-pane active">
  41          <div class="row">
  42              <div class="col-md-12">
  43                  <?php echo $this->loadTemplate('options'); ?>
  44              </div>
  45          </div>
  46      </div>
  47  
  48      <input type="hidden" name="task" value="">
  49      <?php echo HTMLHelper::_('form.token'); ?>
  50  
  51      <div class="mb-2">
  52      <button type="button" class="btn btn-primary " data-submit-task="templates.apply">
  53          <span class="icon-check text-white" aria-hidden="true"></span>
  54          <?php echo Text::_('JSAVE') ?>
  55      </button>
  56      <button type="button" class="btn btn-danger" data-submit-task="templates.cancel">
  57          <span class="icon-times text-white" aria-hidden="true"></span>
  58          <?php echo Text::_('JCANCEL') ?>
  59      </button>
  60  </div>
  61  
  62  </form>


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