PluginProbe
WPIDE – File Manager & Code Editor / 3.4.1
WPIDE – File Manager & Code Editor v3.4.1
3.5.9 3.5.8 3.5.7 2.0.14 2.0.15 2.0.16 2.0.2 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1 2.2 2.3 2.3.1 2.3.2 2.4.0 2.5 2.6 3.0 3.1 3.2 3.3 All 55 releases
← All changes | _configuration.php +27 -81 3.5.93.4.1 View file →
@@ -1,8 +1,5 @@
1 1 <?php
2 -
3 -use const WPIDE\Constants\CONTENT_DIR;
4 -
5 2 defined('ABSPATH') || exit;
6 3
7 4 return apply_filters('wpide_config', [
8 5 'general' => [
@@ -22,22 +19,15 @@
22 19 'purple' => 'Purple',
23 20 'red' => 'Red'
24 21 ],
25 22 'default' => 'default'
26 - ],
23 + ]
27 24 ],
28 25 'file' => [
29 - 'advanced_mode' => [
30 - 'type' => 'bool',
31 - 'label' => __('Advanced Mode', 'wpide'),
32 - 'desc_long' => sprintf(__('When enabled, all files and folders will be available for editing including core wordpress files and the wp-config.php unless they are filtered out manually within the settings. %1$sEnable Advanced Mode at your own risk!%2$s Please note that the %1$sFile Recovery Wizard might not work properly%2$s if you ever save core PHP file that contains errors and break the site. However, backups will still be available, so you can recover corrupted files manually via FTP.', 'wpide'), '<strong class="text-danger">', '</strong>'),
33 - 'default' => false,
34 - 'premium' => true
35 - ],
36 26 'root' => [
37 27 'type' => 'folders',
38 28 'label' => __('Root Path', 'wpide'),
39 - 'default' => '/'.basename(CONTENT_DIR)
29 + 'default' => '/'
40 30 ],
41 31 'overwrite_on_upload' => [
42 32 'type' => 'bool',
43 33 'label' => __('Override on upload', 'wpide'),
@@ -79,8 +69,31 @@
79 69 'type' => 'text',
80 70 'label' => __('Default archive name', 'wpide'),
81 71 'default' => 'archive.zip',
82 72 ],
73 + 'editable' => [
74 +
75 + 'type' => 'select',
76 + 'multiple' => true,
77 + 'label' => __('Editable files', 'wpide'),
78 + 'options' => [
79 + '.' => 'File without extension',
80 + 'txt' => '.txt',
81 + 'css' => '.css',
82 + 'scss' => '.scss',
83 + 'less' => '.less',
84 + 'js' => '.js',
85 + 'html' => '.html',
86 + 'php' => '.php',
87 + 'json' => '.json',
88 + 'xml' => '.xml',
89 + 'yml' => '.yml',
90 + 'md' => '.md',
91 + 'log' => '.log',
92 + 'htaccess' => '.htaccess'
93 + ],
94 + 'default' => ['.', 'txt', 'css', 'scss', 'less', 'js', 'html', 'php', 'json', 'yml', 'xml', 'md', 'log', 'htaccess']
95 + ],
83 96 'autoplay_media' => [
84 97 'type' => 'bool',
85 98 'label' => __('Auto play media files, when possible.', 'wpide'),
86 99 'desc' => __('Chromium browsers do not allow autoplay, unless user interaction is detected on the page.', 'wpide'),
@@ -110,75 +123,8 @@
110 123 ]
111 124 ]
112 125 ],
113 126 'editor' => [
114 - 'autosave' => [
115 - 'type' => 'bool',
116 - 'label' => __('Auto save draft', 'wpide'),
117 - 'desc_long' => sprintf(__('While editing, files will automatically be saved every X seconds to a temporary draft file. Original files are not affected. If you ever close or refresh the page by mistake without manually saving a file, the next time you open it, a %1$sFile Recovery%2$s modal will display allowing you to restore from the auto saved file. You can also view and compare both files differences using the %1$sQuick Diff Viewer%2$s.', 'wpide'), '<span class="text-primary">', '</span>'),
118 - 'default' => false,
119 - 'premium' => true
120 - ],
121 - 'autosave_interval' => [
122 - 'type' => 'range',
123 - 'label' => __('Auto save interval (sec)', 'wpide'),
124 - 'attr' => [
125 - 'min' => 5,
126 - 'max' => 120,
127 - 'step' => 5
128 - ],
129 - 'default' => 10,
130 - 'conditions'=> [
131 - [
132 - 'id'=> 'editor.autosave',
133 - 'value'=> true
134 - ]
135 - ],
136 - 'premium' => true
137 - ],
138 - 'code_completion' => [
139 - 'type' => 'bool',
140 - 'label' => __('Enable Autocompletion', 'wpide'),
141 - 'desc' => __('When enabled, the editor will suggest functions while typing.', 'wpide'),
142 - 'default' => true
143 - ],
144 - 'code_info_bar' => [
145 - 'type' => 'bool',
146 - 'label' => __('Enable Info Bar', 'wpide'),
147 - 'desc' => __('When enabled, the editor will show the function reference sidebar for the selected autocomplete suggestion.', 'wpide'),
148 - 'conditions'=> [
149 - [
150 - 'id'=> 'editor.code_completion',
151 - 'value'=> true
152 - ]
153 - ],
154 - 'default' => true
155 - ],
156 - 'editable' => [
157 - 'type' => 'select',
158 - 'multiple' => true,
159 - 'label' => __('Editable files', 'wpide'),
160 - 'desc' => __('Select one of multiple extensions by pressing the shift button.', 'wpide'),
161 - 'options' => apply_filters('wpide_editable_ext_options', [
162 - '.' => 'File without extension',
163 - 'txt' => '.txt',
164 - 'css' => '.css',
165 - 'scss' => '.scss',
166 - 'less' => '.less',
167 - 'js' => '.js',
168 - 'html' => '.html',
169 - 'php' => '.php',
170 - 'json' => '.json',
171 - 'yml' => '.yml',
172 - 'yaml' => '.yaml',
173 - 'xml' => '.xml',
174 - 'svg' => '.svg',
175 - 'md' => '.md',
176 - 'log' => '.log',
177 - 'htaccess' => '.htaccess'
178 - ]),
179 - 'default' => ['.', 'txt', 'css', 'scss', 'less', 'js', 'html', 'php', 'json', 'yml', 'yaml', 'xml', 'svg', 'md', 'log', 'htaccess']
180 - ],
181 127 'font_size' => [
182 128 'type' => 'range',
183 129 'label' => __('Font Size (px)', 'wpide'),
184 130 'attr' => [
@@ -220,9 +166,9 @@
220 166 'min' => 1,
221 167 'max' => 8
222 168 ],
223 169 'default' => 4
224 - ],
170 + ]
225 171 ],
226 172 'db' => [
227 173 'per_page' => [
228 174 'type' => 'select',
@@ -233,7 +179,7 @@
233 179 '500' => '500',
234 180 '1000' => '1000'
235 181 ],
236 182 'default' => '50',
237 - ]
183 + ],
238 184 ]
239 185 ]);