Changeset 3874:ab8368569446 for plugins/themeEditor/_admin.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/themeEditor/_admin.php
r3731 r3874 16 16 } 17 17 18 $core->addBehavior('adminCurrentThemeDetails', array('themeEditorBehaviors', 'theme_editor_details'));18 $core->addBehavior('adminCurrentThemeDetails', ['themeEditorBehaviors', 'theme_editor_details']); 19 19 20 $core->addBehavior('adminBeforeUserOptionsUpdate', array('themeEditorBehaviors', 'adminBeforeUserUpdate'));21 $core->addBehavior('adminPreferencesForm', array('themeEditorBehaviors', 'adminPreferencesForm'));20 $core->addBehavior('adminBeforeUserOptionsUpdate', ['themeEditorBehaviors', 'adminBeforeUserUpdate']); 21 $core->addBehavior('adminPreferencesForm', ['themeEditorBehaviors', 'adminPreferencesForm']); 22 22 23 23 class themeEditorBehaviors … … 51 51 52 52 $themes_list = dcPage::getCodeMirrorThemes(); 53 $themes_combo = array(__('Default') => '');53 $themes_combo = [__('Default') => '']; 54 54 foreach ($themes_list as $theme) { 55 55 $themes_combo[$theme] = $theme; … … 69 69 '<p><label for="colorsyntax_theme" class="classic">' . __('Theme:') . '</label> ' . 70 70 form::combo('colorsyntax_theme', $themes_combo, 71 array(71 [ 72 72 'default' => $core->auth->user_prefs->interface->colorsyntax_theme, 73 'extra_html' => 'onchange="selectTheme()"' )) .73 'extra_html' => 'onchange="selectTheme()"']) . 74 74 '</p>'; 75 75 } else { … … 78 78 echo '</div>'; 79 79 echo '<div class="col">'; 80 echo dcPage::jsLoadCodeMirror('', false, array('javascript'));80 echo dcPage::jsLoadCodeMirror('', false, ['javascript']); 81 81 foreach ($themes_list as $theme) { 82 82 echo dcPage::cssLoad('js/codemirror/theme/' . $theme . '.css');
Note: See TracChangeset
for help on using the changeset viewer.