Changeset 3133620
- Timestamp:
- 08/11/2024 04:40:18 AM (19 months ago)
- Location:
- file-manager-advanced/trunk
- Files:
-
- 66 added
- 7 edited
-
application/class_fma_admin_menus.php (modified) (1 diff)
-
application/class_fma_main.php (modified) (3 diffs)
-
application/library/codemirror/theme (added)
-
application/library/codemirror/theme/3024-day.css (added)
-
application/library/codemirror/theme/3024-night.css (added)
-
application/library/codemirror/theme/abbott.css (added)
-
application/library/codemirror/theme/abcdef.css (added)
-
application/library/codemirror/theme/ambiance-mobile.css (added)
-
application/library/codemirror/theme/ambiance.css (added)
-
application/library/codemirror/theme/ayu-dark.css (added)
-
application/library/codemirror/theme/ayu-mirage.css (added)
-
application/library/codemirror/theme/base16-dark.css (added)
-
application/library/codemirror/theme/base16-light.css (added)
-
application/library/codemirror/theme/bespin.css (added)
-
application/library/codemirror/theme/blackboard.css (added)
-
application/library/codemirror/theme/cobalt.css (added)
-
application/library/codemirror/theme/colorforth.css (added)
-
application/library/codemirror/theme/darcula.css (added)
-
application/library/codemirror/theme/dracula.css (added)
-
application/library/codemirror/theme/duotone-dark.css (added)
-
application/library/codemirror/theme/duotone-light.css (added)
-
application/library/codemirror/theme/eclipse.css (added)
-
application/library/codemirror/theme/elegant.css (added)
-
application/library/codemirror/theme/erlang-dark.css (added)
-
application/library/codemirror/theme/gruvbox-dark.css (added)
-
application/library/codemirror/theme/hopscotch.css (added)
-
application/library/codemirror/theme/icecoder.css (added)
-
application/library/codemirror/theme/idea.css (added)
-
application/library/codemirror/theme/isotope.css (added)
-
application/library/codemirror/theme/juejin.css (added)
-
application/library/codemirror/theme/lesser-dark.css (added)
-
application/library/codemirror/theme/liquibyte.css (added)
-
application/library/codemirror/theme/lucario.css (added)
-
application/library/codemirror/theme/material-darker.css (added)
-
application/library/codemirror/theme/material-ocean.css (added)
-
application/library/codemirror/theme/material-palenight.css (added)
-
application/library/codemirror/theme/material.css (added)
-
application/library/codemirror/theme/mbo.css (added)
-
application/library/codemirror/theme/mdn-like.css (added)
-
application/library/codemirror/theme/midnight.css (added)
-
application/library/codemirror/theme/monokai.css (added)
-
application/library/codemirror/theme/moxer.css (added)
-
application/library/codemirror/theme/neat.css (added)
-
application/library/codemirror/theme/neo.css (added)
-
application/library/codemirror/theme/night.css (added)
-
application/library/codemirror/theme/nord.css (added)
-
application/library/codemirror/theme/oceanic-next.css (added)
-
application/library/codemirror/theme/panda-syntax.css (added)
-
application/library/codemirror/theme/paraiso-dark.css (added)
-
application/library/codemirror/theme/paraiso-light.css (added)
-
application/library/codemirror/theme/pastel-on-dark.css (added)
-
application/library/codemirror/theme/railscasts.css (added)
-
application/library/codemirror/theme/rubyblue.css (added)
-
application/library/codemirror/theme/seti.css (added)
-
application/library/codemirror/theme/shadowfox.css (added)
-
application/library/codemirror/theme/solarized.css (added)
-
application/library/codemirror/theme/ssms.css (added)
-
application/library/codemirror/theme/the-matrix.css (added)
-
application/library/codemirror/theme/tomorrow-night-bright.css (added)
-
application/library/codemirror/theme/tomorrow-night-eighties.css (added)
-
application/library/codemirror/theme/ttcn.css (added)
-
application/library/codemirror/theme/twilight.css (added)
-
application/library/codemirror/theme/vibrant-ink.css (added)
-
application/library/codemirror/theme/xq-dark.css (added)
-
application/library/codemirror/theme/xq-light.css (added)
-
application/library/codemirror/theme/yeti.css (added)
-
application/library/codemirror/theme/yonce.css (added)
-
application/library/codemirror/theme/zenburn.css (added)
-
application/library/js/elfinder_script.js (modified) (2 diffs)
-
application/pages/controls.php (modified) (2 diffs)
-
constants.php (modified) (2 diffs)
-
file_manager_advanced.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
file-manager-advanced/trunk/application/class_fma_admin_menus.php
r3126681 r3133620 140 140 $save['enable_trash'] = isset($_POST['enable_trash']) ? sanitize_text_field($_POST['enable_trash']) : 0; 141 141 $save['enable_htaccess'] = isset($_POST['enable_htaccess']) ? sanitize_text_field($_POST['enable_htaccess']) : 0; 142 $save['fma_upload_allow'] = isset($_POST['fma_upload_allow']) ? sanitize_text_field($_POST['fma_upload_allow']) : 'all'; 142 $save['fma_upload_allow'] = isset($_POST['fma_upload_allow']) ? sanitize_text_field($_POST['fma_upload_allow']) : 'all'; 143 $save['fma_cm_theme'] = isset($_POST['fma_cm_theme']) ? sanitize_text_field($_POST['fma_cm_theme']) : 'default'; 143 144 $u = update_option('fmaoptions',$save); 144 145 if($u) { -
file-manager-advanced/trunk/application/class_fma_main.php
r3024717 r3133620 159 159 wp_enqueue_script( 'javascript', plugins_url('library/codemirror/mode/javascript/javascript.js', __FILE__ )); 160 160 wp_enqueue_script( 'clike', plugins_url('library/codemirror/mode/clike/clike.js', __FILE__ )); 161 wp_enqueue_script( 'php', plugins_url('library/codemirror/mode/php/php.js', __FILE__ )); 161 wp_enqueue_script( 'php', plugins_url('library/codemirror/mode/php/php.js', __FILE__ )); 162 /** 163 * Code Mirror Themes 164 */ 165 $cm_theme = isset($this->settings['fma_cm_theme']) ? $this->settings['fma_cm_theme'] : 'default'; 166 if($cm_theme != 'default'): 167 wp_enqueue_style( 'codemirror_theme', plugins_url('library/codemirror/theme/'.$cm_theme.'.css', __FILE__)); 168 endif; 169 162 170 /** 163 171 * Add Parameters … … 174 182 'nonce' => $nonce, 175 183 'locale' => $locale, 176 'ui' => $display_ui_options 184 'ui' => $display_ui_options, 185 'cm_theme' => $cm_theme 177 186 ) 178 187 ); … … 181 190 182 191 } 192 /** 193 * Fetch code mirror theme 194 **/ 195 public static function cm_themes() { 196 $cm_themes_dir = FMA_CM_THEMES_PATH; 197 $cm_themes = []; 198 $cm_themes['default'] = 'default'; 199 foreach(glob($cm_themes_dir.'/*.css') as $file) { 200 $bn = basename($file, ".css"); 201 $cm_themes[$bn] = $bn; 202 } 203 return $cm_themes; 204 } 183 205 /* 184 206 review -
file-manager-advanced/trunk/application/library/js/elfinder_script.js
r3058403 r3133620 2 2 var fmakey = afm_object.nonce; 3 3 var fma_locale = afm_object.locale; 4 var fma_cm_theme = afm_object.cm_theme; 4 5 jQuery('#file_manager_advanced').elfinder( 5 6 // 1st Arg - options … … 29 30 lineNumbers: true, 30 31 lineWrapping: true, 31 lint: true 32 lint: true, 33 theme: fma_cm_theme 32 34 }); 33 35 return editor; -
file-manager-advanced/trunk/application/pages/controls.php
r2964898 r3133620 7 7 $message = ($type == '2') ? 'Unable to save settings.' : 'Settings updated successfully.'; 8 8 $roles = $this->wpUserRoles(); 9 $cm_themes = class_fma_main::cm_themes(); 9 10 ?> 10 11 <?php echo class_fma_admin_menus::shortcodeUpdateNotice();?> … … 170 171 </td> 171 172 </tr> 173 <tr> 174 <th><?php _e('Code Editor Theme <sup style="color:red;">New</sup>','file-manager-advanced')?></th> 175 <td> 176 <select name="fma_cm_theme" id="fma_cm_theme"> 177 <?php foreach ($cm_themes as $key => $val) : 178 $selected = ""; 179 if(isset($settings['fma_cm_theme'])) { 180 if($key == $settings['fma_cm_theme']) { 181 $selected = 'selected=selected'; 182 } 183 } 184 ?> 185 <option value="<?php echo $key; ?>" <?php echo $selected;?>><?php _e($val,'file-manager-advanced')?></option> 186 <?php endforeach;?> 187 </select> 188 <p class="description"><?php _e('Select code editor theme. Default: default','file-manager-advanced')?></p> 189 </td> 190 </tr> 172 191 </tbody> 173 192 </table> -
file-manager-advanced/trunk/constants.php
r3126681 r3133620 5 5 */ 6 6 if ( !defined('FMA_VERSION') ) { 7 define('FMA_VERSION', '5.2. 7');7 define('FMA_VERSION', '5.2.8'); 8 8 } 9 9 /** … … 20 20 } 21 21 /** 22 * Code mirror themes path 23 */ 24 if(!defined('FMA_CM_THEMES_PATH')) { 25 define('FMA_CM_THEMES_PATH', FMAFILEPATH.'application/library/codemirror/theme'); 26 } 27 /** 22 28 * File Manager Operations 23 29 */ -
file-manager-advanced/trunk/file_manager_advanced.php
r3126681 r3133620 5 5 Description: Cpanel for files management in wordpress 6 6 Author: modalweb 7 Version: 5.2. 77 Version: 5.2.8 8 8 Author URI: https://advancedfilemanager.com 9 9 License: GPLv2 -
file-manager-advanced/trunk/readme.txt
r3126681 r3133620 5 5 Tested up to: 6.6.1 6 6 Requires PHP: 7.0 7 Stable tag: 5.2. 77 Stable tag: 5.2.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 113 113 == Changelog == 114 114 115 = 5.2.8 (11th Aug, 2024) = 116 * Minor fixes 117 115 118 = 5.2.7 (28th July, 2024) = 116 119 * Compatible with 6.6.1
Note: See TracChangeset
for help on using the changeset viewer.