Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: HTML
Posted by: Matt Lowe
Added: Dec 22, 2017 12:17 PM
Modified: Dec 22, 2017 12:33 PM
Views: 12
Basic HTML template footer including bootstrap, jquery, jquery-ui and smarty loop for included JS files
Smarty array :
$pageFormat['js'] -> Array of links to JS files
  1. <footer>
  2.     <p>&copy; ACTweb 2017</p>
  3. </footer>
  4. <!-- Optional JavaScript -->
  5. <!-- jQuery first, then JQuery-UI, then Bootstrap JS -->
  6. <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
  7. <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
  8. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"></script>
  9. {* Add any requested JavaScript files *}
  10. {if $pageFormat['js'] != ''}
  11.     {foreach $pageFormat['js'] as $link}
  12.         <script src="{$link}"></script>
  13.     {/foreach}
  14. {/if}
  15. </body>
  16. </html>