PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.2.3
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.2.3
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 +14 -28 6.5.16.2.3 View file →
@@ -18,9 +18,9 @@
18 18
19 19 $tips = self::$callback();
20 20 $tip = self::get_random_tip( $tips );
21 21
22 - self::show_tip( $tip, $html );
22 + self::show_tip( $tip );
23 23 }
24 24
25 25 /**
26 26 * Shows tip.
@@ -40,20 +40,17 @@
40 40 *
41 41 * @return void
42 42 */
43 43 public static function show_tip( $tip, $html = '' ) {
44 - $defaults = array(
45 - 'page' => '',
46 - 'class' => 'frm-mt-0',
47 - );
48 - $tip = array_merge( $defaults, $tip );
49 -
44 + if ( ! isset( $tip['page'] ) ) {
45 + $tip['page'] = '';
46 + }
50 47 if ( isset( $tip['link'] ) && ! isset( $tip['link']['medium'] ) ) {
51 48 $tip['link']['medium'] = 'tip';
52 49 }
53 50
54 51 if ( 'p' === $html ) {
55 - echo '<p class="frmcenter ' . esc_attr( $tip['class'] ) . '">';
52 + echo '<p class="frmcenter frm-mt-0">';
56 53 }
57 54
58 55 $link = empty( $tip['link'] ) ? $tip['page'] : FrmAppHelper::admin_upgrade_link( $tip['link'], $tip['page'] );
59 56 ?>
@@ -80,19 +77,8 @@
80 77 }
81 78 }
82 79
83 80 /**
84 - * Use the correct label for the license.
85 - *
86 - * @since 6.5.1
87 - *
88 - * @return string
89 - */
90 - private static function cta_label() {
91 - return FrmAddonsController::is_license_expired() ? __( 'Renew', 'formidable' ) : __( 'Upgrade to Pro.', 'formidable' );
92 - }
93 -
94 - /**
95 81 * @return array
96 82 */
97 83 public static function get_builder_tip() {
98 84 $tips = array(
@@ -101,9 +87,9 @@
101 87 'content' => 'conditional-logic',
102 88 'param' => 'conditional-logic-wordpress-forms',
103 89 ),
104 90 'tip' => __( 'Use conditional logic to shorten your forms and increase conversions.', 'formidable' ),
105 - 'call' => self::cta_label(),
91 + 'call' => __( 'Upgrade to Pro.', 'formidable' ),
106 92 ),
107 93 array(
108 94 'link' => array(
109 95 'content' => 'confirmation-fields',
@@ -117,9 +103,9 @@
117 103 'content' => 'page-breaks',
118 104 'param' => 'wordpress-multi-page-forms',
119 105 ),
120 106 'tip' => __( 'Use page breaks for easier forms.', 'formidable' ),
121 - 'call' => self::cta_label(),
107 + 'call' => __( 'Upgrade to Pro.', 'formidable' ),
122 108 ),
123 109 array(
124 110 'link' => array(
125 111 'content' => 'file-uploads',
@@ -133,9 +119,9 @@
133 119 'content' => 'calculations',
134 120 'param' => 'field-calculations-wordpress-form',
135 121 ),
136 122 'tip' => __( 'Need to calculate a total?', 'formidable' ),
137 - 'call' => self::cta_label(),
123 + 'call' => __( 'Upgrade to Pro.', 'formidable' ),
138 124 ),
139 125 array(
140 126 'link' => array(
141 127 'content' => 'prefill-fields',
@@ -201,9 +187,9 @@
201 187 'content' => 'create-posts',
202 188 'param' => 'create-posts-pages-wordpress-forms',
203 189 ),
204 190 'tip' => __( 'Create blog posts or pages from the front-end.', 'formidable' ),
205 - 'call' => self::cta_label(),
191 + 'call' => __( 'Upgrade to Pro.', 'formidable' ),
206 192 ),
207 193 array(
208 194 'link' => array(
209 195 'content' => 'user-submit',
@@ -209,9 +195,9 @@
209 195 'content' => 'user-submit',
210 196 'param' => 'create-posts-pages-wordpress-forms',
211 197 ),
212 198 'tip' => __( 'Let your users submit posts on the front-end.', 'formidable' ),
213 - 'call' => self::cta_label(),
199 + 'call' => __( 'Upgrade to Pro.', 'formidable' ),
214 200 ),
215 201 array(
216 202 'link' => array(
217 203 'content' => 'mailchimp',
@@ -299,9 +285,9 @@
299 285 'content' => 'style',
300 286 'param' => 'bg-image-style-settings',
301 287 ),
302 288 'tip' => __( 'Want to add a background image?', 'formidable' ),
303 - 'call' => self::cta_label(),
289 + 'call' => __( 'Upgrade to Pro.', 'formidable' ),
304 290 ),
305 291 array(
306 292 'link' => array(
307 293 'content' => 'style',
@@ -307,9 +293,9 @@
307 293 'content' => 'style',
308 294 'param' => 'duplicate-style',
309 295 ),
310 296 'tip' => __( 'Want to duplicate a style?', 'formidable' ),
311 - 'call' => self::cta_label(),
297 + 'call' => __( 'Upgrade to Pro.', 'formidable' ),
312 298 ),
313 299 );
314 300
315 301 return $tips;
@@ -333,9 +319,9 @@
333 319 'content' => 'entries-search',
334 320 'param' => 'form-entry-management-wordpress',
335 321 ),
336 322 'tip' => __( 'Want to search submitted entries?', 'formidable' ),
337 - 'call' => self::cta_label(),
323 + 'call' => __( 'Upgrade to Pro.', 'formidable' ),
338 324 ),
339 325 array(
340 326 'link' => array(
341 327 'content' => 'views',
@@ -360,9 +346,9 @@
360 346 'content' => 'import',
361 347 'param' => 'importing-exporting-wordpress-forms',
362 348 ),
363 349 'tip' => __( 'Want to import entries into your forms?', 'formidable' ),
364 - 'call' => self::cta_label(),
350 + 'call' => __( 'Upgrade to Pro.', 'formidable' ),
365 351 ),
366 352 );
367 353
368 354 return $tips;