[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Installation 5 * 6 * @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org> 7 * @license GNU General Public License version 2 or later; see LICENSE.txt 8 */ 9 10 defined('_JEXEC') or die; 11 12 use Joomla\CMS\Language\Text; 13 use Joomla\CMS\Router\Route; 14 use Joomla\CMS\Uri\Uri; 15 use Joomla\CMS\Version; 16 17 /** @var \Joomla\CMS\Document\HtmlDocument $this */ 18 // Add required assets 19 $this->getWebAssetManager() 20 ->registerAndUseStyle('template.installation', 'installation/template/css/template' . ($this->direction === 'rtl' ? '-rtl' : '') . '.css', ['version' => 'auto'], [], []) 21 ->useScript('core') 22 ->useScript('keepalive') 23 ->useScript('form.validate') 24 ->registerAndUseScript('template.installation', 'installation/template/js/template.js', ['version' => 'auto'], ['defer' => true], ['core', 'form.validate']); 25 26 $this->getWebAssetManager() 27 ->useStyle('webcomponent.joomla-alert') 28 ->useScript('messages') 29 ->useScript('webcomponent.core-loader') 30 ->addInlineStyle(':root { 31 --hue: 214; 32 --template-bg-light: #f0f4fb; 33 --template-text-dark: #495057; 34 --template-text-light: #ffffff; 35 --template-link-color: #2a69b8; 36 --template-special-color: #001b4c; 37 }'); 38 39 // Add script options 40 $this->addScriptOptions('system.installation', ['url' => Route::_('index.php')]); 41 42 // Load JavaScript message titles 43 Text::script('ERROR'); 44 Text::script('WARNING'); 45 Text::script('NOTICE'); 46 Text::script('MESSAGE'); 47 48 // Add strings for JavaScript error translations. 49 Text::script('JLIB_JS_AJAX_ERROR_CONNECTION_ABORT'); 50 Text::script('JLIB_JS_AJAX_ERROR_NO_CONTENT'); 51 Text::script('JLIB_JS_AJAX_ERROR_OTHER'); 52 Text::script('JLIB_JS_AJAX_ERROR_PARSE'); 53 Text::script('JLIB_JS_AJAX_ERROR_TIMEOUT'); 54 Text::script('INSTL_DATABASE_RESPONSE_ERROR'); 55 56 // Load the JavaScript translated messages 57 Text::script('INSTL_PROCESS_BUSY'); 58 59 // Load strings for translated messages (directory removal) 60 Text::script('INSTL_REMOVE_INST_FOLDER'); 61 Text::script('INSTL_COMPLETE_REMOVE_FOLDER'); 62 ?> 63 <!DOCTYPE html> 64 <html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>"> 65 <head> 66 <meta name="viewport" content="width=device-width, initial-scale=1"> 67 <jdoc:include type="metas" /> 68 <jdoc:include type="styles" /> 69 </head> 70 <body data-basepath="<?php echo Uri::root(true); ?>"> 71 <div class="j-install"> 72 <?php // Header ?> 73 <header id="header" class="header"> 74 <div class="row me-0"> 75 <div class="col"> 76 <div class="logo d-none d-md-block col"> 77 <img src="<?php echo $this->baseurl; ?>/template/images/Joomla-logo-monochrome-horizontal-white.svg" alt=""> 78 </div> 79 <div class="mx-2 my-3 d-flex d-md-none"> 80 <img class="logo-small d-flex d-md-none" src="<?php echo $this->baseurl; ?>/template/images/Joomla-brandmark-monochrome-white-RGB.svg" alt=""> 81 </div> 82 </div> 83 <div class="d-flex flex-wrap align-items-center col justify-content-center"> 84 <h1 class="h2 mx-1 d-flex align-items-baseline text-white"> 85 <span class="icon-cogs d-none d-md-block mx-2 align-items-center" aria-hidden="true"></span> 86 <?php echo Text::_('INSTL_PAGE_TITLE'); ?> 87 </h1> 88 <span class="small mx-1"> 89 Joomla! <?php echo (new Version())->getShortVersion(); ?> 90 </span> 91 </div> 92 <div class="m-2 d-flex align-items-center col justify-content-end"> 93 <a href="https://docs.joomla.org/Special:MyLanguage/J4.x:Installing_Joomla" target="_blank"> 94 <span class="icon-question" aria-hidden="true"></span> 95 <span class="visually-hidden"><?php echo Text::_('INSTL_HELP_LINK'); ?></span> 96 </a> 97 </div> 98 </div> 99 </header> 100 <?php // Container ?> 101 <div id="wrapper" class="d-flex wrapper flex-wrap"> 102 <div class="container-fluid container-main"> 103 <div id="content" class="content h-100"> 104 <main class="d-flex justify-content-center align-items-center h-100"> 105 <div class="j-container"> 106 <jdoc:include type="message" /> 107 <div id="javascript-warning"> 108 <noscript> 109 <?php echo Text::_('INSTL_WARNJAVASCRIPT'); ?> 110 </noscript> 111 </div> 112 <div id="container-installation" class="container-installation flex no-js hidden" data-base-url="<?php echo Uri::root(); ?>"> 113 <jdoc:include type="component" /> 114 </div> 115 </div> 116 </main> 117 <footer class="footer text-center small w-100 p-3"> 118 <?php echo Version::URL; ?> 119 </footer> 120 </div> 121 </div> 122 </div> 123 <jdoc:include type="scripts" /> 124 </div> 125 </body> 126 </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 |