| @@ -1,9 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | defined('ABSPATH') || exit; |
| 3 | 3 | |
| 4 | -use const WPIDE\Constants\CONTENT_DIR; | |
| 5 | - | |
| 6 | 4 | return apply_filters('wpide_config', [ |
| 7 | 5 | 'general' => [ |
| 8 | 6 | 'dark_mode' => [ |
| 9 | 7 | 'type' => 'bool', |
| @@ -122,8 +120,54 @@ | ||
| 122 | 120 | '@eaDir/', |
| 123 | 121 | '#recycle/', |
| 124 | 122 | 'node_modules/' |
| 125 | 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 | |
| 126 | 170 | ] |
| 127 | 171 | ], |
| 128 | 172 | 'db' => [ |
| 129 | 173 | 'per_page' => [ |