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