ensure proper url
[mdref/mdref] / views / layout.phtml
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>
6 <?php if ($title) : ?>
7 <?= $title ?> - mdref
8 <?php else: ?>
9 mdref
10 <?php endif; ?>
11 </title>
12 <base href="<?= $baseUrl ?>/">
13 <link rel="stylesheet" href="index.css">
14 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
15 </head>
16 <body>
17 <?php include __DIR__."/sidebar.phtml" ?>
18
19 <?php if (isset($html)) : ?>
20 <?php include __DIR__."/mdref.phtml" ?>
21 <?php else: ?>
22 <?php include __DIR__."/index.phtml" ?>
23 <?php endif; ?>
24
25 <div id="disqus_thread"></div>
26
27 <footer>
28 <?php include __DIR__."/footer.phtml" ?>
29 </footer>
30 <script src="index.js"></script>
31 </body>
32 </html>