2014-05-14 13:24:20 +00:00
|
|
|
<meta charset="utf-8">
|
2014-08-13 11:23:19 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=0, minimal-ui">
|
2018-02-02 19:35:59 +00:00
|
|
|
<meta name="robots" content="noindex">
|
2014-08-13 11:23:19 +00:00
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
2016-04-23 19:36:02 +00:00
|
|
|
<meta name="app-timezone" content="<?= e(Config::get('app.timezone')) ?>">
|
2015-06-20 11:13:03 +00:00
|
|
|
<meta name="backend-base-path" content="<?= Backend::baseUrl() ?>">
|
2016-05-26 21:46:50 +00:00
|
|
|
<meta name="backend-timezone" content="<?= e(Backend\Models\Preference::get('timezone')) ?>">
|
|
|
|
|
<meta name="backend-locale" content="<?= e(Backend\Models\Preference::get('locale')) ?>">
|
2015-06-20 11:17:58 +00:00
|
|
|
<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()) ?>">
|
2016-05-26 21:37:49 +00:00
|
|
|
<title data-title-template="<?= empty($this->pageTitleTemplate) ? '%s' : e($this->pageTitleTemplate) ?> | <?= e(Backend\Models\BrandSetting::get('app_name')) ?>">
|
|
|
|
|
<?= e(trans($this->pageTitle)) ?> | <?= e(Backend\Models\BrandSetting::get('app_name')) ?>
|
2014-06-26 04:29:38 +00:00
|
|
|
</title>
|
2015-07-29 09:19:08 +00:00
|
|
|
<?php
|
2016-05-30 22:17:25 +00:00
|
|
|
$coreBuild = System\Models\Parameter::get('system::core.build', 1);
|
2019-08-16 08:19:16 +00:00
|
|
|
|
|
|
|
|
// Styles
|
2019-04-19 05:31:02 +00:00
|
|
|
$styles = [
|
|
|
|
|
Url::asset('modules/system/assets/ui/storm.css'),
|
|
|
|
|
Backend::skinAsset('assets/css/october.css'),
|
|
|
|
|
];
|
2019-08-16 08:19:16 +00:00
|
|
|
|
|
|
|
|
// Scripts
|
2019-04-19 05:31:02 +00:00
|
|
|
$scripts = [
|
|
|
|
|
Backend::skinAsset('assets/js/vendor/jquery.min.js'),
|
|
|
|
|
Backend::skinAsset('assets/js/vendor/jquery-migrate.min.js'),
|
2019-08-16 08:19:16 +00:00
|
|
|
Url::asset('modules/system/assets/js/framework.js')
|
|
|
|
|
];
|
|
|
|
|
if (Config::get('develop.decompileBackendAssets', false)) {
|
|
|
|
|
$scripts = array_merge($scripts, Backend::decompileAsset('modules/system/assets/ui/storm.js'));
|
|
|
|
|
$scripts = array_merge($scripts, Backend::decompileAsset('assets/js/october.js', true));
|
|
|
|
|
} else {
|
|
|
|
|
$scripts = array_merge($scripts, [Url::asset('modules/system/assets/ui/storm-min.js')]);
|
|
|
|
|
$scripts = array_merge($scripts, [Backend::skinAsset('assets/js/october-min.js')]);
|
|
|
|
|
}
|
|
|
|
|
$scripts = array_merge($scripts, [
|
2019-04-19 05:31:02 +00:00
|
|
|
Url::asset('modules/system/assets/js/lang/lang.'.App::getLocale().'.js'),
|
|
|
|
|
Backend::skinAsset('assets/js/october.flyout.js'),
|
|
|
|
|
Backend::skinAsset('assets/js/october.tabformexpandcontrols.js'),
|
2019-08-16 08:19:16 +00:00
|
|
|
]);
|
2015-07-29 09:19:08 +00:00
|
|
|
?>
|
2019-04-19 05:09:26 +00:00
|
|
|
|
2019-04-19 05:31:02 +00:00
|
|
|
<?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; ?>
|
2018-10-31 01:36:44 +00:00
|
|
|
|
2019-04-19 05:31:02 +00:00
|
|
|
<?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; ?>
|
2015-07-08 04:37:18 +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
|
|
|
|
|
* Block off Front-end Service Worker from running in the Backend allowing security injections, see GitHub #4384
|
|
|
|
|
*/
|
2019-10-09 15:44:24 +00:00
|
|
|
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() ?>
|
2014-10-13 07:08:59 +00:00
|
|
|
<?= Block::placeholder('head') ?>
|
2018-02-02 19:35:59 +00:00
|
|
|
<?= $this->makeLayoutPartial('custom_styles') ?>
|