PluginProbe
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / 2.12.8
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz v2.12.8
2.12.8 2.12.7 2.12.6 2.12.5 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.1 2.11.0 2.10.1 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.7.0 2.7.1 2.8.0 trunk 0.0.10 0.0.11 0.0.12 0.0.13 All 98 releases
← All changes | inc/fields/email-markup.php +5 -4 2.7.1 → 2.12.8 View file →
@@ -36,9 +36,9 @@
36 36 */
37 37 protected $input_confirm_label_fallback;
38 38
39 39 /**
40 - * Encrypted label for the confirmation input field.
40 + * Encoded label for the confirmation input field.
41 41 *
42 42 * @var string
43 43 * @since 0.0.2
44 44 */
@@ -44,9 +44,9 @@
44 44 */
45 45 protected $input_confirm_label;
46 46
47 47 /**
48 - * Unique slug for the confirmation input field, combining the form slug, block ID, and encrypted label.
48 + * Unique slug for the confirmation input field, combining the form slug, block ID, and encoded label.
49 49 *
50 50 * @var string
51 51 * @since 0.0.2
52 52 */
@@ -81,9 +81,9 @@
81 81 $this->set_duplicate_msg( $attributes, 'srfm_email_block_unique_text' );
82 82 $this->slug = 'email';
83 83 $this->is_confirm_email = $attributes['isConfirmEmail'] ?? false;
84 84 $this->input_confirm_label_fallback = __( 'Confirm ', 'sureforms' ) . $this->input_label_fallback;
85 - $this->input_confirm_label = '-lbl-' . Helper::encrypt( $this->input_confirm_label_fallback );
85 + $this->input_confirm_label = '-lbl-' . Helper::encode( $this->input_confirm_label_fallback );
86 86 $this->unique_confirm_slug = 'srfm-' . $this->slug . '-confirm-' . $this->block_id . $this->input_confirm_label;
87 87 $this->read_only = ! empty( trim( $this->default ) ) && $attributes['readOnly'];
88 88 $this->set_unique_slug();
89 89 $this->set_field_name( $this->unique_slug );
@@ -133,8 +133,9 @@
133 133 $confirm_label_markup = '';
134 134 $this->placeholder_attr = ' placeholder="' . esc_attr( $placeholder ) . '" ';
135 135 }
136 136
137 + $confirm_error_markup = Helper::generate_common_form_markup( $this->form_id, 'error', '', '', $this->block_id, boolval( $this->required ), '', $this->error_msg, false, '', true );
137 138 ?>
138 139 <div class="srfm-<?php echo esc_attr( $this->slug ); ?>-confirm-block srf-<?php echo esc_attr( $this->slug ); ?>-<?php echo esc_attr( $this->block_id ); ?>-confirm-block">
139 140 <?php echo wp_kses_post( $confirm_label_markup ); ?>
140 141 <div class="srfm-block-wrap">
@@ -142,9 +143,9 @@
142 143 <?php echo ! empty( $this->aria_described_by ) ? "aria-describedby='" . esc_attr( trim( $this->aria_described_by ) ) . "'" : ''; ?>
143 144 data-required="<?php echo esc_attr( $this->data_require_attr ); ?>" aria-required="<?php echo esc_attr( $this->data_require_attr ); ?>" value="<?php echo esc_attr( $this->default ); ?>" <?php echo wp_kses_post( $this->placeholder_attr ); ?> <?php echo $this->read_only ? 'readonly' : ''; ?> />
144 145 </div>
145 146 <div class="srfm-error-wrap">
146 - <?php echo wp_kses_post( $this->error_msg_markup ); ?>
147 + <?php echo wp_kses_post( $confirm_error_markup ); ?>
147 148 </div>
148 149 </div>
149 150 <?php } ?>
150 151 </div>