logo
[pharext/pharext.org] / app / views / layout.phtml
index 98597eff0b998063ec7f0aa4739a57bb24af2582..adc4edee9604478ae113578afe43470e9d777a00 100644 (file)
                </title>
                <meta name="viewport" content="width=device-width, initial-scale=1">
                <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
-               <link rel="stylesheet" href="<?= $baseUrl->mod("./octicons/octicons.css") ?>">
-               <link rel="stylesheet" href="<?= $baseUrl->mod("./index.css") ?>">
-               
-               <?php if (!empty($styles)) : ?>
+               <link rel="stylesheet" href="<?= $baseUrl->mod(":./octicons/octicons.css") ?>">
+               <link rel="stylesheet" href="<?= $baseUrl->mod(":./index.css") ?>">
+        <link rel="shortcut icon" type="image/png" href="<?= $baseUrl->mod(":./pharext.png") ?>">
+
+        <?php if (!empty($styles)) : ?>
                        <?php foreach($styles as $style) : ?>
                                <?php if ($style instanceof \http\Url) : ?>
                
                        <?= $this->section("content") ?>
                        
                </div>
+               <?php if (isset($modal)) : ?>
+                       <?= $this->fetch("modal/$modal") ?>
+               <?php endif; ?>
                <footer class="footer">
                        <div class="container">
                                <p>
                                        &copy; 2015 <abbr title="Michael Wallner">m6w6</abbr> 
                                        <addr>&lt;mike&#x40;php&#x2e;net&gt;</addr>
                                        &mdash; Powered by <a href="//github.com/m6w6/pharext">pharext
-                                       <?php
-                                       include_once __DIR__."/../../vendor/m6w6/pharext/src/pharext/Version.php";
-                                       echo pharext\VERSION;
-                                       ?>
+                                       <?= \pharext\Metadata::version() ?>
                                        </a>
                                </p>
                        </div>
                </footer>
                <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
-               <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
-               
+               <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
+               <script>$(".modal").modal("show")</script>
                <?php if (!empty($scripts)) : ?>
                        <?php foreach ($scripts as $script) : ?>
                                <?php if ($script instanceof \http\Url) : ?>