[ 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\Language\Text; 15 use Joomla\CMS\Router\Route; 16 use Joomla\CMS\Uri\Uri; 17 use Joomla\Component\Users\Site\View\Captive\HtmlView; 18 19 /** @var HtmlView $this */ 20 21 $shownMethods = []; 22 23 ?> 24 <div id="com-users-select"> 25 <h2 id="com-users-select-heading"> 26 <?php echo Text::_('COM_USERS_MFA_SELECT_PAGE_HEAD'); ?> 27 </h2> 28 <div id="com-users-select-information"> 29 <p> 30 <?php echo Text::_('COM_USERS_LBL_SELECT_INSTRUCTIONS'); ?> 31 </p> 32 </div> 33 34 <div class="com-users-select-methods p-2"> 35 <?php foreach ($this->records as $record) : 36 if (!array_key_exists($record->method, $this->mfaMethods) && ($record->method != 'backupcodes')) { 37 continue; 38 } 39 40 $allowEntryBatching = isset($this->mfaMethods[$record->method]) ? $this->mfaMethods[$record->method]['allowEntryBatching'] : false; 41 42 if ($this->allowEntryBatching) { 43 if ($allowEntryBatching && in_array($record->method, $shownMethods)) { 44 continue; 45 } 46 $shownMethods[] = $record->method; 47 } 48 49 $methodName = $this->getModel()->translateMethodName($record->method); 50 ?> 51 <a class="com-users-method p-2 border-top border-dark bg-light d-flex flex-row flex-wrap justify-content-start align-items-center text-decoration-none gap-2 text-body" 52 href="<?php echo Route::_('index.php?option=com_users&view=captive&record_id=' . $record->id)?>"> 53 <img src="<?php echo Uri::root() . $this->getModel()->getMethodImage($record->method) ?>" 54 alt="<?php echo $this->escape(strip_tags($record->title)) ?>" 55 class="com-users-method-image img-fluid" /> 56 <?php if (!$this->allowEntryBatching || !$allowEntryBatching) : ?> 57 <span class="com-users-method-title flex-grow-1 fs-5 fw-bold"> 58 <?php if ($record->method === 'backupcodes') : ?> 59 <?php echo $record->title ?> 60 <?php else : ?> 61 <?php echo $this->escape($record->title) ?> 62 <?php endif; ?> 63 </span> 64 <small class="com-users-method-name text-muted"> 65 <?php echo $methodName ?> 66 </small> 67 <?php else : ?> 68 <span class="com-users-method-title flex-grow-1 fs-5 fw-bold"> 69 <?php echo $methodName ?> 70 </span> 71 <small class="com-users-method-name text-muted"> 72 <?php echo $methodName ?> 73 </small> 74 <?php endif; ?> 75 </a> 76 <?php endforeach; ?> 77 </div> 78 </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 |