b0e96a8667a00e1210e100af0fd4760ddeb5766d
[mdref/mdref] / views / layout.phtml
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>
6 <?php if (!empty($title)) : ?>
7 <?= $title ?> -
8 <?php elseif (isset($entry)) : ?>
9 <?= $entry ?> -
10 <?php endif; ?>
11 mdref
12 </title>
13 <meta name="viewport" content="width=1200, initial-scale=0.5">
14 <?php if (isset($baseUrl)) : ?>
15 <base href="<?= $baseUrl ?>">
16 <meta http-equiv="Content-Location" content="<?= $baseUrl . $ref ?>">
17 <link rel="stylesheet" href="index.css">
18 <?php endif; ?>
19
20 <link rel="shortcut icon" href="<?= $baseUrl . "favicon.ico" ?>">
21 </head>
22 <body>
23 <div class="page">
24 <?php include __DIR__."/sidebar.phtml" ?>
25 <?php if (isset($exception)) : ?>
26 <?= \mdref\ExceptionHandler::htmlException($exception) ?>
27 <?php elseif (isset($entry)) : ?>
28 <?php include __DIR__."/mdref.phtml" ?>
29 <?php else: ?>
30 <?php include __DIR__."/index.phtml" ?>
31 <?php endif; ?>
32
33
34 <footer>
35 <?php include __DIR__."/footer.phtml" ?>
36
37 </footer>
38 <?php if (isset($baseUrl)) : ?>
39
40 <script src="index.js"></script>
41 <?php endif; ?>
42
43 </div>
44 </body>
45 </html>