logo
[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 <link rel="shortcut icon" type="image/png" href="<?= $baseUrl->mod(":./pharext.png") ?>">
16
17 <?php if (!empty($styles)) : ?>
18 <?php foreach($styles as $style) : ?>
19 <?php if ($style instanceof \http\Url) : ?>
20
21 <link rel="stylesheet" href="<?= $style ?>">
22
23 <?php else : ?>
24
25 <style><?= $style ?></style>
26
27 <?php endif; ?>
28 <?php endforeach; ?>
29 <?php endif; ?>
30
31 </head>
32 <body>
33
34 <?php include "navbar.phtml" ?>
35
36 <div id="content" class="<?= (isset($container) && !$container) ? "":"container" ?>">
37
38 <?= $this->section("content") ?>
39
40 </div>
41 <?php if (isset($modal)) : ?>
42 <?= $this->fetch("modal/$modal") ?>
43 <?php endif; ?>
44 <footer class="footer">
45 <div class="container">
46 <p>
47 &copy; 2015 <abbr title="Michael Wallner">m6w6</abbr>
48 <addr>&lt;mike&#x40;php&#x2e;net&gt;</addr>
49 &mdash; Powered by <a href="//github.com/m6w6/pharext">pharext
50 <?= \pharext\Metadata::version() ?>
51 </a>
52 </p>
53 </div>
54 </footer>
55 <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
56 <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
57 <script>$(".modal").modal("show")</script>
58 <?php if (!empty($scripts)) : ?>
59 <?php foreach ($scripts as $script) : ?>
60 <?php if ($script instanceof \http\Url) : ?>
61
62 <script src="<?= $script ?>"></script>
63
64 <?php else : ?>
65
66 <script><?= $script ?></script>
67
68 <?php endif; ?>
69 <?php endforeach; ?>
70 <?php endif; ?>
71
72 </body>
73 </html>