@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br /> |
4 | 4 | Please use the EVO Content Manager instead of accessing this file directly."); |
5 | 5 | } |
@@ -10,25 +10,25 @@ discard block |
||
10 | 10 | $modx_textdir = isset($modx_textdir) ? $modx_textdir : null; |
11 | 11 | $onManagerMainFrameHeaderHTMLBlock = is_array($evtOut) ? implode("\n", $evtOut) : ''; |
12 | 12 | $textdir = $modx_textdir === 'rtl' ? 'rtl' : 'ltr'; |
13 | -if (!isset($modx->config['mgr_jquery_path'])) { |
|
13 | +if (!isset($modx->config['mgr_jquery_path'])) { |
|
14 | 14 | $modx->config['mgr_jquery_path'] = 'media/script/jquery/jquery.min.js'; |
15 | 15 | } |
16 | -if (!isset($modx->config['mgr_date_picker_path'])) { |
|
16 | +if (!isset($modx->config['mgr_date_picker_path'])) { |
|
17 | 17 | $modx->config['mgr_date_picker_path'] = 'media/script/air-datepicker/datepicker.inc.php'; |
18 | 18 | } |
19 | 19 | |
20 | 20 | $theme_modes = array('', 'lightness', 'light', 'dark', 'darkness'); |
21 | -if (!empty($theme_modes[$_COOKIE['MODX_themeMode']])) { |
|
21 | +if (!empty($theme_modes[$_COOKIE['MODX_themeMode']])) { |
|
22 | 22 | $body_class .= ' ' . $theme_modes[$_COOKIE['MODX_themeMode']]; |
23 | -} elseif (!empty($theme_modes[$modx->config['manager_theme_mode']])) { |
|
23 | +} elseif (!empty($theme_modes[$modx->config['manager_theme_mode']])) { |
|
24 | 24 | $body_class .= ' ' . $theme_modes[$modx->config['manager_theme_mode']]; |
25 | 25 | } |
26 | 26 | |
27 | 27 | $css = 'media/style/' . $modx->config['manager_theme'] . '/style.css?v=' . $lastInstallTime; |
28 | 28 | |
29 | -if ($modx->config['manager_theme'] == 'default') { |
|
29 | +if ($modx->config['manager_theme'] == 'default') { |
|
30 | 30 | if (!file_exists(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/css/styles.min.css') |
31 | - && is_writable(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/css')) { |
|
31 | + && is_writable(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/css')) { |
|
32 | 32 | require_once MODX_BASE_PATH . 'assets/lib/Formatter/CSSMinify.php'; |
33 | 33 | $minifier = new Formatter\CSSMinify(); |
34 | 34 | $minifier->addFile(MODX_MANAGER_PATH . 'media/style/common/bootstrap/css/bootstrap.min.css'); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $css |
49 | 49 | ); |
50 | 50 | } |
51 | - if (file_exists(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/css/styles.min.css')) { |
|
51 | + if (file_exists(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/css/styles.min.css')) { |
|
52 | 52 | $css = 'media/style/' . $modx->config['manager_theme'] . '/css/styles.min.css?v=' . $lastInstallTime; |
53 | 53 | } |
54 | 54 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | <script src="media/script/main.js"></script> |
106 | 106 | <script> |
107 | 107 | <?php |
108 | - if (isset($_REQUEST['r']) && preg_match('@^[0-9]+$@', $_REQUEST['r'])) { |
|
108 | + if (isset($_REQUEST['r']) && preg_match('@^[0-9]+$@', $_REQUEST['r'])) { |
|
109 | 109 | echo 'doRefresh(' . $_REQUEST['r'] . ");\n"; |
110 | 110 | } |
111 | 111 | ?> |