PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
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 trunk, at classes/views/frm-fields/back-end/name/primary-options.php

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