2014-05-14 13:24:20 +00:00
|
|
|
<!DOCTYPE html>
|
2015-08-14 23:49:51 +00:00
|
|
|
<html lang="<?= App::getLocale() ?>" class="no-js">
|
2014-05-14 13:24:20 +00:00
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=0">
|
2018-02-02 21:00:49 +00:00
|
|
|
<meta name="robots" content="noindex">
|
2015-07-11 00:32:25 +00:00
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
|
<meta name="backend-base-path" content="<?= Backend::baseUrl() ?>">
|
|
|
|
|
<meta name="csrf-token" content="<?= csrf_token() ?>">
|
2019-01-22 05:25:56 +00:00
|
|
|
<link rel="icon" type="image/png" href="<?= e(Backend\Models\BrandSetting::getFavicon()) ?>">
|
2014-10-15 08:53:44 +00:00
|
|
|
<title><?= e(trans('backend::lang.auth.title')) ?></title>
|
2019-04-19 05:31:02 +00:00
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
$coreBuild = System\Models\Parameter::get('system::core.build', 1);
|
|
|
|
|
$styles = [
|
|
|
|
|
Url::asset('modules/system/assets/ui/storm.css'),
|
|
|
|
|
Backend::skinAsset('assets/css/october.css'),
|
|
|
|
|
];
|
|
|
|
|
$scripts = [
|
|
|
|
|
Backend::skinAsset('assets/js/vendor/jquery.min.js'),
|
|
|
|
|
Backend::skinAsset('assets/js/vendor/jquery-migrate.min.js'),
|
|
|
|
|
Url::asset('modules/system/assets/js/framework.js'),
|
|
|
|
|
Url::asset('modules/system/assets/ui/storm-min.js'),
|
|
|
|
|
Backend::skinAsset('assets/js/october-min.js'),
|
|
|
|
|
Url::to('modules/backend/assets/js/auth/auth.js'),
|
|
|
|
|
Url::asset('modules/system/assets/js/lang/lang.'.App::getLocale().'.js'),
|
|
|
|
|
];
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<?php foreach ($styles as $style) : ?>
|
2019-06-16 22:17:34 +00:00
|
|
|
<link href="<?= $style . '?v=' . $coreBuild; ?>" rel="stylesheet" importance="high">
|
|
|
|
|
<link href="<?= $style . '?v=' . $coreBuild; ?>" rel="preload" as="style" importance="high">
|
2019-04-19 05:31:02 +00:00
|
|
|
<?php endforeach; ?>
|
|
|
|
|
|
|
|
|
|
<?php foreach ($scripts as $script) : ?>
|
2019-06-16 22:17:34 +00:00
|
|
|
<script data-cfasync="false" src="<?= $script . '?v=' . $coreBuild; ?>" importance="high"></script>
|
|
|
|
|
<link href="<?= $script . '?v=' . $coreBuild; ?>" rel="preload" as="script" importance="high">
|
2019-04-19 05:31:02 +00:00
|
|
|
<?php endforeach; ?>
|
2019-04-19 05:09:26 +00:00
|
|
|
|
2019-06-25 14:15:11 +00:00
|
|
|
<?php if (!Config::get('cms.enableBackendServiceWorkers', false)) : ?>
|
|
|
|
|
<script>
|
|
|
|
|
"use strict";
|
|
|
|
|
/* Only run on HTTPS connections
|
2019-10-09 15:44:24 +00:00
|
|
|
* Block off Front-end Service Worker from running in the Backend allowing security injections, see GitHub #4384
|
|
|
|
|
*/
|
|
|
|
|
if (location.protocol === 'https:') {
|
|
|
|
|
// Unregister all service workers before signing in to prevent cache issues, see github issue: #3707
|
|
|
|
|
navigator.serviceWorker.getRegistrations().then(
|
2020-05-19 10:59:03 +00:00
|
|
|
function (registrations) {
|
|
|
|
|
registrations.forEach(function (registration) {
|
2019-10-09 15:44:24 +00:00
|
|
|
registration.unregister();
|
2020-05-19 10:59:03 +00:00
|
|
|
});
|
2019-10-09 15:44:24 +00:00
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
2019-06-25 14:15:11 +00:00
|
|
|
</script>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
2014-05-14 13:24:20 +00:00
|
|
|
<?= $this->makeAssets() ?>
|
|
|
|
|
<?= Block::placeholder('head') ?>
|
2014-10-13 07:08:59 +00:00
|
|
|
<?= $this->makeLayoutPartial('custom_styles') ?>
|
2019-02-25 18:56:55 +00:00
|
|
|
<?= $this->fireViewEvent('backend.layout.extendHead', ['layout' => 'auth.htm']) ?>
|
2014-05-14 13:24:20 +00:00
|
|
|
</head>
|
|
|
|
|
<body class="outer <?= $this->bodyClass ?>">
|
|
|
|
|
<div id="layout-canvas">
|
|
|
|
|
<div class="layout">
|
2014-10-13 07:08:59 +00:00
|
|
|
|
2014-05-14 13:24:20 +00:00
|
|
|
<div class="layout-row min-size layout-head">
|
|
|
|
|
<div class="layout-cell">
|
2016-05-26 21:37:49 +00:00
|
|
|
<h1 class="oc-logo"><?= e(Backend\Models\BrandSetting::get('app_name')) ?></h1>
|
2014-05-14 13:24:20 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layout-row">
|
|
|
|
|
<div class="layout-cell">
|
|
|
|
|
<div class="outer-form-container">
|
|
|
|
|
<?= Block::placeholder('body') ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
2014-11-11 20:33:58 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Flash Messages -->
|
|
|
|
|
<div id="layout-flash-messages"><?= $this->makeLayoutPartial('flash_messages') ?></div>
|
|
|
|
|
|
2014-05-14 13:24:20 +00:00
|
|
|
</body>
|
|
|
|
|
</html>
|