PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / trunk
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder vtrunk
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 3.6.65 All 196 releases
fluentform / app / Services / FormBuilder / ElementSettingsPlacement.php

ElementSettingsPlacement.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder trunk, at app/Services/FormBuilder/ElementSettingsPlacement.php

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