1<?php
2/**
3 * @package	Joomla.Installation
4 *
5 * @copyright  Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
6 * @license	GNU General Public License version 2 or later; see LICENSE.txt
7 */
8
9defined('_JEXEC') or die;
10
11/** @var JDocumentHtml $this */
12
13// Output as HTML5
14$this->setHtml5(true);
15
16// Load the JavaScript behaviors
17JHtml::_('bootstrap.framework');
18JHtml::_('formbehavior.chosen', 'select');
19JHtml::_('behavior.keepalive');
20JHtml::_('behavior.formvalidator');
21JHtml::_('behavior.core');
22JHtml::_('behavior.polyfill', array('event'), 'lt IE 9');
23
24// Add installation js
25JHtml::_('script', 'installation/template/js/installation.js', array('version' => 'auto'));
26
27// Add html5 shiv
28JHtml::_('script', 'jui/html5.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9'));
29
30// Add Stylesheets
31JHtml::_('bootstrap.loadCss', true, $this->direction);
32JHtml::_('stylesheet', 'installation/template/css/template.css', array('version' => 'auto'));
33
34// Load JavaScript message titles
35JText::script('ERROR');
36JText::script('WARNING');
37JText::script('NOTICE');
38JText::script('MESSAGE');
39
40// Add strings for JavaScript error translations.
41JText::script('JLIB_JS_AJAX_ERROR_CONNECTION_ABORT');
42JText::script('JLIB_JS_AJAX_ERROR_NO_CONTENT');
43JText::script('JLIB_JS_AJAX_ERROR_OTHER');
44JText::script('JLIB_JS_AJAX_ERROR_PARSE');
45JText::script('JLIB_JS_AJAX_ERROR_TIMEOUT');
46
47// Load the JavaScript translated messages
48JText::script('INSTL_PROCESS_BUSY');
49JText::script('INSTL_FTP_SETTINGS_CORRECT');
50
51// Add script options
52$this->addScriptOptions('system.installation', array('url' => JRoute::_('index.php')));
53?>
54<!DOCTYPE html>
55<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
56	<head>
57		<jdoc:include type="head" />
58		<!--[if lt IE 9]><script src="<?php echo JUri::root(true); ?>/media/jui/js/html5.js"></script><![endif]-->
59	</head>
60	<body data-basepath="<?php echo JUri::root(true); ?>">
61		<!-- Header -->
62		<div class="header">
63			<img src="<?php echo $this->baseurl; ?>/template/images/joomla.png" alt="Joomla" />
64			<hr />
65			<h5>
66				<?php // Fix wrong display of Joomla!® in RTL language ?>
67				<?php $joomla  = '<a href="https://www.joomla.org" target="_blank">Joomla!</a><sup>' . (JFactory::getLanguage()->isRtl() ? '&#x200E;' : '') . '</sup>'; ?>
68				<?php $license = '<a href="https://www.gnu.org/licenses/old-licenses/gpl-2.0.html" target="_blank" rel="noopener noreferrer">' . JText::_('INSTL_GNU_GPL_LICENSE') . '</a>'; ?>
69				<?php echo JText::sprintf('JGLOBAL_ISFREESOFTWARE', $joomla, $license); ?>
70			</h5>
71		</div>
72		<!-- Container -->
73		<div class="container">
74			<jdoc:include type="message" />
75			<div id="javascript-warning">
76				<noscript>
77					<div class="alert alert-error">
78						<?php echo JText::_('INSTL_WARNJAVASCRIPT'); ?>
79					</div>
80				</noscript>
81			</div>
82			<div id="container-installation">
83				<jdoc:include type="component" />
84			</div>
85			<hr />
86		</div>
87	</body>
88</html>
89