PluginProbe ʕ •ᴥ•ʔ
Email Encoder – Protect Email Addresses and Phone Numbers / 2.4.2
Email Encoder – Protect Email Addresses and Phone Numbers v2.4.2
2.5.0 2.4.8 trunk 0.10 0.11 0.12 0.20 0.21 0.22 0.30 0.31 0.32 0.40 0.41 0.42 0.50 0.60 0.70 0.71 0.80 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.5 1.5.2 1.51 1.53 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.10 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7
email-encoder-bundle / config / SettingsConfig.php
email-encoder-bundle / config Last commit date
SafeHtmlConfig.php 6 months ago SettingsConfig.php 6 months ago
SettingsConfig.php
292 lines
1 <?php
2
3 return [
4
5 'protect' => [
6 'fieldset' => [ 'slug' => 'main', 'label' => 'Label' ],
7 'id' => 'protect',
8 'type' => 'multi-input',
9 'input-type' => 'radio',
10 'title' => __( 'Protect emails', 'email-encoder-bundle' ),
11 'inputs' => [
12 1 => [
13 'label' => __( 'Full-page scan', 'email-encoder-bundle' ),
14 'description' => __('This will check the whole page against any mails and secures them.', 'email-encoder-bundle' )
15 ],
16 2 => [
17 'label' => __( 'Wordpress filters', 'email-encoder-bundle' ),
18 'description' => __('Secure only mails that occur within WordPress filters. (Not recommended)', 'email-encoder-bundle' ),
19 'advanced' => true,
20 ],
21 3 => [
22 'label' => __( 'Don\'t do anything.', 'email-encoder-bundle' ),
23 'description' => __('This turns off the protection for emails. (Not recommended)', 'email-encoder-bundle')
24 ],
25 ],
26 'required' => false
27 ],
28
29 'protect_using' => [
30 'fieldset' => [ 'slug' => 'main', 'label' => 'Label' ],
31 'id' => 'protect_using',
32 'type' => 'multi-input',
33 'input-type' => 'radio',
34 'title' => __( 'Protect emails using', 'email-encoder-bundle' ),
35 'inputs' => [
36 'with_javascript' => [
37 'label' => __( 'automatically the best method (including javascript)', 'email-encoder-bundle' )
38 ],
39 'without_javascript' => [
40 'label' => __( 'automatically the best method (excluding javascript)', 'email-encoder-bundle' ),
41 ],
42 'strong_method' => [
43 'label' => __( 'a strong method that replaces all emails with a "*protection text*".', 'email-encoder-bundle' ),
44 'description' => __('You can configure the protection text within the advanced settings.', 'email-encoder-bundle')
45 ],
46 'char_encode' => [
47 'label' => __( 'simple HTML character encoding.', 'email-encoder-bundle' ),
48 'description' => __('Offers good (but not the best) protection, which saves you in most scenarios.', 'email-encoder-bundle')
49 ],
50 ],
51 'required' => false
52 ],
53
54 'filter_body' => [
55 'fieldset' => [ 'slug' => 'main', 'label' => 'Label' ],
56 'id' => 'filter_body',
57 'type' => 'multi-input',
58 'input-type' => 'checkbox',
59 'advanced' => true,
60 'title' => __( 'Protect...', 'email-encoder-bundle' ),
61 'label' => __( 'Customize what this plugin protects.', 'email-encoder-bundle' ),
62 'inputs' => [
63 'filter_rss' => [
64 'advanced' => true,
65 'label' => __( 'RSS feed', 'email-encoder-bundle' ),
66 'description' => __( 'Activating this option results in protecting the rss feed based on the given protection method.', 'email-encoder-bundle' )
67 ],
68 'ajax_requests' => [
69 'advanced' => true,
70 'label' => __( 'Ajax requests', 'email-encoder-bundle' ),
71 'description' => __( 'By default, ajax requests can send clear emails in some situations. Activating this settings will apply encoding to ajax-relate requests.', 'email-encoder-bundle' )
72 ],
73 'admin_requests' => [
74 'advanced' => true,
75 'label' => __( 'Admin requests', 'email-encoder-bundle' ),
76 'description' => __( 'By default, we only protect frontend requests (Everything people see on your website). Activating this setting will also protect the backend of your website (The admin area).', 'email-encoder-bundle' )
77 ],
78 'remove_shortcodes_rss' => [
79 'advanced' => true,
80 'label' => __( 'Remove all shortcodes from the RSS feeds', 'email-encoder-bundle' ),
81 'description' => __( 'Activating this option results in protecting the rss feed based on the given protection method.', 'email-encoder-bundle' )
82 ],
83 'input_strong_protection' => [
84 'advanced' => true,
85 'label' => __( 'input form email fields using strong protection.', 'email-encoder-bundle' ),
86 'description' => __( 'Warning: this option could conflict with certain form plugins. Test it first. (Requires javascript)', 'email-encoder-bundle' )
87 ],
88 'encode_mailtos' => [
89 'advanced' => true,
90 'label' => __( 'plain emails by converting them to mailto links', 'email-encoder-bundle' ),
91 'description' => __( 'Plain emails will be automatically converted to mailto links where possible.', 'email-encoder-bundle' )
92 ],
93 'convert_plain_to_image' => [
94 'advanced' => true,
95 'label' => __( 'plain emails by converting them to png images', 'email-encoder-bundle' ),
96 'description' => __( 'Plain emails will be automatically converted to png images where possible.', 'email-encoder-bundle' )
97 ],
98 'protect_shortcode_tags' => [
99 'advanced' => true,
100 'label' => __( 'shortcode content', 'email-encoder-bundle' ),
101 'description' => __( 'Protect every shortcode content separately. (This may slows down your site)', 'email-encoder-bundle' )
102 ],
103 'filter_hook' => [
104 'advanced' => true,
105 'label' => __( 'emails from "init" hook', 'email-encoder-bundle' ),
106 'description' => __( 'Check this option if you want to register the email filters on the "init" hook instead of the "wp" hook.', 'email-encoder-bundle' )
107 ],
108 'deactivate_rtl' => [
109 'advanced' => true,
110 'label' => __( 'mailto links without CSS direction', 'email-encoder-bundle' ),
111 'description' => __( 'Check this option if your site does not support CSS directions.', 'email-encoder-bundle' )
112 ],
113 'no_script_tags' => [
114 'advanced' => true,
115 'label' => __( 'no script tags', 'email-encoder-bundle' ),
116 'description' => __( 'Check this option if you face issues with encoded script tags. This will deactivate protection for script tags.', 'email-encoder-bundle' )
117 ],
118 'no_attribute_validation' => [
119 'advanced' => true,
120 'label' => __( 'html attributes without soft encoding.', 'email-encoder-bundle' ),
121 'description' => __( 'Do not soft-filter all html attributes. This might optimizes the performance, but can break the site if other plugins use your email in attribute tags.', 'email-encoder-bundle' )
122 ],
123 ],
124 'required' => false,
125 ],
126
127 'image_settings' => [
128 'fieldset' => [ 'slug' => 'main', 'label' => 'Label' ],
129 'id' => 'image_settings',
130 'type' => 'multi-input',
131 'input-type' => 'text',
132 'advanced' => true,
133 'title' => __( 'Image settings', 'email-encoder-bundle' ),
134 'label' => __( 'Customize the settings for dynamically created images.', 'email-encoder-bundle' ),
135 'inputs' => [
136 'image_color' => [
137 'advanced' => true,
138 'label' => __( 'Image Colors', 'email-encoder-bundle' ),
139 'description' => __( 'Please include RGB colors, comme saparated. E.g.: 0,0,255', 'email-encoder-bundle' )
140 ],
141 'image_background_color' => [
142 'advanced' => true,
143 'label' => __( 'Image Background Colors', 'email-encoder-bundle' ),
144 'description' => __( 'Please include RGB colors, comme saparated. E.g.: 0,0,255', 'email-encoder-bundle' )
145 ],
146 'image_text_opacity' => [
147 'advanced' => true,
148 'label' => __( 'Text Opacity', 'email-encoder-bundle' ),
149 'description' => __( 'Change the text opacity for the created images. 0 = not transparent - 127 = completely transprent', 'email-encoder-bundle' )
150 ],
151 'image_background_opacity' => [
152 'advanced' => true,
153 'label' => __( 'Background Opacity', 'email-encoder-bundle' ),
154 'description' => __( 'Change the background opacity for the created images. 0 = not transparent - 127 = completely transprent', 'email-encoder-bundle' )
155 ],
156 'image_font_size' => [
157 'advanced' => true,
158 'label' => __( 'Font Size', 'email-encoder-bundle' ),
159 'description' => __( 'Change the font size of the image text. Default: 4 - You can choose from 1 - 5', 'email-encoder-bundle' )
160 ],
161 'image_underline' => [
162 'advanced' => true,
163 'label' => __( 'Text Underline', 'email-encoder-bundle' ),
164 'description' => __( 'Adds a line beneath the text to highlight it as a link. empty or 0 deactivates the border. 1 = 1px', 'email-encoder-bundle' )
165 ],
166 ],
167 'required' => false,
168 ],
169
170 'skip_posts' => [
171 'fieldset' => [ 'slug' => 'main', 'label' => 'Label' ],
172 'id' => 'skip_posts',
173 'type' => 'text',
174 'advanced' => true,
175 'title' => __('Exclude post id\'s from protection', 'email-encoder-bundle'),
176 'placeholder' => '',
177 'required' => false,
178 'description' => __('By comma separating post id\'s ( e.g. 123,4535,643), you are able to exclude these posts from the logic protection.', 'email-encoder-bundle')
179 ],
180
181 'skip_query_parameters' => [
182 'fieldset' => [ 'slug' => 'main', 'label' => 'Label' ],
183 'id' => 'skip_query_parameters',
184 'type' => 'text',
185 'advanced' => true,
186 'title' => __('Exclude URL parameters from protection', 'email-encoder-bundle'),
187 'placeholder' => '',
188 'required' => false,
189 'description' => __('By comma separating URL (Query) parameters ( e.g. param1,param2), you are able to exclude URLs with these parameters from the protection. URL or Query parameters are found at the end of your URL (e.g. domain.com?param1=test)', 'email-encoder-bundle')
190 ],
191
192 'protection_text' => [
193 'fieldset' => [ 'slug' => 'main', 'label' => 'Label' ],
194 'id' => 'protection_text',
195 'type' => 'text',
196 'advanced' => true,
197 'title' => __('Set protection text *', 'email-encoder-bundle'),
198 'placeholder' => '',
199 'required' => false,
200 'description' => __('This text will be shown for protected email addresses and within noscript tags.', 'email-encoder-bundle')
201 ],
202
203 'class_name' => [
204 'fieldset' => [ 'slug' => 'main', 'label' => 'Label' ],
205 'id' => 'class_name',
206 'type' => 'text',
207 'advanced' => true,
208 'title' => __('Additional classes', 'email-encoder-bundle'),
209 'label' => __('Add extra classes to mailto links.', 'email-encoder-bundle'),
210 'placeholder' => '',
211 'required' => false,
212 'description' => __('Leave blank for none', 'email-encoder-bundle')
213 ],
214
215 'custom_href_attr' => [
216 'fieldset' => [ 'slug' => 'main', 'label' => 'Label' ],
217 'id' => 'custom_href_attr',
218 'type' => 'text',
219 'advanced' => true,
220 'title' => __('Protect custom href attributes', 'email-encoder-bundle'),
221 'label' => __('Protect href atrributes such as tel:, ftp:, file:, etc.', 'email-encoder-bundle'),
222 'placeholder' => '',
223 'required' => false,
224 'description' => __('Add the href attributes you want to protect as a comme-separated list. E.g. tel,file,ftp', 'email-encoder-bundle')
225 ],
226
227 'footer_scripts' => [
228 'fieldset' => [ 'slug' => 'main', 'label' => 'Label' ],
229 'id' => 'footer_scripts',
230 'type' => 'checkbox',
231 'advanced' => true,
232 'title' => __('Load scripts in footer', 'email-encoder-bundle'),
233 'label' => __('Check this button if you want to load all frontend scripts within the footer.', 'email-encoder-bundle'),
234 'placeholder' => '',
235 'required' => false,
236 'description' => __('This forces every script to be enqueued within the footer.', 'email-encoder-bundle')
237 ],
238
239 'show_encoded_check' => [
240 'fieldset' => [ 'slug' => 'main', 'label' => 'Label' ],
241 'id' => 'show_encoded_check',
242 'type' => 'checkbox',
243 'title' => __('Security Check', 'email-encoder-bundle'),
244 'label' => __('Mark emails on the site as successfully encoded', 'email-encoder-bundle') . '<i class="dashicons-before dashicons-lock" style="color:green;"></i>',
245 'placeholder' => '',
246 'required' => false,
247 'description' => __('Only visible for admin users. If your emails look broken, simply deactivate this feature. This also loads the dashicons style.', 'email-encoder-bundle')
248 ],
249
250 'own_admin_menu' => [
251 'fieldset' => [ 'slug' => 'main', 'label' => 'Label' ],
252 'id' => 'own_admin_menu',
253 'type' => 'checkbox',
254 'advanced' => true,
255 'title' => __('Admin Menu', 'email-encoder-bundle'),
256 'label' => __('Show this page in the main menu item', 'email-encoder-bundle'),
257 'placeholder' => '',
258 'required' => false,
259 'description' => __('Otherwise it will be shown in "Settings"-menu.', 'email-encoder-bundle')
260 ],
261
262 'encoder_form' => [
263 'fieldset' => [ 'slug' => 'main', 'label' => 'Label' ],
264 'id' => 'encoder_form',
265 'type' => 'multi-input',
266 'input-type' => 'checkbox',
267 'advanced' => true,
268 'title' => __( 'Encoder form settings', 'email-encoder-bundle' ),
269 'inputs' => [
270 'encoder_form_frontend' => [
271 'label' => __( 'Encoder form frontend', 'email-encoder-bundle' ),
272 'description' => __( 'Activate this to use the [eeb_form] shortcode or the PHP template function eeb_form() within the frontend.', 'email-encoder-bundle' )
273 ],
274 'powered_by' => [
275 'label' => __( 'Show a "powered by" link on bottom of the encoder form', 'email-encoder-bundle' ),
276 ],
277 ],
278 'required' => false
279 ],
280
281 'advanced_settings' => [
282 'fieldset' => [ 'slug' => 'main', 'label' => 'Label' ],
283 'id' => 'advanced_settings',
284 'type' => 'checkbox',
285 'title' => __('Advanced Settings', 'email-encoder-bundle'),
286 'label' => __('Show advanced settings for more configuration possibilities.', 'email-encoder-bundle'),
287 'placeholder' => '',
288 'required' => false,
289 'description' => __('Activate the advanced settings in case you want to customize the default logic or you want to troubleshoot the plugin.', 'email-encoder-bundle')
290 ],
291
292 ];