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 / product-options.php

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

27 lines 862 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Product type setting for product fields.
4 *
5 * @package Formidable
6 *
7 * @var array $field Field data including 'id' and 'data_type'.
8 * @var array<string, string> $data_types Product type options keyed by type slug.
9 */
10
11 if ( ! defined( 'ABSPATH' ) ) {
12 die( 'You are not allowed to call this page directly.' );
13 }
14 ?>
15 <p class="frm_form_field frm_product_type">
16 <label><?php esc_html_e( 'Product Type', 'formidable' ); ?></label>
17 <select name="field_options[data_type_<?php echo esc_attr( $field['id'] ); ?>]" class="frmjs_prod_data_type_opt">
18 <?php
19 foreach ( $data_types as $type => $label ) {
20 ?>
21 <option value="<?php echo esc_attr( $type ); ?>" <?php selected( $field['data_type'], $type ); ?> <?php disabled( $type, 'user_def' ); ?>>
22 <?php echo esc_html( $label ); ?>
23 </option>
24 <?php } ?>
25 </select>
26 </p>
27