[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_privacy/tmpl/request/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  com_privacy
   6   *
   7   * @copyright   (C) 2018 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\Component\Privacy\Site\View\Request\HtmlView $this */
  18  
  19  HTMLHelper::_('behavior.keepalive');
  20  HTMLHelper::_('behavior.formvalidator');
  21  
  22  ?>
  23  <div class="request-form<?php echo $this->pageclass_sfx; ?>">
  24      <?php if ($this->params->get('show_page_heading')) : ?>
  25          <div class="page-header">
  26              <h1>
  27                  <?php echo $this->escape($this->params->get('page_heading')); ?>
  28              </h1>
  29          </div>
  30      <?php endif; ?>
  31      <?php if ($this->sendMailEnabled) : ?>
  32          <form action="<?php echo Route::_('index.php?option=com_privacy&task=request.submit'); ?>" method="post" class="form-validate form-horizontal well">
  33              <?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
  34                  <fieldset>
  35                      <?php if (!empty($fieldset->label)) : ?>
  36                          <legend><?php echo Text::_($fieldset->label); ?></legend>
  37                      <?php endif; ?>
  38                      <?php echo $this->form->renderFieldset($fieldset->name); ?>
  39                  </fieldset>
  40              <?php endforeach; ?>
  41              <div class="control-group">
  42                  <div class="controls">
  43                      <button type="submit" class="btn btn-primary validate">
  44                          <?php echo Text::_('JSUBMIT'); ?>
  45                      </button>
  46                  </div>
  47              </div>
  48              <?php echo HTMLHelper::_('form.token'); ?>
  49          </form>
  50      <?php else : ?>
  51          <div class="alert alert-warning">
  52              <span class="icon-exclamation-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('WARNING'); ?></span>
  53              <?php echo Text::_('COM_PRIVACY_WARNING_CANNOT_CREATE_REQUEST_WHEN_SENDMAIL_DISABLED'); ?>
  54          </div>
  55      <?php endif; ?>
  56  </div>


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