end_js.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <script src="/js/jquery/jquery.cookie.js?<?=JS_LATEST_UPDATE?>"></script>
  2. <script src="/js/jquery/jquery-ui.min.js?<?=JS_LATEST_UPDATE?>"></script>
  3. <script src="/js/jquery/jquery.finder.js?<?=JS_LATEST_UPDATE?>"></script>
  4. <script src="/js/hotkeys.js?<?=JS_LATEST_UPDATE?>"></script>
  5. <script src="/js/events.js?<?=JS_LATEST_UPDATE?>"></script>
  6. <script src="/js/app.js?<?=JS_LATEST_UPDATE?>"></script>
  7. <script src="/js/init.js?<?=JS_LATEST_UPDATE?>"></script>
  8. <script src="/js/i18n.js.php?<?=JS_LATEST_UPDATE?>"></script>
  9. <script src="/js/templates.js?<?=JS_LATEST_UPDATE?>"></script>
  10. <?php foreach(new DirectoryIterator($_SERVER['HESTIA'].'/web/js/custom_scripts') as $customScript){
  11. if($customScript->getExtension() === 'js'){
  12. echo '<script src="/js/custom_scripts/'.rawurlencode($customScript->getBasename()).'"></script>';
  13. } elseif($customScript->getExtension() === "php"){
  14. require_once($customScript->getPathname());
  15. }
  16. } ?>
  17. <script>
  18. $(function() {
  19. hover_menu();
  20. });
  21. </script>
  22. <?php
  23. if (!empty($_SESSION['error_msg'])):
  24. ?>
  25. <div>
  26. <script>
  27. $(function() {
  28. $('#dialog:ui-dialog').dialog('destroy');
  29. $('#dialog-message').dialog({
  30. modal: true,
  31. buttons: {
  32. Ok: function() {
  33. $(this).dialog('close');
  34. }
  35. },
  36. create: function() {
  37. $(this)
  38. .closest('.ui-dialog')
  39. .find('.ui-button:first')
  40. .addClass('submit');
  41. }
  42. });
  43. });
  44. </script>
  45. <div id="dialog-message" title="">
  46. <p><?=htmlentities($_SESSION['error_msg'])?></p>
  47. </div>
  48. </div>
  49. <?php
  50. unset($_SESSION['error_msg']);
  51. endif;