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/helpers/FrmTipsHelper.php +4 -26 6.27 → trunk View file →
@@ -56,10 +56,11 @@
56 56 echo '<p class="frmcenter ' . esc_attr( $tip['class'] ) . '">';
57 57 }
58 58
59 59 $link = self::get_tip_link( $tip );
60 + // phpcs:disable Generic.WhiteSpace.ScopeIndent
60 61 ?>
61 - <a href="<?php echo esc_url( $link ); ?>" <?php echo empty( $tip['link'] ) ? '' : 'target="_blank"'; ?> class="frm_pro_tip frm-gradient">
62 + <a href="<?php echo esc_url( $link ); ?>" <?php echo ! empty( $tip['link'] ) ? 'target="_blank"' : ''; ?> class="frm_pro_tip frm-gradient">
62 63 <span class="frm-tip-badge"><?php esc_html_e( 'PRO TIP', 'formidable' ); ?></span>
63 64
64 65 <?php if ( isset( $tip['call'] ) ) { ?>
65 66 <span class="frm-tip-info">
@@ -70,8 +71,9 @@
70 71 <?php echo esc_html( $tip['call'] ? $tip['call'] : $tip['tip'] ); ?>
71 72 </span>
72 73 </a>
73 74 <?php
75 + // phpcs:enable Generic.WhiteSpace.ScopeIndent
74 76
75 77 if ( 'p' === $html ) {
76 78 echo '</p>';
77 79 }
@@ -92,9 +94,9 @@
92 94 $cta_link = FrmSalesApi::get_best_sale_value( 'pro_tip_cta_link' );
93 95
94 96 if ( $cta_link ) {
95 97 if ( is_array( $tip['link'] ) ) {
96 - $cta_link = FrmAppHelper::maybe_add_missing_utm( $cta_link, $tip['link'] );
98 + return FrmAppHelper::maybe_add_missing_utm( $cta_link, $tip['link'] );
97 99 }
98 100
99 101 return $cta_link;
100 102 }
@@ -157,16 +159,8 @@
157 159 'call' => self::cta_label(),
158 160 ),
159 161 array(
160 162 'link' => array(
161 - 'content' => 'calculations',
162 - 'param' => 'field-calculations-wordpress-form',
163 - ),
164 - 'tip' => __( 'Need to calculate a total?', 'formidable' ),
165 - 'call' => self::cta_label(),
166 - ),
167 - array(
168 - 'link' => array(
169 163 'content' => 'prefill-fields',
170 164 'param' => 'auto-fill-forms',
171 165 ),
172 166 'tip' => __( 'Save time with autofill forms.', 'formidable' ),
@@ -241,24 +235,8 @@
241 235 'content' => 'mailchimp',
242 236 'page' => 'mailchimp-tip',
243 237 ),
244 238 'tip' => __( 'Send leads to Mailchimp for instant email follow-up.', 'formidable' ),
245 - 'call' => self::cta_label(),
246 - ),
247 - array(
248 - 'link' => array(
249 - 'content' => 'paypal-revenue',
250 - 'page' => 'paypal-increase-revenue-tip',
251 - ),
252 - 'tip' => __( 'Accept PayPal payments and grow your sales.', 'formidable' ),
253 - 'call' => self::cta_label(),
254 - ),
255 - array(
256 - 'link' => array(
257 - 'content' => 'paypal-fast',
258 - 'page' => 'paypal-save-time-tip',
259 - ),
260 - 'tip' => __( 'Accept payments now with PayPal integration.', 'formidable' ),
261 239 'call' => self::cta_label(),
262 240 ),
263 241 array(
264 242 'link' => array(