54 lines
1.3 KiB
PHP
54 lines
1.3 KiB
PHP
<?php use Cake\Core\Configure; ?>
|
|||
|
|
|
||
|
|
<!DOCTYPE html>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<?= $this->Html->charset() ?>
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||
|
|
<title>СуперСам :: 404</title>
|
||
|
|
<?php echo $this->element("favicon"); ?>
|
||
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
|
|
||
|
|
<?php if (empty($isRejectedBrowser)) {
|
||
|
|
$release = "?v".Configure::read('Release');
|
||
|
|
|
||
|
|
$cssList = [
|
||
|
|
"bootstrap.min.css",
|
||
|
|
"styles.css",
|
||
|
|
];
|
||
|
|
|
||
|
|
foreach ($cssList as $key => $css) {
|
||
|
|
$cssList[$key] = $css.$release;
|
||
|
|
}
|
||
|
|
echo $this->Html->css($cssList);
|
||
|
|
} else {
|
||
|
|
echo $this->Html->css('jquery.reject');
|
||
|
|
} ?>
|
||
|
|
|
||
|
|
<?= $this->fetch('meta'); ?>
|
||
|
|
<?= $this->fetch('css'); ?>
|
||
|
|
<?= $this->fetch('script'); ?>
|
||
|
|
|
||
|
|
<base href="/">
|
||
|
|
</head>
|
||
|
|
|
||
|
|
<body>
|
||
|
|
<?php if (empty($isRejectedBrowser)) {
|
||
|
|
$scripts = [
|
||
|
|
"jquery.min.js",
|
||
|
|
];
|
||
|
|
|
||
|
|
foreach ($scripts as $key => $script) {
|
||
|
|
$scripts[$key] = $script.$release;
|
||
|
|
}
|
||
|
|
|
||
|
|
echo $this->Html->script($scripts);
|
||
|
|
echo $this->fetch('content');
|
||
|
|
echo $this->element('cookie_consent');
|
||
|
|
} else {
|
||
|
|
echo $this->Html->script("jquery-1.min.js");
|
||
|
|
echo $this->Html->script("jquery.reject.js");
|
||
|
|
echo $this->Html->script("jquery.reject-config.js");
|
||
|
|
} ?>
|
||
|
|
</body>
|
||
|
|
</html>
|