[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_users/tmpl/login/ -> default_logout.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  com_users
   6   *
   7   * @copyright   (C) 2009 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\Users\Site\View\Login\HtmlView $this */
  18  ?>
  19  <div class="com-users-logout logout">
  20      <?php if ($this->params->get('show_page_heading')) : ?>
  21      <div class="page-header">
  22          <h1>
  23              <?php echo $this->escape($this->params->get('page_heading')); ?>
  24          </h1>
  25      </div>
  26      <?php endif; ?>
  27  
  28      <?php if (($this->params->get('logoutdescription_show') == 1 && str_replace(' ', '', $this->params->get('logout_description')) != '') || $this->params->get('logout_image') != '') : ?>
  29          <div class="com-users-logout__description logout-description">
  30      <?php endif; ?>
  31  
  32      <?php if ($this->params->get('logoutdescription_show') == 1) : ?>
  33          <?php echo $this->params->get('logout_description'); ?>
  34      <?php endif; ?>
  35  
  36      <?php if ($this->params->get('logout_image') != '') : ?>
  37          <?php echo HTMLHelper::_('image', $this->params->get('logout_image'), empty($this->params->get('logout_image_alt')) && empty($this->params->get('logout_image_alt_empty')) ? false : $this->params->get('logout_image_alt'), ['class' => 'com-users-logout__image thumbnail float-end logout-image']); ?>
  38      <?php endif; ?>
  39  
  40      <?php if (($this->params->get('logoutdescription_show') == 1 && str_replace(' ', '', $this->params->get('logout_description')) != '') || $this->params->get('logout_image') != '') : ?>
  41          </div>
  42      <?php endif; ?>
  43  
  44      <form action="<?php echo Route::_('index.php?option=com_users&task=user.logout'); ?>" method="post" class="com-users-logout__form form-horizontal well">
  45          <div class="com-users-logout__submit control-group">
  46              <div class="controls">
  47                  <button type="submit" class="btn btn-primary">
  48                      <span class="icon-backward-2 icon-white" aria-hidden="true"></span>
  49                      <?php echo Text::_('JLOGOUT'); ?>
  50                  </button>
  51              </div>
  52          </div>
  53          <?php if ($this->params->get('logout_redirect_url')) : ?>
  54              <input type="hidden" name="return" value="<?php echo base64_encode($this->params->get('logout_redirect_url', $this->form->getValue('return', null, ''))); ?>">
  55          <?php else : ?>
  56              <input type="hidden" name="return" value="<?php echo base64_encode($this->params->get('logout_redirect_menuitem', $this->form->getValue('return', null, ''))); ?>">
  57          <?php endif; ?>
  58          <?php echo HTMLHelper::_('form.token'); ?>
  59      </form>
  60  </div>


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