[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Site 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\Site\View\Methods\HtmlView; 18 19 /** @var HtmlView $this */ 20 ?> 21 <div id="com-users-methods-list"> 22 <?php if (!$this->get('forHMVC', false)) : ?> 23 <h2 id="com-users-methods-list-head"> 24 <?php echo Text::_('COM_USERS_MFA_LIST_PAGE_HEAD'); ?> 25 </h2> 26 <?php endif ?> 27 28 <div id="com-users-methods-reset-container" class="d-flex align-items-center border border-1 rounded-3 p-2 bg-light"> 29 <div id="com-users-methods-reset-message" class="flex-grow-1"> 30 <?php echo Text::_('COM_USERS_MFA_LIST_STATUS_' . ($this->mfaActive ? 'ON' : 'OFF')) ?> 31 </div> 32 <?php if ($this->mfaActive) : ?> 33 <div> 34 <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) ?>" 35 class="btn btn-danger btn-sm"> 36 <?php echo Text::_('COM_USERS_MFA_LIST_REMOVEALL'); ?> 37 </a> 38 </div> 39 <?php endif; ?> 40 </div> 41 42 <?php if (!count($this->methods)) : ?> 43 <div id="com-users-methods-list-instructions" class="alert alert-info mt-2"> 44 <span class="icon icon-info-circle" aria-hidden="true"></span> 45 <?php echo Text::_('COM_USERS_MFA_LIST_INSTRUCTIONS'); ?> 46 </div> 47 <?php elseif ($this->isMandatoryMFASetup) : ?> 48 <div class="alert alert-info my-3"> 49 <h3 class="alert-heading"> 50 <?php echo Text::_('COM_USERS_MFA_MANDATORY_NOTICE_HEAD') ?> 51 </h3> 52 <p> 53 <?php echo Text::_('COM_USERS_MFA_MANDATORY_NOTICE_BODY') ?> 54 </p> 55 </div> 56 <?php endif ?> 57 58 <?php $this->setLayout('list'); 59 echo $this->loadTemplate(); ?> 60 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |