6ef8686ad87315b52694b7e11fb7d5c563830909
[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 endif; ?>
9 mdref
10 </title>
11 <base href="<?= $baseUrl ?>">
12 <link rel="stylesheet" href="index.css">
13 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
14 </head>
15 <body>
16 <?php include __DIR__."/sidebar.phtml" ?>
17
18 <?php if (isset($html)) : ?>
19 <?php include __DIR__."/mdref.phtml" ?>
20 <?php else: ?>
21 <?php include __DIR__."/index.phtml" ?>
22 <?php endif; ?>
23
24 <?php if ($_SERVER["SERVER_NAME"] != "localhost") : ?>
25 <div id="disqus_thread"></div>
26 <script>
27 var disqus_shortname = 'mdref';
28 var disqus_identifier = '<?=$permUrl?>';
29 (function() {
30 var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
31 dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
32 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
33 })();
34 </script>
35 <?php endif; ?>
36
37 <footer>
38 <?php include __DIR__."/footer.phtml" ?>
39 </footer>
40 <script src="index.js"></script>
41 </body>
42 </html>