[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage mod_login 6 * 7 * @copyright (C) 2010 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\CMS\WebAsset\WebAssetManager $wa */ 18 $wa = $app->getDocument()->getWebAssetManager(); 19 $wa->useScript('keepalive') 20 ->useScript('field.passwordview') 21 ->registerAndUseScript('mod_login.admin', 'mod_login/admin-login.min.js', [], ['defer' => true], ['core', 'form.validate']); 22 23 Text::script('JSHOWPASSWORD'); 24 Text::script('JHIDEPASSWORD'); 25 ?> 26 <form class="form-validate" action="<?php echo Route::_('index.php', true); ?>" method="post" id="form-login"> 27 <fieldset> 28 <legend class="visually-hidden"><?php echo Text::_('MOD_LOGIN'); ?></legend> 29 <div class="form-group"> 30 <label for="mod-login-username"> 31 <?php echo Text::_('JGLOBAL_USERNAME'); ?> 32 </label> 33 <div class="input-group"> 34 35 <input 36 name="username" 37 id="mod-login-username" 38 type="text" 39 class="form-control" 40 required="required" 41 autofocus 42 autocomplete="username" 43 > 44 </div> 45 </div> 46 <div class="form-group"> 47 <label for="mod-login-password"> 48 <?php echo Text::_('JGLOBAL_PASSWORD'); ?> 49 </label> 50 <div class="input-group"> 51 52 <input 53 name="passwd" 54 id="mod-login-password" 55 type="password" 56 class="form-control input-full" 57 required="required" 58 autocomplete="current-password" 59 > 60 <button type="button" class="btn btn-primary input-password-toggle"> 61 <span class="icon-eye icon-fw" aria-hidden="true"></span> 62 <span class="visually-hidden"><?php echo Text::_('JSHOWPASSWORD'); ?></span> 63 </button> 64 65 </div> 66 </div> 67 68 <div class="mt-4"> 69 <?php if (!empty($langs)) : ?> 70 <div class="form-group"> 71 <label for="lang"> 72 <?php echo Text::_('MOD_LOGIN_LANGUAGE'); ?> 73 </label> 74 <?php echo $langs; ?> 75 </div> 76 <?php endif; ?> 77 <?php foreach ($extraButtons as $button) : 78 $dataAttributeKeys = array_filter(array_keys($button), function ($key) { 79 return substr($key, 0, 5) == 'data-'; 80 }); 81 ?> 82 <div class="form-group"> 83 <button type="button" 84 class="btn btn-secondary w-100 <?php echo $button['class'] ?? '' ?>" 85 <?php foreach ($dataAttributeKeys as $key) : ?> 86 <?php echo $key ?>="<?php echo $button[$key] ?>" 87 <?php endforeach; ?> 88 <?php if ($button['onclick']) : ?> 89 onclick="<?php echo $button['onclick'] ?>" 90 <?php endif; ?> 91 title="<?php echo Text::_($button['label']) ?>" 92 id="<?php echo $button['id'] ?>" 93 > 94 <?php if (!empty($button['icon'])) : ?> 95 <span class="<?php echo $button['icon'] ?>"></span> 96 <?php elseif (!empty($button['image'])) : ?> 97 <?php echo $button['image']; ?> 98 <?php elseif (!empty($button['svg'])) : ?> 99 <?php echo $button['svg']; ?> 100 <?php endif; ?> 101 <?php echo Text::_($button['label']) ?> 102 </button> 103 </div> 104 <?php endforeach; ?> 105 <div class="form-group"> 106 <button type="submit" id="btn-login-submit" class="btn btn-primary w-100 btn-lg"><?php echo Text::_('JLOGIN'); ?></button> 107 </div> 108 <input type="hidden" name="option" value="com_login"> 109 <input type="hidden" name="task" value="login"> 110 <input type="hidden" name="return" value="<?php echo $return; ?>"> 111 <?php echo HTMLHelper::_('form.token'); ?> 112 </div> 113 </fieldset> 114 </form> 115 <div class="text-center"> 116 <div> 117 <?php echo HTMLHelper::link( 118 Text::_('MOD_LOGIN_CREDENTIALS_LINK'), 119 Text::_('MOD_LOGIN_CREDENTIALS'), 120 [ 121 'target' => '_blank', 122 'rel' => 'noopener nofollow', 123 'title' => Text::sprintf('JBROWSERTARGET_NEW_TITLE', Text::_('MOD_LOGIN_CREDENTIALS')) 124 ] 125 ); ?> 126 </div> 127 </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 |