[ 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 Template.system 6 * 7 * @copyright (C) 2005 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\Factory; 14 use Joomla\CMS\Helper\AuthenticationHelper; 15 use Joomla\CMS\HTML\HTMLHelper; 16 use Joomla\CMS\Language\Text; 17 use Joomla\CMS\Router\Route; 18 use Joomla\CMS\Uri\Uri; 19 20 /** @var Joomla\CMS\Document\HtmlDocument $this */ 21 22 $app = Factory::getApplication(); 23 $wa = $this->getWebAssetManager(); 24 25 // Styles 26 $wa->registerAndUseStyle('template.system.offline', 'media/system/css/system-site-offline.css'); 27 28 if ($this->direction === 'rtl') { 29 $wa->registerAndUseStyle('template.system.offline_rtl', 'media/system/css/system-site-offline_rtl.css'); 30 } 31 32 $wa->registerAndUseStyle('template.system.general', 'media/system/css/system-site-general.css'); 33 34 ?> 35 <!DOCTYPE html> 36 <html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>"> 37 <head> 38 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 39 <jdoc:include type="head" /> 40 </head> 41 <body> 42 <jdoc:include type="message" /> 43 <div id="frame" class="outline"> 44 <?php if ($app->get('offline_image') && file_exists($app->get('offline_image'))) : ?> 45 <img src="<?php echo $app->get('offline_image'); ?>" alt="<?php echo htmlspecialchars($app->get('sitename'), ENT_COMPAT, 'UTF-8'); ?>" /> 46 <?php endif; ?> 47 <h1> 48 <?php echo htmlspecialchars($app->get('sitename'), ENT_COMPAT, 'UTF-8'); ?> 49 </h1> 50 <?php if ($app->get('display_offline_message', 1) == 1 && str_replace(' ', '', $app->get('offline_message')) !== '') : ?> 51 <p> 52 <?php echo $app->get('offline_message'); ?> 53 </p> 54 <?php elseif ($app->get('display_offline_message', 1) == 2 && str_replace(' ', '', Text::_('JOFFLINE_MESSAGE')) !== '') : ?> 55 <p> 56 <?php echo Text::_('JOFFLINE_MESSAGE'); ?> 57 </p> 58 <?php endif; ?> 59 <form action="<?php echo Route::_('index.php', true); ?>" method="post" id="form-login"> 60 <fieldset class="input"> 61 <p id="form-login-username"> 62 <label for="username"><?php echo Text::_('JGLOBAL_USERNAME'); ?></label> 63 <input name="username" id="username" type="text" class="inputbox" alt="<?php echo Text::_('JGLOBAL_USERNAME'); ?>" autocomplete="off" autocapitalize="none" /> 64 </p> 65 <p id="form-login-password"> 66 <label for="passwd"><?php echo Text::_('JGLOBAL_PASSWORD'); ?></label> 67 <input type="password" name="password" class="inputbox" alt="<?php echo Text::_('JGLOBAL_PASSWORD'); ?>" id="passwd" /> 68 </p> 69 <p id="submit-button"> 70 <button type="submit" name="Submit" class="button login"><?php echo Text::_('JLOGIN'); ?></button> 71 </p> 72 <input type="hidden" name="option" value="com_users" /> 73 <input type="hidden" name="task" value="user.login" /> 74 <input type="hidden" name="return" value="<?php echo base64_encode(Uri::base()); ?>" /> 75 <?php echo HTMLHelper::_('form.token'); ?> 76 </fieldset> 77 </form> 78 </div> 79 </body> 80 </html>
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 |