PluginProbe
WPIDE – File Manager & Code Editor / 3.4.2
WPIDE – File Manager & Code Editor v3.4.2
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 3.4 All 54 releases
wpide / _configuration.php

_configuration.php in WPIDE – File Manager & Code Editor 3.4.2, at _configuration.php

186 lines 6.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined('ABSPATH') || exit;
3
4 return apply_filters('wpide_config', [
5 'general' => [
6 'dark_mode' => [
7 'type' => 'bool',
8 'label' => __('Dark Mode', 'wpide'),
9 'default' => false
10 ],
11 'skin' => [
12 'type' => 'swatches',
13 'label' => __('Theme', 'wpide'),
14 'options' => [
15 'default' => 'Default',
16 'blue' => 'Blue',
17 'egyptian' => 'Egyptian',
18 'green' => 'Green',
19 'purple' => 'Purple',
20 'red' => 'Red'
21 ],
22 'default' => 'default'
23 ]
24 ],
25 'file' => [
26 'root' => [
27 'type' => 'folders',
28 'label' => __('Root Path', 'wpide'),
29 'default' => '/'
30 ],
31 'overwrite_on_upload' => [
32 'type' => 'bool',
33 'label' => __('Override on upload', 'wpide'),
34 'default' => false
35 ],
36 'calc_dir_size' => [
37 'type' => 'select',
38 'label' => __('Calculate folder size', 'wpide'),
39 'desc' => __('Folder size will be cached for faster load on subsequent requests.', 'wpide'),
40 'options' => [
41 'ondemand' => __('On Demand', 'wpide'),
42 'onload' => __('On load', 'wpide'),
43 'disabled' => __('Disabled', 'wpide'),
44 ],
45 'default' => 'ondemand',
46 ],
47 'backups_max_days' => [
48 'type' => 'number',
49 'label' => __('Backups max days', 'wpide'),
50 'desc' => __('Remove backup folders older than X days', 'wpide'),
51 'default' => 5
52 ],
53 'upload_max_size' => [
54 'type' => 'number',
55 'label' => __('Max upload size (MB)', 'wpide'),
56 'default' => 100 * 1024 * 1024, // 100MB
57 ],
58 'upload_chunk_size' => [
59 'type' => 'number',
60 'label' => __('Upload chunk size (MB)', 'wpide'),
61 'default' => 1 * 1024 * 1024, // 1MB
62 ],
63 'upload_simultaneous' => [
64 'type' => 'number',
65 'label' => __('Simultaneous uploads', 'wpide'),
66 'default' => 3,
67 ],
68 'default_archive_name' => [
69 'type' => 'text',
70 'label' => __('Default archive name', 'wpide'),
71 'default' => 'archive.zip',
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 ],
96 'autoplay_media' => [
97 'type' => 'bool',
98 'label' => __('Auto play media files, when possible.', 'wpide'),
99 'desc' => __('Chromium browsers do not allow autoplay, unless user interaction is detected on the page.', 'wpide'),
100 'default' => false
101 ],
102 'search_simultaneous' => [
103 'type' => 'number',
104 'label' => __('Simultaneous search', 'wpide'),
105 'default' => 5,
106 ],
107 'filter_entries' => [
108 'type' => 'text',
109 'repeater' => true,
110 'label' => __('Entries filter', 'wpide'),
111 'desc' => __('Enter partial or full path. To exclude folders, add a trailing slash. Note: WordPress core files as well as important WPide folders and files are hidden automatically.', 'wpide'),
112 'default' => [
113 '.DS_Store',
114 '.tmb/',
115 '.idea/',
116 '.codekit-cache/',
117 '.git/',
118 '.sass-cache/',
119 'Recycle.bin/',
120 '@eaDir/',
121 '#recycle/',
122 'node_modules/'
123 ]
124 ]
125 ],
126 'editor' => [
127 'font_size' => [
128 'type' => 'range',
129 'label' => __('Font Size (px)', 'wpide'),
130 'attr' => [
131 'min' => 10,
132 'max' => 20
133 ],
134 'default' => 12,
135 ],
136 'scroll_speed' => [
137 'type' => 'range',
138 'label' => __('Scroll Speed', 'wpide'),
139 'attr' => [
140 'min' => 1,
141 'max' => 20
142 ],
143 'default' => 3,
144 ],
145 'hightlight_active_line' => [
146 'type' => 'bool',
147 'label' => __('Highlight Active Line', 'wpide'),
148 'default' => false
149 ],
150 'behaviours_enabled' => [
151 'type' => 'bool',
152 'label' => __('Enable Behaviours', 'wpide'),
153 'desc' => __('When enabled, the editor will auto close tags and brackets', 'wpide'),
154 'default' => true
155 ],
156 'use_soft_tabs' => [
157 'type' => 'bool',
158 'label' => __('Use Soft Tabs', 'wpide'),
159 'desc' => __('When enabled, a tab key press will insert spaces instead of the tab character', 'wpide'),
160 'default' => false
161 ],
162 'tab_size' => [
163 'type' => 'range',
164 'label' => __('Tab Size', 'wpide'),
165 'attr' => [
166 'min' => 1,
167 'max' => 8
168 ],
169 'default' => 4
170 ]
171 ],
172 'db' => [
173 'per_page' => [
174 'type' => 'select',
175 'label' => __('Items per page default', 'wpide'),
176 'options' => [
177 '50' => '50',
178 '100' => '100',
179 '500' => '500',
180 '1000' => '1000'
181 ],
182 'default' => '50',
183 ],
184 ]
185 ]);
186