PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.15
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.15
6.2.15 6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 All 197 releases
← All changes | app/Services/FormBuilder/ElementSettingsPlacement.php +297 -210 3.6.22 → 6.2.15 View file →
@@ -5,36 +5,49 @@
5 5 *
6 6 * Returns an array of countries and codes.
7 7 *
8 8 * @author WooThemes
9 + *
9 10 * @category i18n
10 11 * @package fluentform/i18n
12 + *
11 13 * @version 2.5.0
12 14 */
13 15
14 -
15 -$element_settings_placement = array(
16 - 'input_name' => array(
17 - 'general' => array(
16 +return [
17 + 'input_name' => [
18 + 'general' => [
18 19 'admin_field_label',
19 20 'name_fields',
20 21 'label_placement',
21 - ),
22 - 'advanced' => array(
22 + ],
23 + 'advanced' => [
23 24 'container_class',
24 25 'name',
26 + 'autocomplete',
25 27 'conditional_logics',
26 - ),
27 - ),
28 - 'input_email' => array(
29 - 'general' => array(
28 + ],
29 + 'advancedExtras' => [
30 + 'autocomplete' => [
31 + 'template' => 'select',
32 + 'label' => __('Autocomplete', 'fluentform'),
33 + 'filterable' => false,
34 + 'creatable' => false,
35 + 'help_text' => __('Applies to every input in this field. "Automatic" gives each one the autofill value that matches it, "off" disables browser autofill for the whole field, and "None" adds no attribute at all.', 'fluentform'),
36 + 'options' => \FluentForm\App\Services\FormBuilder\AutocompleteTokens::baseEditorOptions(),
37 + ],
38 + ],
39 + ],
40 + 'input_email' => [
41 + 'general' => [
30 42 'label',
31 43 'label_placement',
32 44 'admin_field_label',
33 45 'placeholder',
34 46 'validation_rules',
35 - ),
36 - 'advanced' => array(
47 + ],
48 + 'advanced' => [
49 + 'autocomplete',
37 50 'value',
38 51 'container_class',
39 52 'class',
40 53 'help_message',
@@ -39,14 +52,16 @@
39 52 'class',
40 53 'help_message',
41 54 'is_unique',
42 55 'unique_validation_message',
56 + 'prefix_label',
57 + 'suffix_label',
43 58 'name',
44 59 'conditional_logics',
45 - ),
46 - ),
47 - 'input_text' => array(
48 - 'general' => array(
60 + ],
61 + ],
62 + 'input_text' => [
63 + 'general' => [
49 64 'label',
50 65 'label_placement',
51 66 'admin_field_label',
52 67 'placeholder',
@@ -51,24 +66,32 @@
51 66 'admin_field_label',
52 67 'placeholder',
53 68 'temp_mask',
54 69 'data-mask',
70 + 'data-mask-reverse',
71 + 'data-clear-if-not-match',
72 + 'mobile_keyboard_type',
55 73 'validation_rules',
56 - ),
57 - 'advanced' => array(
74 + ],
75 + 'advanced' => [
76 + 'autocomplete',
58 77 'value',
59 78 'container_class',
60 79 'class',
61 80 'help_message',
81 + 'prefix_label',
82 + 'suffix_label',
62 83 'name',
63 84 'maxlength',
85 + 'is_unique',
86 + 'unique_validation_message',
64 87 'conditional_logics',
65 - ),
66 - 'generalExtras' => array(),
67 - 'advancedExtras' => array(),
68 - ),
69 - 'textarea' => array(
70 - 'general' => array(
88 + ],
89 + 'generalExtras' => [],
90 + 'advancedExtras' => [],
91 + ],
92 + 'textarea' => [
93 + 'general' => [
71 94 'label',
72 95 'label_placement',
73 96 'admin_field_label',
74 97 'placeholder',
@@ -74,40 +97,55 @@
74 97 'placeholder',
75 98 'rows',
76 99 'cols',
77 100 'validation_rules',
78 - ),
79 - 'advanced' => array(
101 + ],
102 + 'advanced' => [
103 + 'autocomplete',
80 104 'value',
81 105 'container_class',
82 106 'class',
83 107 'help_message',
108 + 'prefix_label',
109 + 'suffix_label',
84 110 'name',
85 111 'maxlength',
86 112 'conditional_logics',
87 - )
88 - ),
89 - 'address' => array(
90 - 'general' => array(
113 + ],
114 + ],
115 + 'address' => [
116 + 'general' => [
91 117 'label',
92 118 'admin_field_label',
93 119 'address_fields',
94 - ),
95 - 'advanced' => array(
120 + ],
121 + 'advanced' => [
96 122 'class',
97 123 'name',
124 + 'autocomplete',
98 125 'conditional_logics',
99 - ),
100 - ),
101 - 'select_country' => array(
102 - 'general' => array(
126 + ],
127 + 'advancedExtras' => [
128 + 'autocomplete' => [
129 + 'template' => 'select',
130 + 'label' => __('Autocomplete', 'fluentform'),
131 + 'filterable' => false,
132 + 'creatable' => false,
133 + 'help_text' => __('Applies to every input in this field. Address autofill is off unless you choose "On", which gives each input the autofill value that matches it. Choose "off" to disable browser autofill for the whole field, or "None" to add no attribute at all.', 'fluentform'),
134 + 'options' => \FluentForm\App\Services\FormBuilder\AutocompleteTokens::addressEditorOptions(),
135 + ],
136 + ],
137 + ],
138 + 'select_country' => [
139 + 'general' => [
103 140 'label',
104 141 'label_placement',
105 142 'admin_field_label',
143 + 'enable_select_2',
106 144 'placeholder',
107 145 'validation_rules',
108 - ),
109 - 'advanced' => array(
146 + ],
147 + 'advanced' => [
110 148 'container_class',
111 149 'class',
112 150 'country_list',
113 151 'help_message',
@@ -112,19 +150,22 @@
112 150 'country_list',
113 151 'help_message',
114 152 'name',
115 153 'conditional_logics',
116 - ),
117 - ),
118 - 'input_number' => array(
119 - 'general' => array(
154 + ],
155 + ],
156 + 'input_number' => [
157 + 'general' => [
120 158 'label',
121 159 'label_placement',
122 160 'admin_field_label',
123 161 'placeholder',
124 162 'validation_rules',
125 - ),
126 - 'advanced' => array(
163 + 'numeric_formatter',
164 + 'mobile_keyboard_type_number',
165 + ],
166 + 'advanced' => [
167 + 'autocomplete',
127 168 'value',
128 169 'container_class',
129 170 'class',
130 171 'help_message',
@@ -132,21 +173,26 @@
132 173 'prefix_label',
133 174 'suffix_label',
134 175 'name',
135 176 'conditional_logics',
136 - 'calculation_settings'
137 - ),
138 - ),
139 - 'select' => array(
140 - 'general' => array(
177 + 'calculation_settings',
178 + ],
179 + ],
180 + 'select' => [
181 + 'general' => [
141 182 'label',
142 183 'label_placement',
143 184 'admin_field_label',
144 185 'placeholder',
145 186 'advanced_options',
187 + 'randomize_options',
188 + 'enable_select_2',
189 + // max_selection is a validation rule now — listing it here too would
190 + // draw the control twice.
146 191 'validation_rules',
147 - ),
148 - 'advanced' => array(
192 + ],
193 + 'advanced' => [
194 + 'autocomplete',
149 195 'dynamic_default_value',
150 196 'container_class',
151 197 'class',
152 198 'help_message',
@@ -151,82 +197,90 @@
151 197 'class',
152 198 'help_message',
153 199 'name',
154 200 'conditional_logics',
155 - ),
156 - ),
157 - 'input_radio' => array(
158 - 'general' => array(
201 + ],
202 + ],
203 + 'input_radio' => [
204 + 'general' => [
159 205 'label',
160 206 'label_placement',
161 207 'admin_field_label',
162 208 'placeholder',
163 209 'advanced_options',
210 + 'layout_class',
211 + 'randomize_options',
164 212 'validation_rules',
165 - ),
166 - 'advanced' => array(
213 + ],
214 + 'advanced' => [
167 215 'dynamic_default_value',
168 216 'container_class',
169 217 'help_message',
170 218 'name',
171 - 'layout_class',
172 219 'conditional_logics',
173 - ),
174 - ),
175 - 'input_checkbox' => array(
176 - 'general' => array(
220 + ],
221 + ],
222 + 'input_checkbox' => [
223 + 'general' => [
177 224 'label',
178 225 'label_placement',
179 226 'admin_field_label',
180 227 'placeholder',
181 228 'advanced_options',
229 + 'layout_class',
230 + 'randomize_options',
182 231 'validation_rules',
183 - ),
184 - 'advanced' => array(
232 + ],
233 + 'advanced' => [
185 234 'dynamic_default_value',
186 235 'container_class',
187 236 'help_message',
188 237 'name',
189 - 'layout_class',
190 238 'conditional_logics',
191 - ),
192 - ),
193 - 'input_url' => array(
194 - 'general' => array(
239 + ],
240 + ],
241 + 'input_url' => [
242 + 'general' => [
195 243 'label',
196 244 'label_placement',
197 245 'admin_field_label',
198 246 'placeholder',
199 247 'validation_rules',
200 - ),
201 - 'advanced' => array(
248 + ],
249 + 'advanced' => [
250 + 'autocomplete',
202 251 'value',
203 252 'container_class',
204 253 'class',
205 254 'help_message',
255 + 'prefix_label',
256 + 'suffix_label',
206 257 'name',
207 258 'conditional_logics',
208 - ),
209 - ),
210 - 'input_password' => array(
211 - 'general' => array(
259 + ],
260 + ],
261 + 'input_password' => [
262 + 'general' => [
212 263 'label',
213 264 'label_placement',
214 265 'admin_field_label',
215 266 'placeholder',
216 267 'validation_rules',
217 - ),
218 - 'advanced' => array(
268 + ],
269 + 'advanced' => [
270 + 'autocomplete',
219 271 'value',
220 272 'container_class',
221 273 'class',
222 274 'help_message',
275 + 'prefix_label',
276 + 'suffix_label',
223 277 'name',
224 278 'conditional_logics',
225 - ),
226 - ),
227 - 'input_date' => array(
228 - 'general' => array(
279 + ],
280 + ],
281 + 'input_date' => [
282 + 'general' => [
229 283 'label',
230 284 'label_placement',
231 285 'admin_field_label',
232 286 'placeholder',
@@ -231,10 +285,11 @@
231 285 'admin_field_label',
232 286 'placeholder',
233 287 'date_format',
234 288 'validation_rules',
235 - ),
236 - 'advanced' => array(
289 + ],
290 + 'advanced' => [
291 + 'autocomplete',
237 292 'value',
238 293 'container_class',
239 294 'class',
240 295 'help_message',
@@ -240,191 +295,226 @@
240 295 'help_message',
241 296 'name',
242 297 'date_config',
243 298 'conditional_logics',
244 - ),
245 - ),
246 - 'input_file' => array(
247 - 'general' => array(
299 + ],
300 + ],
301 + 'input_file' => [
302 + 'general' => [
248 303 'label',
249 304 'btn_text',
305 + 'upload_bttn_ui',
250 306 'label_placement',
251 307 'admin_field_label',
252 308 'validation_rules',
253 - ),
254 - 'advanced' => array(
309 + ],
310 + 'advanced' => [
255 311 'container_class',
256 312 'class',
257 313 'help_message',
258 314 'name',
259 315 'conditional_logics',
260 - ),
261 - ),
262 - 'input_image' => array(
263 - 'general' => array(
316 + 'file_location_type',
317 + 'upload_file_location',
318 + ],
319 + ],
320 + 'input_image' => [
321 + 'general' => [
264 322 'label',
265 323 'btn_text',
324 + 'upload_bttn_ui',
325 + 'file_location_type',
326 + 'upload_file_location',
266 327 'label_placement',
267 328 'admin_field_label',
268 329 'validation_rules',
269 - ),
270 - 'advanced' => array(
330 + 'enable_crop',
331 + 'crop_mode',
332 + 'crop_ratio',
333 + 'crop_width',
334 + 'crop_height',
335 + ],
336 + 'advanced' => [
271 337 'container_class',
272 338 'class',
273 339 'help_message',
274 340 'name',
275 341 'conditional_logics',
276 - ),
277 - ),
278 - 'input_repeat' => array(
279 - 'general' => array(
342 + ],
343 + ],
344 + 'input_repeat' => [
345 + 'general' => [
280 346 'label',
281 347 'label_placement',
282 348 'admin_field_label',
283 349 'multi_column',
284 350 'repeat_fields',
285 - ),
286 - 'advanced' => array(
351 + ],
352 + 'advanced' => [
287 353 'container_class',
288 354 'name',
289 355 'conditional_logics',
290 - 'max_repeat_field'
291 - ),
292 - ),
293 - 'input_hidden' => array(
294 - 'general' => array(
356 + 'max_repeat_field',
357 + ],
358 + ],
359 + 'input_hidden' => [
360 + 'general' => [
295 361 'admin_field_label',
296 362 'value',
297 363 'name',
298 - ),
299 - ),
300 - 'section_break' => array(
301 - 'general' => array(
364 + ],
365 + ],
366 + 'section_break' => [
367 + 'general' => [
302 368 'label',
303 369 'description',
304 370 'align',
305 - ),
306 - 'advanced' => array(
371 + ],
372 + 'advanced' => [
307 373 'class',
308 374 'conditional_logics',
309 - ),
310 - ),
311 - 'recaptcha' => array(
312 - 'general' => array(
375 + ],
376 + ],
377 + 'recaptcha' => [
378 + 'general' => [
313 379 'label',
314 380 'label_placement',
315 381 'name',
316 382 'validation_rules',
317 - ),
318 - ),
319 - 'custom_html' => array(
320 - 'general' => array(
383 + ],
384 + ],
385 + 'hcaptcha' => [
386 + 'general' => [
387 + 'label',
388 + 'label_placement',
389 + 'name',
390 + 'validation_rules',
391 + ],
392 + ],
393 + 'turnstile' => [
394 + 'general' => [
395 + 'label',
396 + 'label_placement',
397 + 'name',
398 + 'validation_rules'
399 + ],
400 + ],
401 + 'custom_html' => [
402 + 'general' => [
321 403 'html_codes',
322 404 'conditional_logics',
323 - 'container_class'
324 - ),
325 - ),
326 - 'shortcode' => array(
327 - 'general' => array(
405 + 'container_class',
406 + ],
407 + ],
408 + 'shortcode' => [
409 + 'general' => [
328 410 'shortcode',
329 - ),
330 - 'generalExtras' => array(
331 - 'message' => array(
411 + ],
412 + 'generalExtras' => [
413 + 'message' => [
332 414 'template' => 'infoBlock',
333 - 'text' => 'Hello',
334 - ),
335 - ),
336 - 'advanced' => array(
415 + 'text' => 'Hello',
416 + ],
417 + ],
418 + 'advanced' => [
337 419 'class',
338 420 'conditional_logics',
339 - ),
340 - ),
341 - 'terms_and_condition' => array(
342 - 'general' => array(
421 + ],
422 + ],
423 + 'terms_and_condition' => [
424 + 'general' => [
343 425 'admin_field_label',
344 426 'validation_rules',
345 427 'tnc_html',
346 428 'has_checkbox',
347 - ),
348 - 'advanced' => array(
429 + ],
430 + 'advanced' => [
349 431 'container_class',
350 432 'class',
351 433 'name',
352 434 'conditional_logics',
353 - ),
354 - ),
355 - 'action_hook' => array(
356 - 'general' => array(
435 + ],
436 + ],
437 + 'action_hook' => [
438 + 'general' => [
357 439 'hook_name',
358 - ),
359 - 'advanced' => array(
440 + ],
441 + 'advanced' => [
360 442 'class',
361 443 'conditional_logics',
362 - ),
363 - ),
364 - 'form_step' => array(
365 - 'general' => array(
444 + ],
445 + ],
446 + 'form_step' => [
447 + 'general' => [
366 448 'prev_btn',
367 449 'next_btn',
368 450 'class',
369 - ),
370 - ),
371 - 'button' => array(
372 - 'general' => array(
451 + ],
452 + ],
453 + 'button' => [
454 + 'general' => [
373 455 'btn_text',
374 456 'button_ui',
375 457 'button_style',
376 458 'button_size',
377 459 'align',
378 - ),
379 - 'advanced' => array(
460 + ],
461 + 'advanced' => [
380 462 'container_class',
381 463 'class',
382 464 'help_message',
383 465 'conditional_logics',
384 - ),
385 - 'generalExtras' => array(
386 - 'btn_text' => array(
387 - 'template' => 'inputText',
388 - 'label' => __('Button Text', 'fluentform'),
466 + ],
467 + 'generalExtras' => [
468 + 'btn_text' => [
469 + 'template' => 'inputText',
470 + 'label' => __('Button Text', 'fluentform'),
389 471 'help_text' => __('Form submission button text.', 'fluentform'),
390 - )
391 - )
392 - ),
393 - 'step_start' => array(
394 - 'general' => array(
472 + ],
473 + ],
474 + ],
475 + 'step_start' => [
476 + 'general' => [
395 477 'class',
396 478 'progress_indicator',
479 + 'progress_layout',
480 + 'tabs_show_progress_bar',
481 + 'step_animation',
397 482 'step_titles',
398 483 'disable_auto_focus',
399 484 'enable_auto_slider',
400 485 'enable_step_data_persistency',
401 - 'enable_step_page_resume'
402 - ),
403 - ),
404 - 'step_end' => array(
405 - 'general' => array(
486 + 'enable_step_page_resume',
487 + ],
488 + ],
489 + 'step_end' => [
490 + 'general' => [
406 491 'class',
407 492 'prev_btn',
408 - ),
409 - ),
410 - 'ratings' => array(
411 - 'general' => array(
493 + ],
494 + ],
495 + 'ratings' => [
496 + 'general' => [
412 497 'label',
413 498 'label_placement',
414 499 'admin_field_label',
415 500 'options',
416 501 'show_text',
417 - 'validation_rules'
418 - ),
419 - 'advanced' => array(
502 + 'icon_source',
503 + 'icon_type',
504 + 'custom_icon_svg',
505 + 'inactive_color',
506 + 'active_color',
507 + 'validation_rules',
508 + ],
509 + 'advanced' => [
420 510 'help_message',
421 511 'name',
422 512 'conditional_logics',
423 - ),
424 - ),
425 - 'tabular_grid' => array(
426 - 'general' => array(
513 + ],
514 + ],
515 + 'tabular_grid' => [
516 + 'general' => [
427 517 'label',
428 518 'label_placement',
429 519 'admin_field_label',
430 520 'tabular_field_type',
@@ -430,46 +520,43 @@
430 520 'tabular_field_type',
431 521 'grid_columns',
432 522 'grid_rows',
433 523 'validation_rules',
434 - ),
435 - 'advanced' => array(
524 + ],
525 + 'advanced' => [
436 526 'container_class',
437 527 'help_message',
438 528 'name',
439 529 'conditional_logics',
440 - ),
441 - ),
442 - 'gdpr_agreement' => array(
443 - 'general' => array(
530 + ],
531 + ],
532 + 'gdpr_agreement' => [
533 + 'general' => [
444 534 'admin_field_label',
445 535 'tnc_html',
446 536 'required_field_message',
447 - 'container_class'
448 - ),
449 - 'advanced' => array(
537 + 'container_class',
538 + ],
539 + 'advanced' => [
450 540 'class',
451 541 'name',
452 542 'conditional_logics',
453 - ),
454 - 'generalExtras' => array(
455 - 'tnc_html' => array(
456 - 'template' => 'inputTextarea',
457 - 'label' => __('Description', 'fluentform'),
543 + ],
544 + 'generalExtras' => [
545 + 'tnc_html' => [
546 + 'template' => 'inputTextarea',
547 + 'label' => __('Description', 'fluentform'),
458 548 'help_text' => __('Write HTML content for GDPR agreement checkbox', 'fluentform'),
459 - 'rows' => 5,
460 - 'cols' => 3,
461 - )
462 - ),
463 - ),
464 - 'container' => array(
465 - 'general' => array(
549 + 'rows' => 5,
550 + 'cols' => 3,
551 + ],
552 + ],
553 + ],
554 + 'container' => [
555 + 'general' => [
466 556 'container_class',
467 - 'conditional_logics'
468 - ),
469 - 'advanced' => []
470 - )
471 -);
472 -
473 -return apply_filters(
474 - 'fluent_editor_element_settings_placement', $element_settings_placement
475 -);
557 + 'conditional_logics',
558 + 'container_width',
559 + ],
560 + 'advanced' => [],
561 + ],
562 +];