webhook management
[pharext/pharext.org] / app / views / layout.phtml
index 98597eff0b998063ec7f0aa4739a57bb24af2582..383ae220022e3964618e040c57c86986a62b6f62 100644 (file)
@@ -37,6 +37,9 @@
                        <?= $this->section("content") ?>
                        
                </div>
+               <?php if (isset($modal)) : ?>
+                       <?= $this->fetch("modal/$modal") ?>
+               <?php endif; ?>
                <footer class="footer">
                        <div class="container">
                                <p>
@@ -53,7 +56,7 @@
                </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>$(".modal").modal("show")</script>
                <?php if (!empty($scripts)) : ?>
                        <?php foreach ($scripts as $script) : ?>
                                <?php if ($script instanceof \http\Url) : ?>