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 / format-dropdown.php

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

53 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 * @package Formidable
4 *
5 * @since 6.18
6 *
7 * @var array $field Field data.
8 * @var array $args Includes 'field', 'display', and 'values' settings.
9 * @var FrmFieldType $this Field type object.
10 */
11
12 if ( ! defined( 'ABSPATH' ) ) {
13 die( 'You are not allowed to call this page directly.' );
14 }
15
16 $field_id = $field['id'];
17 ?>
18 <p class="frm6 frm_form_field frm-format-dropdown">
19 <label for="format_dropdown_<?php echo esc_attr( $field_id ); ?>">
20 <?php esc_html_e( 'Format', 'formidable' ); ?>
21 </label>
22
23 <select
24 name="field_options[format_dropdown_<?php echo esc_attr( $field_id ); ?>]"
25 id="frm_format_dropdown_<?php echo esc_attr( $field_id ); ?>"
26 class="frm_format_dropdown frm_select_with_upgrade frm_select_with_dependency"
27 data-field-id="<?php echo intval( $field_id ); ?>"
28 >
29 <?php
30 $options_view_path = FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/format-dropdown-options.php';
31
32 /**
33 * Includes the formatted options view file.
34 *
35 * @since 6.18
36 *
37 * @param string $options_view_path The path to the options view file.
38 */
39 require apply_filters( 'frm_format_options_view_path', $options_view_path );
40 ?>
41 </select>
42 </p>
43
44 <?php
45 /**
46 * Fires after the format dropdown template is rendered.
47 *
48 * @since 6.18
49 *
50 * @param array $field The field array.
51 */
52 do_action( 'frm_after_format_dropdown_template', $field );
53