| 1 |
<?php |
| 2 |
|
| 3 |
$defaultElements = array( |
| 4 |
'general' => array( |
| 5 |
'input_name' => array( |
| 6 |
'index' => 0, |
| 7 |
'element' => 'input_name', |
| 8 |
'attributes' => array( |
| 9 |
'name' => 'names', |
| 10 |
'data-type' => 'name-element' |
| 11 |
), |
| 12 |
'settings' => array( |
| 13 |
'container_class' => '', |
| 14 |
'admin_field_label' => 'Name', |
| 15 |
'conditional_logics' => array(), |
| 16 |
'label_placement' => 'top' |
| 17 |
), |
| 18 |
'fields' => array( |
| 19 |
'first_name' => array( |
| 20 |
'element' => 'input_text', |
| 21 |
'attributes' => array( |
| 22 |
'type' => 'text', |
| 23 |
'name' => 'first_name', |
| 24 |
'value' => '', |
| 25 |
'id' => '', |
| 26 |
'class' => '', |
| 27 |
'placeholder' => __('First Name', 'fluentform'), |
| 28 |
'maxlength' => '', |
| 29 |
), |
| 30 |
'settings' => array( |
| 31 |
'container_class' => '', |
| 32 |
'label' => __('First Name', 'fluentform'), |
| 33 |
'help_message' => '', |
| 34 |
'visible' => true, |
| 35 |
'validation_rules' => array( |
| 36 |
'required' => array( |
| 37 |
'value' => false, |
| 38 |
'message' => __('This field is required', 'fluentform'), |
| 39 |
), |
| 40 |
), |
| 41 |
'conditional_logics' => array(), |
| 42 |
), |
| 43 |
'editor_options' => array( |
| 44 |
'template' => 'inputText' |
| 45 |
), |
| 46 |
), |
| 47 |
'middle_name' => array( |
| 48 |
'element' => 'input_text', |
| 49 |
'attributes' => array( |
| 50 |
'type' => 'text', |
| 51 |
'name' => 'middle_name', |
| 52 |
'value' => '', |
| 53 |
'id' => '', |
| 54 |
'class' => '', |
| 55 |
'placeholder' => __('Middle Name', 'fluentform'), |
| 56 |
'required' => false, |
| 57 |
'maxlength' => '', |
| 58 |
), |
| 59 |
'settings' => array( |
| 60 |
'container_class' => '', |
| 61 |
'label' => __('Middle Name', 'fluentform'), |
| 62 |
'help_message' => '', |
| 63 |
'error_message' => '', |
| 64 |
'visible' => false, |
| 65 |
'validation_rules' => array( |
| 66 |
'required' => array( |
| 67 |
'value' => false, |
| 68 |
'message' => __('This field is required', 'fluentform'), |
| 69 |
), |
| 70 |
), |
| 71 |
'conditional_logics' => array(), |
| 72 |
), |
| 73 |
'editor_options' => array( |
| 74 |
'template' => 'inputText' |
| 75 |
), |
| 76 |
), |
| 77 |
'last_name' => array( |
| 78 |
'element' => 'input_text', |
| 79 |
'attributes' => array( |
| 80 |
'type' => 'text', |
| 81 |
'name' => 'last_name', |
| 82 |
'value' => '', |
| 83 |
'id' => '', |
| 84 |
'class' => '', |
| 85 |
'placeholder' => __('Last Name', 'fluentform'), |
| 86 |
'required' => false, |
| 87 |
'maxlength' => '', |
| 88 |
), |
| 89 |
'settings' => array( |
| 90 |
'container_class' => '', |
| 91 |
'label' => __('Last Name', 'fluentform'), |
| 92 |
'help_message' => '', |
| 93 |
'error_message' => '', |
| 94 |
'visible' => true, |
| 95 |
'validation_rules' => array( |
| 96 |
'required' => array( |
| 97 |
'value' => false, |
| 98 |
'message' => __('This field is required', 'fluentform'), |
| 99 |
), |
| 100 |
), |
| 101 |
'conditional_logics' => array(), |
| 102 |
), |
| 103 |
'editor_options' => array( |
| 104 |
'template' => 'inputText' |
| 105 |
), |
| 106 |
), |
| 107 |
), |
| 108 |
'editor_options' => array( |
| 109 |
'title' => 'Name Fields', |
| 110 |
'element' => 'name-fields', |
| 111 |
'icon_class' => 'ff-edit-name', |
| 112 |
'template' => 'nameFields' |
| 113 |
), |
| 114 |
), |
| 115 |
'input_email' => array( |
| 116 |
'index' => 1, |
| 117 |
'element' => 'input_email', |
| 118 |
'attributes' => array( |
| 119 |
'type' => 'email', |
| 120 |
'name' => 'email', |
| 121 |
'value' => '', |
| 122 |
'id' => '', |
| 123 |
'class' => '', |
| 124 |
'placeholder' => 'Email Address', |
| 125 |
), |
| 126 |
'settings' => array( |
| 127 |
'container_class' => '', |
| 128 |
'label' => __('Email', 'fluentform'), |
| 129 |
'label_placement' => '', |
| 130 |
'help_message' => '', |
| 131 |
'admin_field_label' => '', |
| 132 |
'validation_rules' => array( |
| 133 |
'required' => array( |
| 134 |
'value' => false, |
| 135 |
'message' => __('This field is required', 'fluentform'), |
| 136 |
), |
| 137 |
'email' => array( |
| 138 |
'value' => true, |
| 139 |
'message' => __('This field must contain a valid email', 'fluentform'), |
| 140 |
), |
| 141 |
), |
| 142 |
'conditional_logics' => array(), |
| 143 |
'is_unique' => 'no', |
| 144 |
'unique_validation_message' => __('Email address need to be unique.', 'fluentform') |
| 145 |
), |
| 146 |
'editor_options' => array( |
| 147 |
'title' => __('Email Address', 'fluentform'), |
| 148 |
'icon_class' => 'ff-edit-email', |
| 149 |
'template' => 'inputText' |
| 150 |
), |
| 151 |
), |
| 152 |
'input_text' => array( |
| 153 |
'index' => 2, |
| 154 |
'element' => 'input_text', |
| 155 |
'attributes' => array( |
| 156 |
'type' => 'text', |
| 157 |
'name' => 'input_text', |
| 158 |
'value' => '', |
| 159 |
'class' => '', |
| 160 |
'placeholder' => '', |
| 161 |
'maxlength' => '', |
| 162 |
), |
| 163 |
'settings' => array( |
| 164 |
'container_class' => '', |
| 165 |
'label' => __('Text Input', 'fluentform'), |
| 166 |
'label_placement' => '', |
| 167 |
'admin_field_label' => '', |
| 168 |
'help_message' => '', |
| 169 |
'validation_rules' => array( |
| 170 |
'required' => array( |
| 171 |
'value' => false, |
| 172 |
'message' => __('This field is required', 'fluentform'), |
| 173 |
), |
| 174 |
), |
| 175 |
'conditional_logics' => array(), |
| 176 |
), |
| 177 |
'editor_options' => array( |
| 178 |
'title' => __('Simple Text', 'fluentform'), |
| 179 |
'icon_class' => 'ff-edit-text', |
| 180 |
'template' => 'inputText' |
| 181 |
) |
| 182 |
), |
| 183 |
'input_mask' => array( |
| 184 |
'index' => 2, |
| 185 |
'element' => 'input_text', |
| 186 |
'attributes' => array( |
| 187 |
'type' => 'text', |
| 188 |
'name' => 'input_mask', |
| 189 |
'data-mask' => '', |
| 190 |
'value' => '', |
| 191 |
'class' => '', |
| 192 |
'placeholder' => '', |
| 193 |
), |
| 194 |
'settings' => array( |
| 195 |
'container_class' => '', |
| 196 |
'label' => __('Mask Input', 'fluentform'), |
| 197 |
'label_placement' => '', |
| 198 |
'admin_field_label' => '', |
| 199 |
'help_message' => '', |
| 200 |
'temp_mask' => '', |
| 201 |
'validation_rules' => array( |
| 202 |
'required' => array( |
| 203 |
'value' => false, |
| 204 |
'message' => __('This field is required', 'fluentform'), |
| 205 |
), |
| 206 |
), |
| 207 |
'conditional_logics' => array(), |
| 208 |
), |
| 209 |
'editor_options' => array( |
| 210 |
'title' => __('Mask Input', 'fluentform'), |
| 211 |
'icon_class' => 'ff-edit-mask', |
| 212 |
'template' => 'inputText' |
| 213 |
) |
| 214 |
), |
| 215 |
'textarea' => array( |
| 216 |
'index' => 3, |
| 217 |
'element' => 'textarea', |
| 218 |
'attributes' => array( |
| 219 |
'name' => 'description', |
| 220 |
'value' => '', |
| 221 |
'id' => '', |
| 222 |
'class' => '', |
| 223 |
'placeholder' => '', |
| 224 |
'rows' => 3, |
| 225 |
'cols' => 2, |
| 226 |
'maxlength' => '' |
| 227 |
), |
| 228 |
'settings' => array( |
| 229 |
'container_class' => '', |
| 230 |
'label' => __('Textarea', 'fluentform'), |
| 231 |
'admin_field_label' => '', |
| 232 |
'label_placement' => '', |
| 233 |
'help_message' => '', |
| 234 |
'validation_rules' => array( |
| 235 |
'required' => array( |
| 236 |
'value' => false, |
| 237 |
'message' => __('This field is required', 'fluentform'), |
| 238 |
), |
| 239 |
), |
| 240 |
'conditional_logics' => array() |
| 241 |
), |
| 242 |
'editor_options' => array( |
| 243 |
'title' => __('Text Area', 'fluentform'), |
| 244 |
'icon_class' => 'ff-edit-textarea', |
| 245 |
'template' => 'inputTextarea' |
| 246 |
), |
| 247 |
), |
| 248 |
'address' => array( |
| 249 |
'index' => 4, |
| 250 |
'element' => 'address', |
| 251 |
'attributes' => array( |
| 252 |
'id' => '', |
| 253 |
'class' => '', |
| 254 |
'name' => 'address_1', |
| 255 |
'data-type' => 'address-element' |
| 256 |
), |
| 257 |
'settings' => array( |
| 258 |
'label' => __('Address', 'fluentform'), |
| 259 |
'admin_field_label' => 'Address', |
| 260 |
'conditional_logics' => array(), |
| 261 |
), |
| 262 |
'fields' => array( |
| 263 |
'address_line_1' => array( |
| 264 |
'element' => 'input_text', |
| 265 |
'attributes' => array( |
| 266 |
'type' => 'text', |
| 267 |
'name' => 'address_line_1', |
| 268 |
'value' => '', |
| 269 |
'id' => '', |
| 270 |
'class' => '', |
| 271 |
'placeholder' => __('Address Line 1', 'fluentform'), |
| 272 |
), |
| 273 |
'settings' => array( |
| 274 |
'container_class' => '', |
| 275 |
'label' => __('Address Line 1', 'fluentform'), |
| 276 |
'admin_field_label' => '', |
| 277 |
'help_message' => '', |
| 278 |
'visible' => true, |
| 279 |
'validation_rules' => array( |
| 280 |
'required' => array( |
| 281 |
'value' => false, |
| 282 |
'message' => __('This field is required', 'fluentform'), |
| 283 |
), |
| 284 |
), |
| 285 |
'conditional_logics' => array(), |
| 286 |
), |
| 287 |
'editor_options' => array( |
| 288 |
'template' => 'inputText' |
| 289 |
), |
| 290 |
), |
| 291 |
'address_line_2' => array( |
| 292 |
'element' => 'input_text', |
| 293 |
'attributes' => array( |
| 294 |
'type' => 'text', |
| 295 |
'name' => 'address_line_2', |
| 296 |
'value' => '', |
| 297 |
'id' => '', |
| 298 |
'class' => '', |
| 299 |
'placeholder' => __('Address Line 2', 'fluentform'), |
| 300 |
), |
| 301 |
'settings' => array( |
| 302 |
'container_class' => '', |
| 303 |
'label' => __('Address Line 2', 'fluentform'), |
| 304 |
'admin_field_label' => '', |
| 305 |
'help_message' => '', |
| 306 |
'visible' => true, |
| 307 |
'validation_rules' => array( |
| 308 |
'required' => array( |
| 309 |
'value' => false, |
| 310 |
'message' => __('This field is required', 'fluentform'), |
| 311 |
), |
| 312 |
), |
| 313 |
'conditional_logics' => array(), |
| 314 |
), |
| 315 |
'editor_options' => array( |
| 316 |
'template' => 'inputText' |
| 317 |
), |
| 318 |
), |
| 319 |
'city' => array( |
| 320 |
'element' => 'input_text', |
| 321 |
'attributes' => array( |
| 322 |
'type' => 'text', |
| 323 |
'name' => 'city', |
| 324 |
'value' => '', |
| 325 |
'id' => '', |
| 326 |
'class' => '', |
| 327 |
'placeholder' => __('City', 'fluentform'), |
| 328 |
), |
| 329 |
'settings' => array( |
| 330 |
'container_class' => '', |
| 331 |
'label' => __('City', 'fluentform'), |
| 332 |
'admin_field_label' => '', |
| 333 |
'help_message' => '', |
| 334 |
'error_message' => '', |
| 335 |
'visible' => true, |
| 336 |
'validation_rules' => array( |
| 337 |
'required' => array( |
| 338 |
'value' => false, |
| 339 |
'message' => __('This field is required', 'fluentform'), |
| 340 |
), |
| 341 |
), |
| 342 |
'conditional_logics' => array(), |
| 343 |
), |
| 344 |
'editor_options' => array( |
| 345 |
'template' => 'inputText' |
| 346 |
), |
| 347 |
), |
| 348 |
'state' => array( |
| 349 |
'element' => 'input_text', |
| 350 |
'attributes' => array( |
| 351 |
'type' => 'text', |
| 352 |
'name' => 'state', |
| 353 |
'value' => '', |
| 354 |
'id' => '', |
| 355 |
'class' => '', |
| 356 |
'placeholder' => __('State', 'fluentform'), |
| 357 |
), |
| 358 |
'settings' => array( |
| 359 |
'container_class' => '', |
| 360 |
'label' => __('State', 'fluentform'), |
| 361 |
'admin_field_label' => '', |
| 362 |
'help_message' => '', |
| 363 |
'error_message' => '', |
| 364 |
'visible' => true, |
| 365 |
'validation_rules' => array( |
| 366 |
'required' => array( |
| 367 |
'value' => false, |
| 368 |
'message' => __('This field is required', 'fluentform'), |
| 369 |
), |
| 370 |
), |
| 371 |
'conditional_logics' => array(), |
| 372 |
), |
| 373 |
'editor_options' => array( |
| 374 |
'template' => 'inputText' |
| 375 |
), |
| 376 |
), |
| 377 |
'zip' => array( |
| 378 |
'element' => 'input_text', |
| 379 |
'attributes' => array( |
| 380 |
'type' => 'text', |
| 381 |
'name' => 'zip', |
| 382 |
'value' => '', |
| 383 |
'id' => '', |
| 384 |
'class' => '', |
| 385 |
'placeholder' => __('Zip', 'fluentform'), |
| 386 |
'required' => false, |
| 387 |
), |
| 388 |
'settings' => array( |
| 389 |
'container_class' => '', |
| 390 |
'label' => __('Zip Code', 'fluentform'), |
| 391 |
'admin_field_label' => '', |
| 392 |
'help_message' => '', |
| 393 |
'error_message' => '', |
| 394 |
'visible' => true, |
| 395 |
'validation_rules' => array( |
| 396 |
'required' => array( |
| 397 |
'value' => false, |
| 398 |
'message' => __('This field is required', 'fluentform'), |
| 399 |
), |
| 400 |
), |
| 401 |
'conditional_logics' => array(), |
| 402 |
), |
| 403 |
'editor_options' => array( |
| 404 |
'template' => 'inputText' |
| 405 |
), |
| 406 |
), |
| 407 |
'country' => array( |
| 408 |
'element' => 'select_country', |
| 409 |
'attributes' => array( |
| 410 |
'name' => 'country', |
| 411 |
'value' => '', |
| 412 |
'id' => '', |
| 413 |
'class' => '', |
| 414 |
'placeholder' => __('Select Country', 'fluentform'), |
| 415 |
'required' => false, |
| 416 |
), |
| 417 |
'settings' => array( |
| 418 |
'container_class' => '', |
| 419 |
'label' => __('Country', 'fluentform'), |
| 420 |
'admin_field_label' => '', |
| 421 |
'help_message' => '', |
| 422 |
'error_message' => '', |
| 423 |
'visible' => true, |
| 424 |
'validation_rules' => array( |
| 425 |
'required' => array( |
| 426 |
'value' => false, |
| 427 |
'message' => __('This field is required', 'fluentform'), |
| 428 |
), |
| 429 |
), |
| 430 |
'country_list' => array( |
| 431 |
'active_list' => 'all', |
| 432 |
'visible_list' => array(), |
| 433 |
'hidden_list' => array(), |
| 434 |
), |
| 435 |
'conditional_logics' => array(), |
| 436 |
), |
| 437 |
'options' => array( |
| 438 |
'US' => 'US of America', |
| 439 |
'UK' => 'United Kingdom' |
| 440 |
), |
| 441 |
'editor_options' => array( |
| 442 |
'title' => 'Country List', |
| 443 |
'element' => 'country-list', |
| 444 |
'icon_class' => 'icon-text-width', |
| 445 |
'template' => 'selectCountry' |
| 446 |
), |
| 447 |
), |
| 448 |
), |
| 449 |
'editor_options' => array( |
| 450 |
'title' => __('Address Fields', 'fluentform'), |
| 451 |
'element' => 'address-fields', |
| 452 |
'icon_class' => 'ff-edit-address', |
| 453 |
'template' => 'addressFields' |
| 454 |
), |
| 455 |
), |
| 456 |
'input_number' => array( |
| 457 |
'index' => 6, |
| 458 |
'element' => 'input_number', |
| 459 |
'attributes' => array( |
| 460 |
'type' => 'number', |
| 461 |
'name' => 'numeric-field', |
| 462 |
'value' => '', |
| 463 |
'id' => '', |
| 464 |
'class' => '', |
| 465 |
'placeholder' => '' |
| 466 |
), |
| 467 |
'settings' => array( |
| 468 |
'container_class' => '', |
| 469 |
'label' => __('Numeric Field', 'fluentform'), |
| 470 |
'admin_field_label' => '', |
| 471 |
'label_placement' => '', |
| 472 |
'help_message' => '', |
| 473 |
'number_step' => '', |
| 474 |
'prefix_label' => '', |
| 475 |
'suffix_label' => '', |
| 476 |
'validation_rules' => array( |
| 477 |
'required' => array( |
| 478 |
'value' => false, |
| 479 |
'message' => __('This field is required', 'fluentform'), |
| 480 |
), |
| 481 |
'numeric' => array( |
| 482 |
'value' => true, |
| 483 |
'message' => __('This field must contain numeric value', 'fluentform'), |
| 484 |
), |
| 485 |
'min' => array( |
| 486 |
'value' => '', |
| 487 |
'message' => __('Minimum value is ', 'fluentform'), |
| 488 |
), |
| 489 |
'max' => array( |
| 490 |
'value' => '', |
| 491 |
'message' => __('Maximum value is ', 'fluentform'), |
| 492 |
), |
| 493 |
), |
| 494 |
'conditional_logics' => array(), |
| 495 |
'calculation_settings' => array( |
| 496 |
'status' => false, |
| 497 |
'formula' => '' |
| 498 |
), |
| 499 |
), |
| 500 |
'editor_options' => array( |
| 501 |
'title' => __('Numeric Field', 'fluentform'), |
| 502 |
'icon_class' => 'ff-edit-numeric', |
| 503 |
'template' => 'inputText' |
| 504 |
), |
| 505 |
), |
| 506 |
'select' => array( |
| 507 |
'index' => 7, |
| 508 |
'element' => 'select', |
| 509 |
'attributes' => array( |
| 510 |
'name' => 'dropdown', |
| 511 |
'value' => '', |
| 512 |
'id' => '', |
| 513 |
'class' => '', |
| 514 |
), |
| 515 |
'settings' => array( |
| 516 |
'label' => __('Dropdown', 'fluentform'), |
| 517 |
'admin_field_label' => '', |
| 518 |
'help_message' => '', |
| 519 |
'container_class' => '', |
| 520 |
'label_placement' => '', |
| 521 |
'placeholder' => '- Select -', |
| 522 |
'advanced_options' => array( |
| 523 |
[ |
| 524 |
'label' => 'Option 1', |
| 525 |
'value' => 'Option 1', |
| 526 |
'calc_value' => '' |
| 527 |
], |
| 528 |
[ |
| 529 |
'label' => 'Option 2', |
| 530 |
'value' => 'Option 2', |
| 531 |
'calc_value' => '' |
| 532 |
] |
| 533 |
), |
| 534 |
'calc_value_status' => false, |
| 535 |
'enable_image_input' => false, |
| 536 |
|
| 537 |
'validation_rules' => array( |
| 538 |
'required' => array( |
| 539 |
'value' => false, |
| 540 |
'message' => __('This field is required', 'fluentform'), |
| 541 |
), |
| 542 |
), |
| 543 |
'conditional_logics' => array(), |
| 544 |
), |
| 545 |
'editor_options' => array( |
| 546 |
'title' => __('Dropdown', 'fluentform'), |
| 547 |
'icon_class' => 'ff-edit-dropdown', |
| 548 |
'element' => 'select', |
| 549 |
'template' => 'select' |
| 550 |
) |
| 551 |
), |
| 552 |
'input_radio' => array( |
| 553 |
'index' => 8, |
| 554 |
'element' => 'input_radio', |
| 555 |
'attributes' => array( |
| 556 |
'type' => 'radio', |
| 557 |
'name' => 'input_radio', |
| 558 |
'value' => '', |
| 559 |
), |
| 560 |
'settings' => array( |
| 561 |
'dynamic_default_value' => '', |
| 562 |
'container_class' => '', |
| 563 |
'label' => __('Radio Field', 'fluentform'), |
| 564 |
'admin_field_label' => '', |
| 565 |
'label_placement' => '', |
| 566 |
'display_type' => '', |
| 567 |
'help_message' => '', |
| 568 |
'advanced_options' => array( |
| 569 |
[ |
| 570 |
'label' => 'Yes', |
| 571 |
'value' => 'yes', |
| 572 |
'calc_value' => '', |
| 573 |
'image' => '' |
| 574 |
], |
| 575 |
[ |
| 576 |
'label' => 'No', |
| 577 |
'value' => 'no', |
| 578 |
'calc_value' => '', |
| 579 |
'image' => '' |
| 580 |
] |
| 581 |
), |
| 582 |
'calc_value_status' => false, |
| 583 |
'enable_image_input' => false, |
| 584 |
'validation_rules' => array( |
| 585 |
'required' => array( |
| 586 |
'value' => false, |
| 587 |
'message' => __('This field is required', 'fluentform'), |
| 588 |
), |
| 589 |
), |
| 590 |
'conditional_logics' => array(), |
| 591 |
'layout_class' => '' |
| 592 |
), |
| 593 |
'editor_options' => array( |
| 594 |
'title' => __('Radio Field', 'fluentform'), |
| 595 |
'icon_class' => 'ff-edit-radio', |
| 596 |
'element' => 'input-radio', |
| 597 |
'template' => 'inputCheckable' |
| 598 |
), |
| 599 |
), |
| 600 |
'input_checkbox' => array( |
| 601 |
'index' => 9, |
| 602 |
'element' => 'input_checkbox', |
| 603 |
'attributes' => array( |
| 604 |
'type' => 'checkbox', |
| 605 |
'name' => 'checkbox', |
| 606 |
'value' => array(), |
| 607 |
), |
| 608 |
'settings' => array( |
| 609 |
'dynamic_default_value' => '', |
| 610 |
'container_class' => '', |
| 611 |
'label' => __('Checkbox Field', 'fluentform'), |
| 612 |
'admin_field_label' => '', |
| 613 |
'label_placement' => '', |
| 614 |
'display_type' => '', |
| 615 |
'help_message' => '', |
| 616 |
|
| 617 |
'advanced_options' => array( |
| 618 |
[ |
| 619 |
'label' => 'Item 1', |
| 620 |
'value' => 'Item 1', |
| 621 |
'calc_value' => '', |
| 622 |
'image' => '' |
| 623 |
], |
| 624 |
[ |
| 625 |
'label' => 'Item 2', |
| 626 |
'value' => 'Item 2', |
| 627 |
'calc_value' => '', |
| 628 |
'image' => '' |
| 629 |
], |
| 630 |
[ |
| 631 |
'label' => 'Item 3', |
| 632 |
'value' => 'Item 3', |
| 633 |
'calc_value' => '', |
| 634 |
'image' => '' |
| 635 |
] |
| 636 |
), |
| 637 |
'calc_value_status' => false, |
| 638 |
'enable_image_input' => false, |
| 639 |
|
| 640 |
'validation_rules' => array( |
| 641 |
'required' => array( |
| 642 |
'value' => false, |
| 643 |
'message' => __('This field is required', 'fluentform'), |
| 644 |
), |
| 645 |
), |
| 646 |
'conditional_logics' => array(), |
| 647 |
'layout_class' => '' |
| 648 |
), |
| 649 |
'editor_options' => array( |
| 650 |
'title' => __('Check Box', 'fluentform'), |
| 651 |
'icon_class' => 'ff-edit-checkbox-1', |
| 652 |
'template' => 'inputCheckable' |
| 653 |
), |
| 654 |
), |
| 655 |
'multi_select' => array( |
| 656 |
'index' => 10, |
| 657 |
'element' => 'select', |
| 658 |
'attributes' => array( |
| 659 |
'name' => 'multi_select', |
| 660 |
'value' => array(), |
| 661 |
'id' => '', |
| 662 |
'class' => '', |
| 663 |
'placeholder' => '', |
| 664 |
'multiple' => true, |
| 665 |
), |
| 666 |
'settings' => array( |
| 667 |
'dynamic_default_value' => '', |
| 668 |
'help_message' => '', |
| 669 |
'container_class' => '', |
| 670 |
'label' => __('Multiselect', 'fluentform'), |
| 671 |
'admin_field_label' => '', |
| 672 |
'label_placement' => '', |
| 673 |
'placeholder' => '', |
| 674 |
|
| 675 |
'advanced_options' => array( |
| 676 |
[ |
| 677 |
'label' => 'Option 1', |
| 678 |
'value' => 'Option 1', |
| 679 |
'calc_value' => '' |
| 680 |
], |
| 681 |
[ |
| 682 |
'label' => 'Option 2', |
| 683 |
'value' => 'Option 2', |
| 684 |
'calc_value' => '' |
| 685 |
] |
| 686 |
), |
| 687 |
'calc_value_status' => false, |
| 688 |
'enable_image_input' => false, |
| 689 |
|
| 690 |
'validation_rules' => array( |
| 691 |
'required' => array( |
| 692 |
'value' => false, |
| 693 |
'message' => __('This field is required', 'fluentform'), |
| 694 |
), |
| 695 |
), |
| 696 |
'conditional_logics' => array(), |
| 697 |
), |
| 698 |
'editor_options' => array( |
| 699 |
'title' => __('Multiple Choice', 'fluentform'), |
| 700 |
'icon_class' => 'ff-edit-multiple-choice', |
| 701 |
'element' => 'select', |
| 702 |
'template' => 'select' |
| 703 |
) |
| 704 |
), |
| 705 |
'input_url' => array( |
| 706 |
'index' => 11, |
| 707 |
'element' => 'input_url', |
| 708 |
'attributes' => array( |
| 709 |
'type' => 'url', |
| 710 |
'name' => 'url', |
| 711 |
'value' => '', |
| 712 |
'class' => '', |
| 713 |
'placeholder' => '', |
| 714 |
), |
| 715 |
'settings' => array( |
| 716 |
'container_class' => '', |
| 717 |
'label' => __('URL', 'fluentform'), |
| 718 |
'admin_field_label' => '', |
| 719 |
'label_placement' => '', |
| 720 |
'help_message' => '', |
| 721 |
'validation_rules' => array( |
| 722 |
'required' => array( |
| 723 |
'value' => false, |
| 724 |
'message' => __('This field is required', 'fluentform'), |
| 725 |
), |
| 726 |
'url' => array( |
| 727 |
'value' => true, |
| 728 |
'message' => __('This field must contain a valid url', 'fluentform'), |
| 729 |
), |
| 730 |
), |
| 731 |
'conditional_logics' => array(), |
| 732 |
), |
| 733 |
'editor_options' => array( |
| 734 |
'title' => __('Website URL', 'fluentform'), |
| 735 |
'icon_class' => 'ff-edit-website-url', |
| 736 |
'template' => 'inputText' |
| 737 |
) |
| 738 |
), |
| 739 |
'input_date' => array( |
| 740 |
'index' => 13, |
| 741 |
'element' => 'input_date', |
| 742 |
'attributes' => array( |
| 743 |
'type' => 'text', |
| 744 |
'name' => 'datetime', |
| 745 |
'value' => '', |
| 746 |
'id' => '', |
| 747 |
'class' => '', |
| 748 |
'placeholder' => '', |
| 749 |
), |
| 750 |
'settings' => array( |
| 751 |
'container_class' => '', |
| 752 |
'label' => __('Date / Time', 'fluentform'), |
| 753 |
'admin_field_label' => '', |
| 754 |
'label_placement' => '', |
| 755 |
'date_config' => '', |
| 756 |
'date_format' => 'd/m/Y', |
| 757 |
'help_message' => '', |
| 758 |
'is_time_enabled' => true, |
| 759 |
'validation_rules' => array( |
| 760 |
'required' => array( |
| 761 |
'value' => false, |
| 762 |
'message' => __('This field is required', 'fluentform'), |
| 763 |
) |
| 764 |
), |
| 765 |
'conditional_logics' => array(), |
| 766 |
), |
| 767 |
'editor_options' => array( |
| 768 |
'title' => __('Time & Date', 'fluentform'), |
| 769 |
'icon_class' => 'ff-edit-date', |
| 770 |
'template' => 'inputText' |
| 771 |
), |
| 772 |
), |
| 773 |
'input_image' => array( |
| 774 |
'index' => 15, |
| 775 |
'element' => 'input_image', |
| 776 |
'attributes' => array( |
| 777 |
'type' => 'file', |
| 778 |
'name' => 'image-upload', |
| 779 |
'value' => '', |
| 780 |
'id' => '', |
| 781 |
'class' => '', |
| 782 |
'accept' => 'image/*', |
| 783 |
), |
| 784 |
'settings' => array( |
| 785 |
'container_class' => '', |
| 786 |
'label' => __('Image Upload', 'fluentform'), |
| 787 |
'admin_field_label' => '', |
| 788 |
'label_placement' => '', |
| 789 |
'btn_text' => 'Choose File', |
| 790 |
'help_message' => '', |
| 791 |
'validation_rules' => array( |
| 792 |
'required' => array( |
| 793 |
'value' => false, |
| 794 |
'message' => __('This field is required', 'fluentform'), |
| 795 |
), |
| 796 |
'max_file_size' => array( |
| 797 |
'value' => 1048576, |
| 798 |
'_valueFrom' => 'MB', |
| 799 |
'message' => __('Maximum file size limit is 1MB', 'fluentform') |
| 800 |
), |
| 801 |
'max_file_count' => array( |
| 802 |
'value' => 1, |
| 803 |
'message' => __('You can upload maximum 1 image', 'fluentform') |
| 804 |
), |
| 805 |
'allowed_image_types' => array( |
| 806 |
'value' => array(), |
| 807 |
'message' => __('Allowed image types does not match', 'fluentform') |
| 808 |
) |
| 809 |
), |
| 810 |
'conditional_logics' => array(), |
| 811 |
), |
| 812 |
'editor_options' => array( |
| 813 |
'title' => __('Image Upload', 'fluentform'), |
| 814 |
'icon_class' => 'ff-edit-images', |
| 815 |
'template' => 'inputFile' |
| 816 |
), |
| 817 |
), |
| 818 |
'input_file' => array( |
| 819 |
'index' => 16, |
| 820 |
'element' => 'input_file', |
| 821 |
'attributes' => array( |
| 822 |
'type' => 'file', |
| 823 |
'name' => 'file-upload', |
| 824 |
'value' => '', |
| 825 |
'id' => '', |
| 826 |
'class' => '', |
| 827 |
), |
| 828 |
'settings' => array( |
| 829 |
'container_class' => '', |
| 830 |
'label' => __('File Upload', 'fluentform'), |
| 831 |
'admin_field_label' => '', |
| 832 |
'label_placement' => '', |
| 833 |
'btn_text' => 'Choose File', |
| 834 |
'help_message' => '', |
| 835 |
'validation_rules' => array( |
| 836 |
'required' => array( |
| 837 |
'value' => false, |
| 838 |
'message' => __('This field is required', 'fluentform'), |
| 839 |
), |
| 840 |
'max_file_size' => array( |
| 841 |
'value' => 1048576, |
| 842 |
'_valueFrom' => 'MB', |
| 843 |
'message' => __('Maximum file size limit is 1MB', 'fluentform') |
| 844 |
), |
| 845 |
'max_file_count' => array( |
| 846 |
'value' => 1, |
| 847 |
'message' => __('You can upload maximum 1 file', 'fluentform') |
| 848 |
), |
| 849 |
'allowed_file_types' => array( |
| 850 |
'value' => array(), |
| 851 |
'message' => __('Invalid file type', 'fluentform') |
| 852 |
) |
| 853 |
), |
| 854 |
'conditional_logics' => array(), |
| 855 |
), |
| 856 |
'editor_options' => array( |
| 857 |
'title' => __('File Upload', 'fluentform'), |
| 858 |
'icon_class' => 'ff-edit-files', |
| 859 |
'template' => 'inputFile' |
| 860 |
), |
| 861 |
), |
| 862 |
'select_country' => array( |
| 863 |
'index' => 5, |
| 864 |
'element' => 'select_country', |
| 865 |
'attributes' => array( |
| 866 |
'name' => 'country-list', |
| 867 |
'value' => '', |
| 868 |
'id' => '', |
| 869 |
'class' => '', |
| 870 |
'placeholder' => __('Select Country', 'fluentform'), |
| 871 |
), |
| 872 |
'settings' => array( |
| 873 |
'container_class' => '', |
| 874 |
'label' => __('Country', 'fluentform'), |
| 875 |
'admin_field_label' => '', |
| 876 |
'label_placement' => '', |
| 877 |
'help_message' => '', |
| 878 |
'validation_rules' => array( |
| 879 |
'required' => array( |
| 880 |
'value' => false, |
| 881 |
'message' => __('This field is required', 'fluentform'), |
| 882 |
), |
| 883 |
), |
| 884 |
'country_list' => array( |
| 885 |
'active_list' => 'all', |
| 886 |
'visible_list' => array(), |
| 887 |
'hidden_list' => array(), |
| 888 |
), |
| 889 |
'conditional_logics' => array(), |
| 890 |
), |
| 891 |
'options' => array( |
| 892 |
'US' => 'United States of America', |
| 893 |
), |
| 894 |
'editor_options' => array( |
| 895 |
'title' => __('Country List', 'fluentform'), |
| 896 |
'element' => 'country-list', |
| 897 |
'icon_class' => 'ff-edit-country', |
| 898 |
'template' => 'selectCountry' |
| 899 |
), |
| 900 |
), |
| 901 |
'custom_html' => array( |
| 902 |
'index' => 20, |
| 903 |
'element' => 'custom_html', |
| 904 |
'attributes' => array(), |
| 905 |
'settings' => array( |
| 906 |
'html_codes' => '<p>Some description about this section</p>', |
| 907 |
'conditional_logics' => array(), |
| 908 |
'container_class' => '' |
| 909 |
), |
| 910 |
'editor_options' => array( |
| 911 |
'title' => __('Custom HTML', 'fluentform'), |
| 912 |
'icon_class' => 'ff-edit-html', |
| 913 |
'template' => 'customHTML', |
| 914 |
) |
| 915 |
), |
| 916 |
), |
| 917 |
'advanced' => array( |
| 918 |
'ratings' => array( |
| 919 |
'index' => 8, |
| 920 |
'element' => 'ratings', |
| 921 |
'attributes' => array( |
| 922 |
'class' => '', |
| 923 |
'value' => 0, |
| 924 |
'name' => 'ratings', |
| 925 |
), |
| 926 |
'settings' => array( |
| 927 |
'label' => __('Ratings', 'fluentform'), |
| 928 |
'show_text' => 'no', |
| 929 |
'help_message' => '', |
| 930 |
'label_placement' => '', |
| 931 |
'admin_field_label' => '', |
| 932 |
'container_class' => '', |
| 933 |
'conditional_logics' => array(), |
| 934 |
'validation_rules' => array( |
| 935 |
'required' => array( |
| 936 |
'value' => false, |
| 937 |
'message' => __('This field is required', 'fluentform'), |
| 938 |
), |
| 939 |
), |
| 940 |
), |
| 941 |
'options' => array( |
| 942 |
'1' => __('Nice', 'fluentform'), |
| 943 |
'2' => __('Good', 'fluentform'), |
| 944 |
'3' => __('Very Good', 'fluentform'), |
| 945 |
'4' => __('Awesome', 'fluentform'), |
| 946 |
'5' => __('Amazing', 'fluentform'), |
| 947 |
), |
| 948 |
'editor_options' => array( |
| 949 |
'title' => __('Ratings', 'fluentform'), |
| 950 |
'icon_class' => 'ff-edit-rating', |
| 951 |
'template' => 'ratings', |
| 952 |
), |
| 953 |
), |
| 954 |
'input_hidden' => array( |
| 955 |
'index' => 0, |
| 956 |
'element' => 'input_hidden', |
| 957 |
'attributes' => array( |
| 958 |
'type' => 'hidden', |
| 959 |
'name' => 'hidden', |
| 960 |
'value' => '', |
| 961 |
), |
| 962 |
'settings' => array( |
| 963 |
'admin_field_label' => '' |
| 964 |
), |
| 965 |
'editor_options' => array( |
| 966 |
'title' => __('Hidden Field', 'fluentform'), |
| 967 |
'icon_class' => 'ff-edit-hidden-field', |
| 968 |
'template' => 'inputHidden', |
| 969 |
), |
| 970 |
), |
| 971 |
'tabular_grid' => array( |
| 972 |
'index' => 9, |
| 973 |
'element' => 'tabular_grid', |
| 974 |
'attributes' => array( |
| 975 |
'name' => 'tabular_grid', |
| 976 |
'data-type' => 'tabular-element' |
| 977 |
), |
| 978 |
'settings' => array( |
| 979 |
'tabular_field_type' => 'checkbox', |
| 980 |
'container_class' => '', |
| 981 |
'label' => __('Checkbox Grid', 'fluentform'), |
| 982 |
'admin_field_label' => '', |
| 983 |
'label_placement' => '', |
| 984 |
'help_message' => '', |
| 985 |
'validation_rules' => array( |
| 986 |
'required' => array( |
| 987 |
'value' => false, |
| 988 |
'message' => __('This field is required', 'fluentform'), |
| 989 |
'per_row' => false, |
| 990 |
), |
| 991 |
), |
| 992 |
'conditional_logics' => array(), |
| 993 |
'grid_columns' => array( |
| 994 |
'Column-1' => 'Column 1' |
| 995 |
), |
| 996 |
'grid_rows' => array( |
| 997 |
'Row-1' => 'Row 1' |
| 998 |
), |
| 999 |
'selected_grids' => array() |
| 1000 |
), |
| 1001 |
'editor_options' => array( |
| 1002 |
'title' => __('Checkable Grid', 'fluentform'), |
| 1003 |
'icon_class' => 'ff-edit-checkable-grid', |
| 1004 |
'template' => 'checkableGrids' |
| 1005 |
), |
| 1006 |
), |
| 1007 |
'section_break' => array( |
| 1008 |
'index' => 1, |
| 1009 |
'element' => 'section_break', |
| 1010 |
'attributes' => array( |
| 1011 |
'id' => '', |
| 1012 |
'class' => '', |
| 1013 |
), |
| 1014 |
'settings' => array( |
| 1015 |
'label' => __('Section Break', 'fluentform'), |
| 1016 |
'description' => __('Some description about this section', 'fluentform'), |
| 1017 |
'align' => 'left', |
| 1018 |
'conditional_logics' => array(), |
| 1019 |
), |
| 1020 |
'editor_options' => array( |
| 1021 |
'title' => __('Section Break', 'fluentform'), |
| 1022 |
'icon_class' => 'ff-edit-section-break', |
| 1023 |
'template' => 'sectionBreak', |
| 1024 |
), |
| 1025 |
), |
| 1026 |
'input_password' => array( |
| 1027 |
'index' => 12, |
| 1028 |
'element' => 'input_password', |
| 1029 |
'attributes' => array( |
| 1030 |
'type' => 'password', |
| 1031 |
'name' => 'password', |
| 1032 |
'value' => '', |
| 1033 |
'id' => '', |
| 1034 |
'class' => '', |
| 1035 |
'placeholder' => '', |
| 1036 |
), |
| 1037 |
'settings' => array( |
| 1038 |
'container_class' => '', |
| 1039 |
'label' => __('Password', 'fluentform'), |
| 1040 |
'admin_field_label' => '', |
| 1041 |
'label_placement' => '', |
| 1042 |
'help_message' => '', |
| 1043 |
'validation_rules' => array( |
| 1044 |
'required' => array( |
| 1045 |
'value' => false, |
| 1046 |
'message' => __('This field is required', 'fluentform'), |
| 1047 |
), |
| 1048 |
), |
| 1049 |
'conditional_logics' => array(), |
| 1050 |
), |
| 1051 |
'editor_options' => array( |
| 1052 |
'title' => __('Password Field', 'fluentform'), |
| 1053 |
'icon_class' => 'ff-edit-password', |
| 1054 |
'template' => 'inputText' |
| 1055 |
), |
| 1056 |
), |
| 1057 |
'form_step' => array( |
| 1058 |
'index' => 7, |
| 1059 |
'element' => 'form_step', |
| 1060 |
'attributes' => [ |
| 1061 |
'id' => '', |
| 1062 |
'class' => '', |
| 1063 |
], |
| 1064 |
'settings' => [ |
| 1065 |
'prev_btn' => [ |
| 1066 |
'type' => 'default', |
| 1067 |
'text' => __('Previous', 'fluentform'), |
| 1068 |
'img_url' => '', |
| 1069 |
], |
| 1070 |
'next_btn' => [ |
| 1071 |
'type' => 'default', |
| 1072 |
'text' => __('Next', 'fluentform'), |
| 1073 |
'img_url' => '', |
| 1074 |
], |
| 1075 |
], |
| 1076 |
'editor_options' => [ |
| 1077 |
'title' => __('Form Step', 'fluentform'), |
| 1078 |
'icon_class' => 'ff-edit-step', |
| 1079 |
'template' => 'formStep', |
| 1080 |
], |
| 1081 |
), |
| 1082 |
'terms_and_condition' => array( |
| 1083 |
'index' => 5, |
| 1084 |
'element' => 'terms_and_condition', |
| 1085 |
'attributes' => array( |
| 1086 |
'type' => 'checkbox', |
| 1087 |
'name' => 'terms-n-condition', |
| 1088 |
'value' => false, |
| 1089 |
'class' => '', |
| 1090 |
), |
| 1091 |
'settings' => array( |
| 1092 |
'tnc_html' => 'I have read and agree to the <a target="_blank" rel="noopener" href="#">Terms and Conditions</a> and <a target="_blank" rel="noopener" href="#">Privacy Policy</a>', |
| 1093 |
'has_checkbox' => true, |
| 1094 |
'admin_field_label' => __('Terms and Conditions', 'fluentform'), |
| 1095 |
'container_class' => '', |
| 1096 |
'validation_rules' => array( |
| 1097 |
'required' => array( |
| 1098 |
'value' => false, |
| 1099 |
'message' => __('This field is required', 'fluentform'), |
| 1100 |
), |
| 1101 |
), |
| 1102 |
'conditional_logics' => array(), |
| 1103 |
), |
| 1104 |
'editor_options' => array( |
| 1105 |
'title' => __('Terms & Conditions', 'fluentform'), |
| 1106 |
'icon_class' => 'ff-edit-terms-condition', |
| 1107 |
'template' => 'termsCheckbox' |
| 1108 |
), |
| 1109 |
), |
| 1110 |
'gdpr_agreement' => array( |
| 1111 |
'index' => 10, |
| 1112 |
'element' => 'gdpr_agreement', |
| 1113 |
'attributes' => array( |
| 1114 |
'type' => 'checkbox', |
| 1115 |
'name' => 'gdpr-agreement', |
| 1116 |
'value' => false, |
| 1117 |
'class' => 'ff_gdpr_field', |
| 1118 |
), |
| 1119 |
'settings' => array( |
| 1120 |
'label' => __('GDPR Agreement', 'fluentform'), |
| 1121 |
'tnc_html' => __('I consent to having this website store my submitted information so they can respond to my inquiry', 'fluentform'), |
| 1122 |
'admin_field_label' => __('GDPR Agreement', 'fluentform'), |
| 1123 |
'has_checkbox' => true, |
| 1124 |
'container_class' => '', |
| 1125 |
'validation_rules' => array( |
| 1126 |
'required' => array( |
| 1127 |
'value' => true, |
| 1128 |
'message' => __('This field is required', 'fluentform'), |
| 1129 |
), |
| 1130 |
), |
| 1131 |
'required_field_message' => '', |
| 1132 |
'conditional_logics' => array(), |
| 1133 |
), |
| 1134 |
'editor_options' => array( |
| 1135 |
'title' => __('GDPR Agreement', 'fluentform'), |
| 1136 |
'icon_class' => 'ff-edit-gdpr', |
| 1137 |
'template' => 'termsCheckbox' |
| 1138 |
), |
| 1139 |
), |
| 1140 |
'recaptcha' => array( |
| 1141 |
'index' => 2, |
| 1142 |
'element' => 'recaptcha', |
| 1143 |
'attributes' => array('name' => 'recaptcha'), |
| 1144 |
'settings' => array( |
| 1145 |
'label' => '', |
| 1146 |
'label_placement' => '', |
| 1147 |
'validation_rules' => array(), |
| 1148 |
), |
| 1149 |
'editor_options' => array( |
| 1150 |
'title' => __('reCaptcha', 'fluentform'), |
| 1151 |
'icon_class' => 'ff-edit-recaptha', |
| 1152 |
'why_disabled_modal' => 'recaptcha', |
| 1153 |
'template' => 'recaptcha', |
| 1154 |
), |
| 1155 |
), |
| 1156 |
'shortcode' => array( |
| 1157 |
'index' => 4, |
| 1158 |
'element' => 'shortcode', |
| 1159 |
'attributes' => array( |
| 1160 |
'id' => '', |
| 1161 |
'class' => '' |
| 1162 |
), |
| 1163 |
'settings' => array( |
| 1164 |
'shortcode' => '[your_shorcode_here]', |
| 1165 |
'conditional_logics' => array(), |
| 1166 |
), |
| 1167 |
'editor_options' => array( |
| 1168 |
'title' => __('Shortcode', 'fluentform'), |
| 1169 |
'icon_class' => 'ff-edit-shortcode', |
| 1170 |
'template' => 'shortcode', |
| 1171 |
) |
| 1172 |
), |
| 1173 |
'action_hook' => array( |
| 1174 |
'index' => 6, |
| 1175 |
'element' => 'action_hook', |
| 1176 |
'attributes' => array( |
| 1177 |
'id' => '', |
| 1178 |
'class' => '' |
| 1179 |
), |
| 1180 |
'settings' => array( |
| 1181 |
'hook_name' => 'YOUR_CUSTOM_HOOK_NAME', |
| 1182 |
'conditional_logics' => array(), |
| 1183 |
), |
| 1184 |
'editor_options' => array( |
| 1185 |
'title' => __('Action Hook', 'fluentform'), |
| 1186 |
'icon_class' => 'ff-edit-action-hook', |
| 1187 |
'template' => 'actionHook' |
| 1188 |
) |
| 1189 |
), |
| 1190 |
), |
| 1191 |
'container' => array( |
| 1192 |
'container_1_col' => array( |
| 1193 |
'index' => 1, |
| 1194 |
'element' => 'container', |
| 1195 |
'attributes' => array(), |
| 1196 |
'settings' => array( |
| 1197 |
'container_class' => '' |
| 1198 |
), |
| 1199 |
'columns' => array( |
| 1200 |
array('fields' => array()) |
| 1201 |
), |
| 1202 |
'editor_options' => |
| 1203 |
array( |
| 1204 |
'title' => __('One Column Container', 'fluentform'), |
| 1205 |
'icon_class' => 'dashicons dashicons-align-center', |
| 1206 |
), |
| 1207 |
), |
| 1208 |
'container_2_col' => array( |
| 1209 |
'index' => 1, |
| 1210 |
'element' => 'container', |
| 1211 |
'attributes' => array(), |
| 1212 |
'settings' => array( |
| 1213 |
'container_class' => '' |
| 1214 |
), |
| 1215 |
'columns' => array( |
| 1216 |
array('fields' => array()), |
| 1217 |
array('fields' => array()), |
| 1218 |
), |
| 1219 |
'editor_options' => |
| 1220 |
array( |
| 1221 |
'title' => __('Two Column Container', 'fluentform'), |
| 1222 |
'icon_class' => 'ff-edit-column-2', |
| 1223 |
), |
| 1224 |
), |
| 1225 |
'container_3_col' => array( |
| 1226 |
'index' => 2, |
| 1227 |
'element' => 'container', |
| 1228 |
'attributes' => array(), |
| 1229 |
'settings' => array( |
| 1230 |
'container_class' => '' |
| 1231 |
), |
| 1232 |
'columns' => array( |
| 1233 |
array('fields' => array()), |
| 1234 |
array('fields' => array()), |
| 1235 |
array('fields' => array()), |
| 1236 |
), |
| 1237 |
'editor_options' => array( |
| 1238 |
'title' => __('Three Column Container', 'fluentform'), |
| 1239 |
'icon_class' => 'ff-edit-three-column', |
| 1240 |
), |
| 1241 |
), |
| 1242 |
'container_4_col' => array( |
| 1243 |
'index' => 3, |
| 1244 |
'element' => 'container', |
| 1245 |
'attributes' => array(), |
| 1246 |
'settings' => array( |
| 1247 |
'container_class' => '' |
| 1248 |
), |
| 1249 |
'columns' => array( |
| 1250 |
array('fields' => array()), |
| 1251 |
array('fields' => array()), |
| 1252 |
array('fields' => array()), |
| 1253 |
array('fields' => array()), |
| 1254 |
), |
| 1255 |
'editor_options' => array( |
| 1256 |
'title' => __('Four Column Container', 'fluentform'), |
| 1257 |
'icon_class' => 'ff-edit-three-column', |
| 1258 |
), |
| 1259 |
), |
| 1260 |
'container_5_col' => array( |
| 1261 |
'index' => 5, |
| 1262 |
'element' => 'container', |
| 1263 |
'attributes' => array(), |
| 1264 |
'settings' => array( |
| 1265 |
'container_class' => '' |
| 1266 |
), |
| 1267 |
'columns' => array( |
| 1268 |
array('fields' => array()), |
| 1269 |
array('fields' => array()), |
| 1270 |
array('fields' => array()), |
| 1271 |
array('fields' => array()), |
| 1272 |
array('fields' => array()), |
| 1273 |
), |
| 1274 |
'editor_options' => array( |
| 1275 |
'title' => __('Five Column Container', 'fluentform'), |
| 1276 |
'icon_class' => 'ff-edit-three-column', |
| 1277 |
), |
| 1278 |
), |
| 1279 |
'container_6_col' => array( |
| 1280 |
'index' => 6, |
| 1281 |
'element' => 'container', |
| 1282 |
'attributes' => array(), |
| 1283 |
'settings' => array( |
| 1284 |
'container_class' => '' |
| 1285 |
), |
| 1286 |
'columns' => array( |
| 1287 |
array('fields' => array()), |
| 1288 |
array('fields' => array()), |
| 1289 |
array('fields' => array()), |
| 1290 |
array('fields' => array()), |
| 1291 |
array('fields' => array()), |
| 1292 |
array('fields' => array()), |
| 1293 |
), |
| 1294 |
'editor_options' => array( |
| 1295 |
'title' => __('Six Column Container', 'fluentform'), |
| 1296 |
'icon_class' => 'ff-edit-three-column', |
| 1297 |
), |
| 1298 |
) |
| 1299 |
) |
| 1300 |
); |
| 1301 |
|
| 1302 |
|
| 1303 |
if (!defined('FLUENTFORMPRO')) { |
| 1304 |
$defaultElements['general']['phone'] = [ |
| 1305 |
'index' => 15, |
| 1306 |
'element' => 'phone', |
| 1307 |
'attributes' => [], |
| 1308 |
'settings' => [], |
| 1309 |
'editor_options' => [ |
| 1310 |
'title' => 'Phone Field', |
| 1311 |
'icon_class' => 'el-icon-phone-outline', |
| 1312 |
'template' => 'inputText' |
| 1313 |
], |
| 1314 |
]; |
| 1315 |
|
| 1316 |
$defaultElements['advanced']['net_promoter_score'] = [ |
| 1317 |
'index' => 19, |
| 1318 |
'element' => 'net_promoter_score', |
| 1319 |
'attributes' => array(), |
| 1320 |
'settings' => array(), |
| 1321 |
'options' => array(), |
| 1322 |
'editor_options' => array( |
| 1323 |
'title' => 'Net Promoter Score', |
| 1324 |
'icon_class' => 'ff-edit-rating', |
| 1325 |
'template' => 'net_promoter', |
| 1326 |
) |
| 1327 |
]; |
| 1328 |
|
| 1329 |
$defaultElements['advanced']['repeater_field'] = [ |
| 1330 |
'index' => 19, |
| 1331 |
'element' => 'repeater_field', |
| 1332 |
'attributes' => array(), |
| 1333 |
'settings' => array(), |
| 1334 |
'options' => array(), |
| 1335 |
'editor_options' => array( |
| 1336 |
'title' => 'Repeat Field', |
| 1337 |
'icon_class' => 'ff-edit-repeat', |
| 1338 |
'template' => 'fieldsRepeatSettings' |
| 1339 |
) |
| 1340 |
]; |
| 1341 |
|
| 1342 |
$defaultElements['advanced']['custom_submit_button'] = [ |
| 1343 |
'index' => 15, |
| 1344 |
'element' => 'custom_submit_button', |
| 1345 |
'attributes' => [], |
| 1346 |
'settings' => [], |
| 1347 |
'editor_options' => [ |
| 1348 |
'title' => 'Custom Submit Button', |
| 1349 |
'icon_class' => 'dashicons dashicons-arrow-right-alt', |
| 1350 |
'template' => 'customButton' |
| 1351 |
], |
| 1352 |
]; |
| 1353 |
|
| 1354 |
$defaultElements['advanced']['rangeslider'] = [ |
| 1355 |
'index' => 15, |
| 1356 |
'element' => 'rangeslider', |
| 1357 |
'attributes' => [], |
| 1358 |
'settings' => [], |
| 1359 |
'editor_options' => [ |
| 1360 |
'title' => 'Range Slider', |
| 1361 |
'icon_class' => 'dashicons dashicons-leftright', |
| 1362 |
'template' => 'inputSlider' |
| 1363 |
], |
| 1364 |
]; |
| 1365 |
|
| 1366 |
|
| 1367 |
$defaultElements['advanced']['color-picker'] = [ |
| 1368 |
'index' => 15, |
| 1369 |
'element' => 'color-picker', |
| 1370 |
'attributes' => [], |
| 1371 |
'settings' => [], |
| 1372 |
'editor_options' => [ |
| 1373 |
'title' => 'Color Picker', |
| 1374 |
'icon_class' => 'ff-edit-tint', |
| 1375 |
'template' => 'inputText' |
| 1376 |
], |
| 1377 |
]; |
| 1378 |
|
| 1379 |
$defaultElements['payments'] = array( |
| 1380 |
'multi_payment_component' => [ |
| 1381 |
'index' => 6, |
| 1382 |
'element' => 'multi_payment_component', |
| 1383 |
'attributes' => [], |
| 1384 |
'settings' => [], |
| 1385 |
'editor_options' => array( |
| 1386 |
'title' => __('Payment Field', 'fluentform'), |
| 1387 |
'icon_class' => 'ff-edit-shopping-cart', |
| 1388 |
'element' => 'input-radio', |
| 1389 |
'template' => 'inputMultiPayment' |
| 1390 |
), |
| 1391 |
], |
| 1392 |
'custom_payment_component' => [ |
| 1393 |
'index' => 6, |
| 1394 |
'element' => 'custom_payment_component', |
| 1395 |
'attributes' => [], |
| 1396 |
'settings' => [], |
| 1397 |
'editor_options' => array( |
| 1398 |
'title' => __('Custom Payment Amount', 'fluentform'), |
| 1399 |
'icon_class' => 'ff-edit-keyboard-o', |
| 1400 |
'template' => 'inputText' |
| 1401 |
) |
| 1402 |
], |
| 1403 |
'item_quantity_component' => [ |
| 1404 |
'index' => 6, |
| 1405 |
'element' => 'item_quantity_component', |
| 1406 |
'attributes' => [], |
| 1407 |
'settings' => [], |
| 1408 |
'editor_options' => array( |
| 1409 |
'title' => __('Item Quantity', 'fluentform'), |
| 1410 |
'icon_class' => 'ff-edit-keyboard-o', |
| 1411 |
'template' => 'inputText' |
| 1412 |
), |
| 1413 |
], |
| 1414 |
'payment_method' => [ |
| 1415 |
'index' => 6, |
| 1416 |
'element' => 'payment_method', |
| 1417 |
'attributes' => [], |
| 1418 |
'settings' => [], |
| 1419 |
'editor_options' => array( |
| 1420 |
'title' => 'Payment Method Field', |
| 1421 |
'icon_class' => 'ff-edit-credit-card', |
| 1422 |
'template' => 'inputPaymentMethods' |
| 1423 |
), |
| 1424 |
] |
| 1425 |
); |
| 1426 |
} |
| 1427 |
|
| 1428 |
|
| 1429 |
return $defaultElements; |