aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/layout.php
blob: 9259fda7b01342c727f951bf24fdf63e807852ad (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
<!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>
    <link rel="stylesheet" href="<?= $css ?>">
    <?php
    if (!empty(Wcms\Config::interfacecss())) {
        echo '<link rel="stylesheet" href="' . Wcms\Model::csspath() . 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>



<?= $this->section('page') ?>


</html>