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