Changeset 5160 for trunk/plugins/LocalFilesEditor/admin.php
- Timestamp:
- Mar 17, 2010, 4:27:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/LocalFilesEditor/admin.php
r3665 r5160 40 40 l10n('locfiledit_onglet_localconf'), 41 41 $my_base_url.'&tab=localconf'); 42 $tabsheet->add('css',43 l10n('locfiledit_onglet_css'),44 $my_base_url.'&tab=css');45 42 $tabsheet->add('tpl', 46 43 l10n('locfiledit_onglet_tpl'), … … 142 139 break; 143 140 144 case 'css':145 $template_dir = PHPWG_ROOT_PATH . 'template';146 $selected = 0;147 $options[] = l10n('locfiledit_choose_file');148 $options[] = '----------------------';149 $value = PHPWG_ROOT_PATH . "template-common/local-layout.css";150 $options[$value] = 'template-common / local-layout.css';151 if ($edited_file == $value) $selected = $value;152 153 foreach (get_dirs($template_dir) as $pwg_template)154 {155 $options[] = '----------------------';156 $value = $template_dir . '/' . $pwg_template . '/local-layout.css';157 $options[$value] = $pwg_template . ' / local-layout.css';158 if ($edited_file == $value) $selected = $value;159 $options[] = '----------------------';160 foreach (get_dirs($template_dir.'/'.$pwg_template.'/theme') as $theme)161 {162 $value = $template_dir.'/'.$pwg_template.'/theme/'.$theme.'/theme.css';163 $options[$value] = $pwg_template . ' / ' . $theme . ' / theme.css';164 if ($edited_file == $value) $selected = $value;165 }166 }167 $template->assign('css_lang_tpl', array(168 'OPTIONS' => $options,169 'SELECTED' => $selected));170 $editarea_options['syntax'] = 'css';171 break;172 173 141 case 'tpl': 174 142 // New file form creation
Note: See TracChangeset
for help on using the changeset viewer.