[ 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 mod_login 6 * 7 * @copyright (C) 2006 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 HTMLHelper::_('behavior.keepalive'); 18 ?> 19 <form class="mod-login-logout form-vertical" action="<?php echo Route::_('index.php', true); ?>" method="post" id="login-form-<?php echo $module->id; ?>"> 20 <?php if ($params->get('greeting', 1)) : ?> 21 <div class="mod-login-logout__login-greeting login-greeting"> 22 <?php if (!$params->get('name', 0)) : ?> 23 <?php echo Text::sprintf('MOD_LOGIN_HINAME', htmlspecialchars($user->get('name'), ENT_COMPAT, 'UTF-8')); ?> 24 <?php else : ?> 25 <?php echo Text::sprintf('MOD_LOGIN_HINAME', htmlspecialchars($user->get('username'), ENT_COMPAT, 'UTF-8')); ?> 26 <?php endif; ?> 27 </div> 28 <?php endif; ?> 29 <?php if ($params->get('profilelink', 0)) : ?> 30 <ul class="mod-login-logout__options list-unstyled"> 31 <li> 32 <a href="<?php echo Route::_('index.php?option=com_users&view=profile'); ?>"> 33 <?php echo Text::_('MOD_LOGIN_PROFILE'); ?></a> 34 </li> 35 </ul> 36 <?php endif; ?> 37 <div class="mod-login-logout__button logout-button"> 38 <button type="submit" name="Submit" class="btn btn-primary"><?php echo Text::_('JLOGOUT'); ?></button> 39 <input type="hidden" name="option" value="com_users"> 40 <input type="hidden" name="task" value="user.logout"> 41 <input type="hidden" name="return" value="<?php echo $return; ?>"> 42 <?php echo HTMLHelper::_('form.token'); ?> 43 </div> 44 </form>
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 |