383ae220022e3964618e040c57c86986a62b6f62
[pharext/pharext.org] / app / views / layout.phtml
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>
6 <?php if (!empty($title)) : ?>
7 <?= $this->e($title) ?> &ndash;
8 <?php endif; ?>
9 PHARext
10 </title>
11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
13 <link rel="stylesheet" href="<?= $baseUrl->mod("./octicons/octicons.css") ?>">
14 <link rel="stylesheet" href="<?= $baseUrl->mod("./index.css") ?>">
15
16 <?php if (!empty($styles)) : ?>
17 <?php foreach($styles as $style) : ?>
18 <?php if ($style instanceof \http\Url) : ?>
19
20 <link rel="stylesheet" href="<?= $style ?>">
21
22 <?php else : ?>
23
24 <style><?= $style ?></style>
25
26 <?php endif; ?>
27 <?php endforeach; ?>
28 <?php endif; ?>
29
30 </head>
31 <body>
32
33 <?php include "navbar.phtml" ?>
34
35 <div id="content" class="<?= (isset($container) && !$container) ? "":"container" ?>">
36
37 <?= $this->section("content") ?>
38
39 </div>
40 <?php if (isset($modal)) : ?>
41 <?= $this->fetch("modal/$modal") ?>
42 <?php endif; ?>
43 <footer class="footer">
44 <div class="container">
45 <p>
46 &copy; 2015 <abbr title="Michael Wallner">m6w6</abbr>
47 <addr>&lt;mike&#x40;php&#x2e;net&gt;</addr>
48 &mdash; Powered by <a href="//github.com/m6w6/pharext">pharext
49 <?php
50 include_once __DIR__."/../../vendor/m6w6/pharext/src/pharext/Version.php";
51 echo pharext\VERSION;
52 ?>
53 </a>
54 </p>
55 </div>
56 </footer>
57 <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
58 <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
59 <script>$(".modal").modal("show")</script>
60 <?php if (!empty($scripts)) : ?>
61 <?php foreach ($scripts as $script) : ?>
62 <?php if ($script instanceof \http\Url) : ?>
63
64 <script src="<?= $script ?>"></script>
65
66 <?php else : ?>
67
68 <script><?= $script ?></script>
69
70 <?php endif; ?>
71 <?php endforeach; ?>
72 <?php endif; ?>
73
74 </body>
75 </html>