blob: c9dae0d5ba5617dcb36e43147d6588d05a41efae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8" />
<meta name="viewport" content="width=device-width" />
<?php if (!empty($favicon)) {
?>
<link rel="shortcut icon" href="<?= Wcms\Model::faviconpath() . $favicon ?>" type="image/x-icon">
<?php } elseif (!empty(Wcms\Config::defaultfavicon())) { ?>
<link rel="shortcut icon" href="<?= Wcms\Model::faviconpath() . Wcms\Config::defaultfavicon() ?>" type="image/x-icon">
<?php } ?>
<title><?= $title ?></title>
<?php foreach ($stylesheets as $stylsheet) { ?>
<link rel="stylesheet" href="<?= $stylsheet ?>">
<?php } ?>
<?php
if (!empty(Wcms\Config::interfacecss())) {
echo '<link rel="stylesheet" href="' . Wcms\Model::assetscsspath() . Wcms\Config::interfacecss() . '">';
}
if (isreportingerrors()) {
?>
<script>
const sentrydsn = '<?= Wcms\Config::sentrydsn() ?>';
const version = '<?= getversion() ?>';
const url = '<?= Wcms\Config::url() ?>';
const basepath = '<?= Wcms\Config::basepath() ?>';
</script>
<script src="https://browser.sentry-cdn.com/5.9.0/bundle.min.js"></script>
<script src="<?= Wcms\Model::jspath() ?>sentry.bundle.js"></script>
<?php } ?>
</head>
<?php
if (!empty($flashmessages) && is_array($flashmessages)) { ?>
<a href="#flashmessage">
<div class="flashmessage" id="flashmessage">
<ul>
<?php foreach ($flashmessages as $flashmessage ) { ?>
<li class="alert alert-<?= $flashmessage['type'] ?>">
<?= $flashmessage['content'] ?>
</li>
<?php } ?>
</ul>
</div>
</a>
<?php } ?>
<body>
<?= $this->section('page') ?>
</body>
</html>
|