| 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 |
|