]> git.mxchange.org Git - friendica.git/commitdiff
[frio] Move relevant code to new footer.tpl
authorHypolite Petovan <mrpetovan@gmail.com>
Fri, 21 Sep 2018 01:02:55 +0000 (21:02 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Fri, 21 Sep 2018 01:02:55 +0000 (21:02 -0400)
view/theme/frio/php/default.php
view/theme/frio/templates/footer.tpl [new file with mode: 0644]

index cb683285313c04fb9546d27f49ceefaed0d38e7c..d9ecb7cf0dac0341eebfda149940e38c946f3808 100644 (file)
@@ -138,27 +138,7 @@ if (!isset($minimal)) {
                </main>
 
                <footer>
-                       <?php if (x($page, 'footer')) echo $page['footer']; ?>
-                       <!-- Modal  -->
-                       <div id="modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
-                               <div class="modal-dialog modal-full-screen">
-                                       <div class="modal-content">
-                                               <div id="modal-header" class="modal-header">
-                                                       <button id="modal-cloase" type="button" class="close" data-dismiss="modal" aria-hidden="true">
-                                                               &times;
-                                                       </button>
-                                                       <h4 id="modal-title" class="modal-title"></h4>
-                                               </div>
-                                               <div id="modal-body" class="modal-body">
-                                                       <!-- /# content goes here -->
-                                               </div>
-                                       </div>
-                               </div>
-                       </div>
-
-                       <!-- Dummy div to append other div's when needed (e.g. used for js function editpost() -->
-                       <div id="cache-container"></div>
-
+                       <?php echo defaults($page, 'footer', ''); ?>
                </footer>
 <?php } ?> <!-- End of condition if $minimal else the rest -->
        </body>
diff --git a/view/theme/frio/templates/footer.tpl b/view/theme/frio/templates/footer.tpl
new file mode 100644 (file)
index 0000000..4d58ff8
--- /dev/null
@@ -0,0 +1,23 @@
+                       <!-- Modal  -->
+                       <div id="modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
+                               <div class="modal-dialog modal-full-screen">
+                                       <div class="modal-content">
+                                               <div id="modal-header" class="modal-header">
+                                                       <button id="modal-cloase" type="button" class="close" data-dismiss="modal" aria-hidden="true">
+                                                               &times;
+                                                       </button>
+                                                       <h4 id="modal-title" class="modal-title"></h4>
+                                               </div>
+                                               <div id="modal-body" class="modal-body">
+                                                       <!-- /# content goes here -->
+                                               </div>
+                                       </div>
+                               </div>
+                       </div>
+
+                       <!-- Dummy div to append other div's when needed (e.g. used for js function editpost() -->
+                       <div id="cache-container"></div>
+
+{{foreach $footerScripts as $scriptUrl}}
+                       <script type="text/javascript" src="{{$scriptUrl}}"></script>
+{{/foreach}}