@@ -46,16 +46,16 @@ discard block |
||
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | switch ($modx->config['manager_theme_mode']) {
|
| 49 | - case '1': |
|
| 49 | + case '1': |
|
| 50 | 50 | $body_class .= ' lightness'; |
| 51 | 51 | break; |
| 52 | - case '2': |
|
| 52 | + case '2': |
|
| 53 | 53 | $body_class .= ' light'; |
| 54 | 54 | break; |
| 55 | - case '3': |
|
| 55 | + case '3': |
|
| 56 | 56 | $body_class .= ' dark'; |
| 57 | 57 | break; |
| 58 | - case '4': |
|
| 58 | + case '4': |
|
| 59 | 59 | $body_class .= ' darkness'; |
| 60 | 60 | break; |
| 61 | 61 | } |
@@ -247,9 +247,9 @@ discard block |
||
| 247 | 247 | lockedElementsTranslation: <?= json_encode($unlockTranslations, JSON_FORCE_OBJECT | JSON_UNESCAPED_UNICODE) . "\n" ?> |
| 248 | 248 | }; |
| 249 | 249 | <?php |
| 250 | - $opened = array_filter(array_map('intval', explode('|', $_SESSION['openedArray'])));
|
|
| 251 | - echo (empty($opened) ? '' : 'modx.openedArray[' . implode("] = 1;\n modx.openedArray[", $opened) . '] = 1;') . "\n";
|
|
| 252 | - ?> |
|
| 250 | + $opened = array_filter(array_map('intval', explode('|', $_SESSION['openedArray'])));
|
|
| 251 | + echo (empty($opened) ? '' : 'modx.openedArray[' . implode("] = 1;\n modx.openedArray[", $opened) . '] = 1;') . "\n";
|
|
| 252 | + ?> |
|
| 253 | 253 | </script> |
| 254 | 254 | <script src="media/style/<?= $modx->config['manager_theme'] ?>/js/modx.min.js?v=<?= $lastInstallTime ?>"></script> |
| 255 | 255 | <?php if ($modx->config['show_picker'] != "0") { ?>
|
@@ -17,16 +17,16 @@ discard block |
||
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | switch ($modx->config['manager_theme_mode']) {
|
| 20 | - case '1': |
|
| 20 | + case '1': |
|
| 21 | 21 | $body_class .= ' lightness'; |
| 22 | 22 | break; |
| 23 | - case '2': |
|
| 23 | + case '2': |
|
| 24 | 24 | $body_class .= ' light'; |
| 25 | 25 | break; |
| 26 | - case '3': |
|
| 26 | + case '3': |
|
| 27 | 27 | $body_class .= ' dark'; |
| 28 | 28 | break; |
| 29 | - case '4': |
|
| 29 | + case '4': |
|
| 30 | 30 | $body_class .= ' darkness'; |
| 31 | 31 | break; |
| 32 | 32 | } |
@@ -374,10 +374,10 @@ discard block |
||
| 374 | 374 | stopWorker(); |
| 375 | 375 | |
| 376 | 376 | <?php |
| 377 | - if (isset($_REQUEST['r']) && preg_match('@^[0-9]+$@', $_REQUEST['r'])) {
|
|
| 378 | - echo 'doRefresh(' . $_REQUEST['r'] . ");\n";
|
|
| 379 | - } |
|
| 380 | - ?> |
|
| 377 | + if (isset($_REQUEST['r']) && preg_match('@^[0-9]+$@', $_REQUEST['r'])) {
|
|
| 378 | + echo 'doRefresh(' . $_REQUEST['r'] . ");\n";
|
|
| 379 | + } |
|
| 380 | + ?> |
|
| 381 | 381 | |
| 382 | 382 | var actionButtons = document.getElementById('actions'), actionSelect = document.getElementById('stay');
|
| 383 | 383 | if (actionButtons !== null && actionSelect !== null) {
|
@@ -86,16 +86,16 @@ |
||
| 86 | 86 | $modx->setPlaceholder('year', date('Y')); |
| 87 | 87 | |
| 88 | 88 | switch ($modx->config['manager_theme_mode']) { |
| 89 | - case '1': |
|
| 89 | + case '1': |
|
| 90 | 90 | $modx->setPlaceholder('manager_theme_style', 'lightness'); |
| 91 | 91 | break; |
| 92 | - case '2': |
|
| 92 | + case '2': |
|
| 93 | 93 | $modx->setPlaceholder('manager_theme_style', 'light'); |
| 94 | 94 | break; |
| 95 | - case '3': |
|
| 95 | + case '3': |
|
| 96 | 96 | $modx->setPlaceholder('manager_theme_style', 'dark'); |
| 97 | 97 | break; |
| 98 | - case '4': |
|
| 98 | + case '4': |
|
| 99 | 99 | $modx->setPlaceholder('manager_theme_style', 'darkness'); |
| 100 | 100 | break; } |
| 101 | 101 | |