fix weak property types
[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 href="https://fonts.googleapis.com/css?family=Inconsolata&amp;subset=latin-ext" rel="stylesheet">
21 <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
22 <link rel="shortcut icon" href="<?= $baseUrl . "favicon.ico" ?>">
23 </head>
24 <body>
25 <div class="page">
26 <?php include __DIR__."/sidebar.phtml" ?>
27 <?php if (isset($exception)) : ?>
28 <?= \mdref\ExceptionHandler::htmlException($exception) ?>
29 <?php elseif (isset($entry)) : ?>
30 <?php include __DIR__."/mdref.phtml" ?>
31 <?php else: ?>
32 <?php include __DIR__."/index.phtml" ?>
33 <?php endif; ?>
34
35 <div id="disqus_thread"><button id="disqus_activator">Show <span> </span> Comment(s)</button></div>
36 <script>
37 var disqus_shortname = 'mdref';
38 var disqus_identifier = '<?=$ref?>';
39 </script>
40
41 <footer>
42 <?php include __DIR__."/footer.phtml" ?>
43
44 </footer>
45 <?php if (isset($baseUrl)) : ?>
46
47 <script src="index.js"></script>
48 <?php endif; ?>
49
50 </div>
51 </body>
52 </html>