e8e40571f13cf160346c5f4b98ad06a16332c20e
[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 <?= \pharext\Metadata::version() ?>
50 </a>
51 </p>
52 </div>
53 </footer>
54 <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
55 <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
56 <script>$(".modal").modal("show")</script>
57 <?php if (!empty($scripts)) : ?>
58 <?php foreach ($scripts as $script) : ?>
59 <?php if ($script instanceof \http\Url) : ?>
60
61 <script src="<?= $script ?>"></script>
62
63 <?php else : ?>
64
65 <script><?= $script ?></script>
66
67 <?php endif; ?>
68 <?php endforeach; ?>
69 <?php endif; ?>
70
71 </body>
72 </html>