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
← All changes | classes/views/frm-fields/back-end/field-options.php +21 -14 6.28 → trunk View file →
@@ -1,5 +1,16 @@
1 1 <?php
2 +/**
3 + * Field options settings in the form builder.
4 + *
5 + * @package Formidable
6 + *
7 + * @var FrmFieldType $this Field type handler that included this template.
8 + * @var array $args Arguments including 'field' and 'field_obj'.
9 + * @var bool $should_hide_bulk_edit Whether to hide the bulk edit link.
10 + * @var string $option_title Title attribute for the bulk edit link.
11 + */
12 +
2 13 if ( ! defined( 'ABSPATH' ) ) {
3 14 die( 'You are not allowed to call this page directly.' );
4 15 }
5 16
@@ -19,9 +30,14 @@
19 30 )
20 31 );
21 32 ?>
22 33 </span>
23 - <span><?php echo esc_html( $this->get_bulk_edit_string() ); ?></span>
34 + <span>
35 + <?php
36 + // skipcq: PHP-E1002
37 + echo esc_html( $this->get_bulk_edit_string() );
38 + ?>
39 + </span>
24 40 </a>
25 41 </span>
26 42
27 43 <?php do_action( 'frm_add_multiple_opts_labels', $args['field'] ); ?>
@@ -26,18 +42,9 @@
26 42
27 43 <?php do_action( 'frm_add_multiple_opts_labels', $args['field'] ); ?>
28 44
29 45 <ul id="frm_field_<?php echo esc_attr( $args['field']['id'] ); ?>_opts" class="frm_sortable_field_opts frm_clear<?php echo $field_option_count > 10 ? ' frm_field_opts_list' : ''; ?> frm_add_remove" data-key="<?php echo esc_attr( $args['field']['field_key'] ); ?>">
30 - <?php $this->show_single_option( $args ); ?>
46 + <?php
47 + // skipcq: PHP-E1002
48 + $this->show_single_option( $args );
49 + ?>
31 50 </ul>
32 -
33 -<?php
34 -// Backwards compatibility "@since 6.24".
35 -if ( FrmAppHelper::pro_is_connected() && ! is_callable( array( 'FrmProHtmlHelper', 'echo_radio_group' ) ) && 'product' === $args['field']['type'] ) {
36 - ?>
37 - <div class="frm6 frm_form_field frm_add_opt_container">
38 - <a href="javascript:void(0);" data-opttype="single" class="frm-h-stack frm_cb_button frm_add_opt frm6 frm_form_field frm-add-option-legacy" id="frm_add_opt_<?php echo esc_attr( $args['field']['id'] ); ?>">
39 - <span><?php FrmAppHelper::icon_by_class( 'frmfont frm_plus1_icon frm_add_tag frm_svg13' ); ?></span>
40 - <span><?php echo esc_html( $this->get_add_option_string() ); ?></span>
41 - </a>
42 - </div>
43 -<?php } ?>