Ignore:
Timestamp:
Mar 17, 2010, 4:27:14 PM (14 years ago)
Author:
patdenice
Message:

Editor
Update editarea to 0.8.2.
Remove CSS tab.
Fix jQuery path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/LocalFilesEditor/admin.php

    r3665 r5160  
    4040               l10n('locfiledit_onglet_localconf'),
    4141               $my_base_url.'&tab=localconf');
    42 $tabsheet->add('css',
    43                l10n('locfiledit_onglet_css'),
    44                $my_base_url.'&tab=css');
    4542$tabsheet->add('tpl',
    4643               l10n('locfiledit_onglet_tpl'),
     
    142139    break;
    143140
    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  
    173141  case 'tpl':
    174142    // New file form creation
Note: See TracChangeset for help on using the changeset viewer.