Changeset 545310
- Timestamp:
- 05/17/2012 10:27:58 AM (14 years ago)
- Location:
- solid-code-theme-editor
- Files:
-
- 67 added
- 2 edited
-
tags/1.0.2 (added)
-
tags/1.0.2/ace (added)
-
tags/1.0.2/ace/ace-compat-noconflict.js (added)
-
tags/1.0.2/ace/ace-compat-uncompressed-noconflict.js (added)
-
tags/1.0.2/ace/ace-compat-uncompressed.js (added)
-
tags/1.0.2/ace/ace-compat.js (added)
-
tags/1.0.2/ace/ace-noconflict.js (added)
-
tags/1.0.2/ace/ace-uncompressed-noconflict.js (added)
-
tags/1.0.2/ace/ace-uncompressed.js (added)
-
tags/1.0.2/ace/ace.js (added)
-
tags/1.0.2/ace/keybinding-emacs-noconflict.js (added)
-
tags/1.0.2/ace/keybinding-emacs-uncompressed-noconflict.js (added)
-
tags/1.0.2/ace/keybinding-emacs-uncompressed.js (added)
-
tags/1.0.2/ace/keybinding-emacs.js (added)
-
tags/1.0.2/ace/keybinding-vim-noconflict.js (added)
-
tags/1.0.2/ace/keybinding-vim-uncompressed-noconflict.js (added)
-
tags/1.0.2/ace/keybinding-vim-uncompressed.js (added)
-
tags/1.0.2/ace/keybinding-vim.js (added)
-
tags/1.0.2/ace/mode-css.js (added)
-
tags/1.0.2/ace/mode-html.js (added)
-
tags/1.0.2/ace/mode-javascript.js (added)
-
tags/1.0.2/ace/mode-php.js (added)
-
tags/1.0.2/ace/mode-sql.js (added)
-
tags/1.0.2/ace/mode-text.js (added)
-
tags/1.0.2/ace/mode-xml.js (added)
-
tags/1.0.2/ace/theme-chrome.js (added)
-
tags/1.0.2/ace/worker-coffee.js (added)
-
tags/1.0.2/ace/worker-css.js (added)
-
tags/1.0.2/ace/worker-javascript.js (added)
-
tags/1.0.2/ace/worker-json.js (added)
-
tags/1.0.2/readme.txt (added)
-
tags/1.0.2/sc-theme-backup.php (added)
-
tags/1.0.2/sc-theme-downloader.php (added)
-
tags/1.0.2/sc-theme-editor.php (added)
-
tags/1.0.2/screenshot-1.jpg (added)
-
tags/1.0.2/scte-script.js (added)
-
tags/1.0.2/scte-style.css (added)
-
tags/1.0.2/tempZips (added)
-
trunk/ace (added)
-
trunk/ace/ace-compat-noconflict.js (added)
-
trunk/ace/ace-compat-uncompressed-noconflict.js (added)
-
trunk/ace/ace-compat-uncompressed.js (added)
-
trunk/ace/ace-compat.js (added)
-
trunk/ace/ace-noconflict.js (added)
-
trunk/ace/ace-uncompressed-noconflict.js (added)
-
trunk/ace/ace-uncompressed.js (added)
-
trunk/ace/ace.js (added)
-
trunk/ace/keybinding-emacs-noconflict.js (added)
-
trunk/ace/keybinding-emacs-uncompressed-noconflict.js (added)
-
trunk/ace/keybinding-emacs-uncompressed.js (added)
-
trunk/ace/keybinding-emacs.js (added)
-
trunk/ace/keybinding-vim-noconflict.js (added)
-
trunk/ace/keybinding-vim-uncompressed-noconflict.js (added)
-
trunk/ace/keybinding-vim-uncompressed.js (added)
-
trunk/ace/keybinding-vim.js (added)
-
trunk/ace/mode-css.js (added)
-
trunk/ace/mode-html.js (added)
-
trunk/ace/mode-javascript.js (added)
-
trunk/ace/mode-php.js (added)
-
trunk/ace/mode-sql.js (added)
-
trunk/ace/mode-text.js (added)
-
trunk/ace/mode-xml.js (added)
-
trunk/ace/theme-chrome.js (added)
-
trunk/ace/worker-coffee.js (added)
-
trunk/ace/worker-css.js (added)
-
trunk/ace/worker-javascript.js (added)
-
trunk/ace/worker-json.js (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/sc-theme-editor.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
solid-code-theme-editor/trunk/readme.txt
r501834 r545310 22 22 * View any theme files in a tree view structure (including sub directories) 23 23 * View all files (not just PHP and CSS) 24 * Edit the following file extensions: PHP, CSS, JS, XML, HTML, HTM, TXT 24 * Edit the following file extensions: PHP, CSS, JS, XML, HTML, HTM, TXT, SQL 25 * Syntax highlighter and line numbers 25 26 * Download a ZIP backup of the whole theme 26 27 * Download individual files … … 46 47 * Updated single downloader to work on linux system 47 48 49 = 1.0.2 = 50 * added support for synthax highlighter for editor using Ace Editor (for Chrome and Firefox) 51 48 52 == Upgrade Notice == 49 53 50 Updated single file downloader to work on linux system 54 added support for synthax highlighter for editor using Ace Editor (for Chrome and Firefox) -
solid-code-theme-editor/trunk/sc-theme-editor.php
r501834 r545310 4 4 Plugin URI: http://solid-code.co.uk/2011/08/solid-code-theme-editor/ 5 5 Description: Adds a special editor to the theme editor with more functionality 6 Version: 1.0. 16 Version: 1.0.2 7 7 Author: Dagan Lev 8 8 Author URI: http://solid-code.co.uk … … 96 96 exit(); 97 97 } 98 } 99 98 } 100 99 } 101 100 ?> … … 135 134 <?php 136 135 $content = ''; 137 $allowedFileExt = array('php','css','js','xml','html','htm','txt' );136 $allowedFileExt = array('php','css','js','xml','html','htm','txt','sql'); 138 137 $urlFile = $file; 139 138 $file = $themes[$theme]['Template Dir'] . '/' . $file; … … 156 155 <form name="textarea_form" id="textarea_form" method="post" action="themes.php?page=scte-theme-editor&theme=<?php echo urlencode($theme); ?>&file=<?php echo urlencode($urlFile); ?>"> 157 156 <?php if(in_array($fxt[count($fxt)-1],$allowedFileExt)){ ?> 158 <textarea wrap="off" cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1"><?php echo $content; ?></textarea> 157 <textarea style="display:none;" wrap="off" cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1"><?php echo $content; ?></textarea> 158 <div id="editor" style="z-index:1000;position: relative;width: 758px;height: 600px;"><?php echo $content; ?></div> 159 <script src="<?php echo WP_PLUGIN_URL; ?>/solid-code-theme-editor/ace/ace.js" type="text/javascript" charset="utf-8"></script> 160 <script src="<?php echo WP_PLUGIN_URL; ?>/solid-code-theme-editor/ace/mode-javascript.js" type="text/javascript" charset="utf-8"></script> 161 <script src="<?php echo WP_PLUGIN_URL; ?>/solid-code-theme-editor/ace/mode-css.js" type="text/javascript" charset="utf-8"></script> 162 <script src="<?php echo WP_PLUGIN_URL; ?>/solid-code-theme-editor/ace/mode-html.js" type="text/javascript" charset="utf-8"></script> 163 <script src="<?php echo WP_PLUGIN_URL; ?>/solid-code-theme-editor/ace/mode-php.js" type="text/javascript" charset="utf-8"></script> 164 <script src="<?php echo WP_PLUGIN_URL; ?>/solid-code-theme-editor/ace/mode-sql.js" type="text/javascript" charset="utf-8"></script> 165 <script src="<?php echo WP_PLUGIN_URL; ?>/solid-code-theme-editor/ace/mode-text.js" type="text/javascript" charset="utf-8"></script> 166 <script src="<?php echo WP_PLUGIN_URL; ?>/solid-code-theme-editor/ace/mode-xml.js" type="text/javascript" charset="utf-8"></script> 167 <script src="<?php echo WP_PLUGIN_URL; ?>/solid-code-theme-editor/ace/theme-chrome.js" type="text/javascript" charset="utf-8"></script> 168 <script type="text/javascript"> 169 <!-- 170 jQuery(document).ready(function(){ 171 if(jQuery.browser.msie){ 172 jQuery('#newcontent').show(); 173 jQuery('#editor').hide(); 174 }else{ 175 var editor = ace.edit("editor"); 176 177 editor.getSession().on('change', function(){ 178 jQuery('#newcontent').val(editor.getSession().getValue()); 179 }); 180 181 var mode = require("ace/mode/<?php 182 //identify mode 183 $fileExt2 = explode(".",$file); 184 $fileExt = end($fileExt2); 185 switch($fileExt){ 186 case 'js': 187 echo 'javascript'; 188 break; 189 case 'css': 190 echo 'css'; 191 break; 192 case 'html': 193 echo 'html'; 194 break; 195 case 'htm': 196 echo 'html'; 197 break; 198 case 'php': 199 echo 'php'; 200 break; 201 case 'sql': 202 echo 'sql'; 203 break; 204 case 'xml': 205 echo 'xml'; 206 break; 207 default: 208 echo 'text'; 209 break; 210 } 211 ?>").Mode; 212 editor.getSession().setMode(new mode()); 213 editor.setTheme("ace/theme/chrome"); 214 } 215 }); 216 //--> 217 </script> 159 218 <p> 160 219 <input type="submit" name="submit" id="submit" class="button-primary" value="Update File" tabindex="2" />
Note: See TracChangeset
for help on using the changeset viewer.