Dotclear


Ignore:
Timestamp:
11/26/12 13:27:11 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add capability to edit locales files for theme editor plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/themeEditor/index.php

    r997 r1036  
    3636          } elseif (!empty($_REQUEST['js'])) { 
    3737               $file = $o->getFileContent('js',$_REQUEST['js']); 
     38          } elseif (!empty($_REQUEST['po'])) { 
     39               $file = $o->getFileContent('po',$_REQUEST['po']); 
    3840          } 
    3941     } 
     
    126128 
    127129     if ($user_ui_colorsyntax) { 
    128           $editorMode = (!empty($_REQUEST['css']) ? "css" : (!empty($_REQUEST['js']) ? "javascript" : "text/html")); 
     130          $editorMode =  
     131               (!empty($_REQUEST['css']) ? "css" : 
     132               (!empty($_REQUEST['js']) ? "javascript" : 
     133               (!empty($_REQUEST['po']) ? "text/plain" : "text/html"))); 
    129134          echo  
    130135          '<script> 
     
    166171<h3><?php echo __('JavaScript files'); ?></h3> 
    167172<?php echo $o->filesList('js','<a href="'.$p_url.'&amp;js=%2$s" class="js-link">%1$s</a>'); ?> 
     173 
     174<h3><?php echo __('Locales files'); ?></h3> 
     175<?php echo $o->filesList('po','<a href="'.$p_url.'&amp;po=%2$s" class="po-link">%1$s</a>'); ?> 
    168176</div> 
    169177 
Note: See TracChangeset for help on using the changeset viewer.

Sites map