[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_users/tmpl/methods/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_users
   6   *
   7   * @copyright   (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  // Prevent direct access
  12  defined('_JEXEC') or die;
  13  
  14  use Joomla\CMS\Factory;
  15  use Joomla\CMS\Language\Text;
  16  use Joomla\CMS\Router\Route;
  17  use Joomla\Component\Users\Administrator\View\Methods\HtmlView;
  18  
  19  /** @var HtmlView $this */
  20  ?>
  21  <div id="com-users-methods-list">
  22      <div id="com-users-methods-reset-container" class="d-flex align-items-center border border-1 rounded-3 p-2 bg-light">
  23          <div id="com-users-methods-reset-message" class="flex-grow-1">
  24              <?php echo Text::_('COM_USERS_MFA_LIST_STATUS_' . ($this->mfaActive ? 'ON' : 'OFF')) ?>
  25          </div>
  26          <?php if ($this->mfaActive) : ?>
  27              <div>
  28                  <a href="<?php echo Route::_('index.php?option=com_users&task=methods.disable&' . Factory::getApplication()->getFormToken() . '=1' . ($this->returnURL ? '&returnurl=' . $this->escape(urlencode($this->returnURL)) : '') . '&user_id=' . $this->user->id) ?>"
  29                     class="btn btn-danger btn-sm">
  30                      <?php echo Text::_('COM_USERS_MFA_LIST_REMOVEALL'); ?>
  31                  </a>
  32              </div>
  33          <?php endif; ?>
  34      </div>
  35  
  36      <?php if (!count($this->methods)) : ?>
  37          <div id="com-users-methods-list-instructions" class="alert alert-info mt-2">
  38              <span class="icon icon-info-circle" aria-hidden="true"></span>
  39              <?php echo Text::_('COM_USERS_MFA_LIST_INSTRUCTIONS'); ?>
  40          </div>
  41      <?php elseif ($this->isMandatoryMFASetup) : ?>
  42          <div class="alert alert-info my-3">
  43              <h3 class="alert-heading">
  44                  <?php echo Text::_('COM_USERS_MFA_MANDATORY_NOTICE_HEAD') ?>
  45              </h3>
  46              <p>
  47                  <?php echo Text::_('COM_USERS_MFA_MANDATORY_NOTICE_BODY') ?>
  48              </p>
  49          </div>
  50      <?php endif ?>
  51  
  52      <?php $this->setLayout('list');
  53      echo $this->loadTemplate(); ?>
  54  </div>


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