|
8 | 8 | <script src="/js/i18n.js.php?<?=JS_LATEST_UPDATE?>"></script> |
9 | 9 | <script src="/js/templates.js?<?=JS_LATEST_UPDATE?>"></script> |
10 | 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 | | - } |
| 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 | 16 | } ?> |
17 | 17 | <script> |
18 | | - $(function() { |
19 | | - hover_menu(); |
20 | | - }); |
| 18 | + $(function() { |
| 19 | + hover_menu(); |
| 20 | + }); |
21 | 21 | </script> |
22 | 22 |
|
23 | 23 | <?php |
24 | | - if (!empty($_SESSION['error_msg'])): |
25 | | - ?> |
26 | | - <div> |
27 | | - <script> |
28 | | - $(function() { |
29 | | - $('#dialog:ui-dialog').dialog('destroy'); |
30 | | - $('#dialog-message').dialog({ |
31 | | - modal: true, |
32 | | - resizable: false, |
33 | | - buttons: { |
34 | | - Ok: function() { |
35 | | - $(this).dialog('close'); |
36 | | - } |
37 | | - }, |
38 | | - create: function() { |
39 | | - $(this) |
40 | | - .closest('.ui-dialog') |
41 | | - .find('.ui-button:first') |
42 | | - .addClass('submit'); |
43 | | - } |
44 | | - }); |
45 | | - }); |
46 | | - </script> |
47 | | - <div id="dialog-message" title=""> |
48 | | - <p><?=htmlentities($_SESSION['error_msg'])?></p> |
49 | | - </div> |
50 | | - </div> |
| 24 | + if (!empty($_SESSION['error_msg'])): |
| 25 | + ?> |
| 26 | + <div> |
| 27 | + <script> |
| 28 | + $(function() { |
| 29 | + $('#dialog:ui-dialog').dialog('destroy'); |
| 30 | + $('#dialog-message').dialog({ |
| 31 | + modal: true, |
| 32 | + resizable: false, |
| 33 | + buttons: { |
| 34 | + Ok: function() { |
| 35 | + $(this).dialog('close'); |
| 36 | + } |
| 37 | + }, |
| 38 | + create: function() { |
| 39 | + $(this) |
| 40 | + .closest('.ui-dialog') |
| 41 | + .find('.ui-button:first') |
| 42 | + .addClass('submit'); |
| 43 | + } |
| 44 | + }); |
| 45 | + }); |
| 46 | + </script> |
| 47 | + <div id="dialog-message" title=""> |
| 48 | + <p><?=htmlentities($_SESSION['error_msg'])?></p> |
| 49 | + </div> |
| 50 | + </div> |
51 | 51 | <?php |
52 | | - unset($_SESSION['error_msg']); |
53 | | - endif; |
| 52 | + unset($_SESSION['error_msg']); |
| 53 | + endif; |
0 commit comments