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