PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.8.2
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.8.2
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / views / frm-fields / back-end / name / primary-options.php

primary-options.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.8.2, at classes/views/frm-fields/back-end/name/primary-options.php

45 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Primary options for name field
4 *
5 * @package Formidable
6 * @since 4.10.02
7 *
8 * @var array $field Field array.
9 * @var array $args Includes 'field', 'display', and 'values'.
10 * @var FrmFieldName $this Field type object.
11 */
12
13 if ( ! defined( 'ABSPATH' ) ) {
14 die( 'You are not allowed to call this page directly.' );
15 }
16
17 // Options here need to be declared in FrmFieldName::extra_field_opts().
18 $field_id = $field['id'];
19 $name_layout = FrmField::get_option( $field, 'name_layout' );
20 ?>
21 <p>
22 <label for="name_layout_<?php echo esc_attr( $field_id ); ?>">
23 <?php esc_html_e( 'Name layout', 'formidable' ); ?>
24 </label>
25
26 <select
27 name="field_options[name_layout_<?php echo esc_attr( $field_id ); ?>]"
28 id="name_layout_<?php echo esc_attr( $field_id ); ?>"
29 class="frm_name_layout_dropdown"
30 data-field-id="<?php echo intval( $field_id ); ?>"
31 data-changeme="frm_combo_inputs_container_<?php echo intval( $field_id ); ?>"
32 data-changeatt="data-name-layout"
33 >
34 <option value="first_last" <?php selected( $name_layout, 'first_last' ); ?>>
35 <?php esc_html_e( 'First Last', 'formidable' ); ?>
36 </option>
37 <option value="last_first" <?php selected( $name_layout, 'last_first' ); ?>>
38 <?php esc_html_e( 'Last First', 'formidable' ); ?>
39 </option>
40 <option value="first_middle_last" <?php selected( $name_layout, 'first_middle_last' ); ?>>
41 <?php esc_html_e( 'First Middle Last', 'formidable' ); ?>
42 </option>
43 </select>
44 </p>
45