PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.19
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.19
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 +73 -72 6.256.19 View file →
@@ -54,9 +54,9 @@
54 54 if ( 'p' === $html ) {
55 55 echo '<p class="frmcenter ' . esc_attr( $tip['class'] ) . '">';
56 56 }
57 57
58 - $link = self::get_tip_link( $tip );
58 + $link = empty( $tip['link'] ) ? $tip['page'] : FrmAppHelper::admin_upgrade_link( $tip['link'], $tip['page'] );
59 59 ?>
60 60 <a href="<?php echo esc_url( $link ); ?>" <?php echo empty( $tip['link'] ) ? '' : 'target="_blank"'; ?> class="frm_pro_tip frm-gradient">
61 61 <span class="frm-tip-badge"><?php esc_html_e( 'PRO TIP', 'formidable' ); ?></span>
62 62
@@ -76,30 +76,8 @@
76 76 }
77 77 }
78 78
79 79 /**
80 - * @since 6.21
81 - *
82 - * @param array $tip
83 - * @return string
84 - */
85 - private static function get_tip_link( $tip ) {
86 - if ( empty( $tip['tip'] ) ) {
87 - return $tip['page'];
88 - }
89 -
90 - $cta_link = FrmSalesApi::get_best_sale_value( 'pro_tip_cta_link' );
91 - if ( $cta_link ) {
92 - if ( is_array( $tip['link'] ) ) {
93 - $cta_link = FrmAppHelper::maybe_add_missing_utm( $cta_link, $tip['link'] );
94 - }
95 - return $cta_link;
96 - }
97 -
98 - return FrmAppHelper::admin_upgrade_link( $tip['link'], $tip['page'] );
99 - }
100 -
101 - /**
102 80 * Use the correct label for the license.
103 81 *
104 82 * @since 6.5.1
105 83 *
@@ -105,12 +83,8 @@
105 83 *
106 84 * @return string
107 85 */
108 86 private static function cta_label() {
109 - $cta_text = FrmSalesApi::get_best_sale_value( 'pro_tip_cta_text' );
110 - if ( $cta_text ) {
111 - return $cta_text;
112 - }
113 87 return FrmAddonsController::is_license_expired() ? __( 'Renew', 'formidable' ) : __( 'Upgrade to Pro.', 'formidable' );
114 88 }
115 89
116 90 /**
@@ -130,10 +104,10 @@
130 104 'link' => array(
131 105 'content' => 'confirmation-fields',
132 106 'param' => 'confirmation-fields-wordpress-forms',
133 107 ),
134 - 'tip' => __( 'Eliminate input errors with email confirmation fields.', 'formidable' ),
135 - 'call' => self::cta_label(),
108 + 'tip' => __( 'Want to stop losing leads from email typos?', 'formidable' ),
109 + 'call' => __( 'Add email confirmation fields.', 'formidable' ),
136 110 ),
137 111 array(
138 112 'link' => array(
139 113 'content' => 'page-breaks',
@@ -146,10 +120,10 @@
146 120 'link' => array(
147 121 'content' => 'file-uploads',
148 122 'param' => 'wordpress-multi-file-upload-fields',
149 123 ),
150 - 'tip' => __( 'Skip the follow-ups. Let users upload files.', 'formidable' ),
151 - 'call' => self::cta_label(),
124 + 'tip' => __( 'Cut down on back-and-forth with clients.', 'formidable' ),
125 + 'call' => __( 'Allow file uploads in your form.', 'formidable' ),
152 126 ),
153 127 array(
154 128 'link' => array(
155 129 'content' => 'calculations',
@@ -162,10 +136,10 @@
162 136 'link' => array(
163 137 'content' => 'prefill-fields',
164 138 'param' => 'auto-fill-forms',
165 139 ),
166 - 'tip' => __( 'Save time with autofill forms.', 'formidable' ),
167 - 'call' => self::cta_label(),
140 + 'tip' => __( 'Save time.', 'formidable' ),
141 + 'call' => __( 'Fill out forms automatically!', 'formidable' ),
168 142 ),
169 143 );
170 144
171 145 return $tips;
@@ -180,10 +154,10 @@
180 154 'link' => array(
181 155 'content' => 'front-edit-b',
182 156 'param' => 'wordpress-front-end-editing',
183 157 ),
184 - 'tip' => __( 'Make your site dynamic. Enable front-end editing.', 'formidable' ),
185 - 'call' => self::cta_label(),
158 + 'tip' => __( 'A site with dynamic, user-generated content is within reach.', 'formidable' ),
159 + 'call' => __( 'Add front-end editing.', 'formidable' ),
186 160 ),
187 161 array(
188 162 'link' => array(
189 163 'content' => 'save-drafts',
@@ -188,10 +162,10 @@
188 162 'link' => array(
189 163 'content' => 'save-drafts',
190 164 'param' => 'save-drafts-wordpress-form',
191 165 ),
192 - 'tip' => __( 'Long form? Let users save and finish later', 'formidable' ),
193 - 'call' => self::cta_label(),
166 + 'tip' => __( 'Have long forms?', 'formidable' ),
167 + 'call' => __( 'Let users save drafts and return later!', 'formidable' ),
194 168 ),
195 169 array(
196 170 'link' => array(
197 171 'content' => 'form-scheduling',
@@ -196,10 +170,10 @@
196 170 'link' => array(
197 171 'content' => 'form-scheduling',
198 172 'param' => 'schedule-forms-wordpress',
199 173 ),
200 - 'tip' => __( 'Limit form access with built-in scheduling.', 'formidable' ),
201 - 'call' => self::cta_label(),
174 + 'tip' => __( 'Want your form open only for a certain time period?', 'formidable' ),
175 + 'call' => __( 'Add form scheduling.', 'formidable' ),
202 176 ),
203 177 );
204 178
205 179 return $tips;
@@ -214,10 +188,10 @@
214 188 'link' => array(
215 189 'content' => 'email-routing',
216 190 'param' => 'virtually-unlimited-emails',
217 191 ),
218 - 'tip' => __( 'Save time — route emails to the right person automatically.', 'formidable' ),
219 - 'call' => self::cta_label(),
192 + 'tip' => __( 'Save time by sending the email to the right person automatically.', 'formidable' ),
193 + 'call' => __( 'Add email routing.', 'formidable' ),
220 194 ),
221 195 array(
222 196 'link' => array(
223 197 'content' => 'create-posts',
@@ -238,10 +212,10 @@
238 212 'link' => array(
239 213 'content' => 'mailchimp',
240 214 'page' => 'mailchimp-tip',
241 215 ),
242 - 'tip' => __( 'Send leads to Mailchimp for instant email follow-up.', 'formidable' ),
243 - 'call' => self::cta_label(),
216 + 'tip' => __( 'Grow your business with automated email follow-up.', 'formidable' ),
217 + 'call' => __( 'Send leads straight to Mailchimp.', 'formidable' ),
244 218 ),
245 219 array(
246 220 'link' => array(
247 221 'content' => 'paypal-revenue',
@@ -246,10 +220,10 @@
246 220 'link' => array(
247 221 'content' => 'paypal-revenue',
248 222 'page' => 'paypal-increase-revenue-tip',
249 223 ),
250 - 'tip' => __( 'Accept PayPal payments and grow your sales.', 'formidable' ),
251 - 'call' => self::cta_label(),
224 + 'tip' => __( 'Increase revenue.', 'formidable' ),
225 + 'call' => __( 'Use PayPal with this form.', 'formidable' ),
252 226 ),
253 227 array(
254 228 'link' => array(
255 229 'content' => 'paypal-fast',
@@ -254,10 +228,10 @@
254 228 'link' => array(
255 229 'content' => 'paypal-fast',
256 230 'page' => 'paypal-save-time-tip',
257 231 ),
258 - 'tip' => __( 'Accept payments now with PayPal integration.', 'formidable' ),
259 - 'call' => self::cta_label(),
232 + 'tip' => __( 'Get paid instantly.', 'formidable' ),
233 + 'call' => __( 'Use Paypal with this form.', 'formidable' ),
260 234 ),
261 235 array(
262 236 'link' => array(
263 237 'content' => 'registration',
@@ -270,10 +244,10 @@
270 244 'link' => array(
271 245 'content' => 'profile',
272 246 'page' => 'registration-profile-editing-tip',
273 247 ),
274 - 'tip' => __( 'Enable front-end profile editing with User Registration.', 'formidable' ),
275 - 'call' => self::cta_label(),
248 + 'tip' => __( 'Need front-end profile editing?', 'formidable' ),
249 + 'call' => __( 'Add user registration.', 'formidable' ),
276 250 ),
277 251 array(
278 252 'link' => array(
279 253 'content' => 'twilio-payment',
@@ -278,10 +252,10 @@
278 252 'link' => array(
279 253 'content' => 'twilio-payment',
280 254 'page' => 'twilio-tip',
281 255 ),
282 - 'tip' => __( 'Get SMS alerts for form submissions and payments—just add Twilio.', 'formidable' ),
283 - 'call' => self::cta_label(),
256 + 'tip' => __( 'Want an SMS notification when a form is submitted or a payment received?', 'formidable' ),
257 + 'call' => __( 'Get the Twilio integration.', 'formidable' ),
284 258 ),
285 259 array(
286 260 'link' => array(
287 261 'content' => 'twilio',
@@ -286,10 +260,10 @@
286 260 'link' => array(
287 261 'content' => 'twilio',
288 262 'page' => 'twilio-send-tip',
289 263 ),
290 - 'tip' => __( 'Use Twilio to send SMS when forms are submitted.', 'formidable' ),
291 - 'call' => self::cta_label(),
264 + 'tip' => __( 'Send an SMS message when a form is submitted.', 'formidable' ),
265 + 'call' => __( 'Get the Twilio integration.', 'formidable' ),
292 266 ),
293 267 array(
294 268 'link' => array(
295 269 'content' => 'acf-tip',
@@ -294,10 +268,10 @@
294 268 'link' => array(
295 269 'content' => 'acf-tip',
296 270 'param' => 'acf-tip',
297 271 ),
298 - 'tip' => __( 'Fill Advanced Custom Fields automatically with form entries.', 'formidable' ),
299 - 'call' => self::cta_label(),
272 + 'tip' => __( 'Fill Advanced Custom Fields from a form.', 'formidable' ),
273 + 'call' => __( 'Add ACF Integration', 'formidable' ),
300 274 ),
301 275 );
302 276
303 277 return $tips;
@@ -312,10 +286,10 @@
312 286 'link' => array(
313 287 'content' => 'style',
314 288 'param' => 'wordpress-visual-form-styler',
315 289 ),
316 - 'tip' => __( 'Make your forms stand out with multiple style templates.', 'formidable' ),
317 - 'call' => self::cta_label(),
290 + 'tip' => __( 'Make your sidebar and footer forms stand out.', 'formidable' ),
291 + 'call' => __( 'Use multiple style templates.', 'formidable' ),
318 292 ),
319 293 array(
320 294 'link' => array(
321 295 'content' => 'style',
@@ -346,10 +320,10 @@
346 320 'link' => array(
347 321 'content' => 'entries',
348 322 'param' => 'form-entry-management-wordpress',
349 323 ),
350 - 'tip' => __( 'Edit form entries anytime with entry management.', 'formidable' ),
351 - 'call' => self::cta_label(),
324 + 'tip' => __( 'Want to edit form submissions?', 'formidable' ),
325 + 'call' => __( 'Add entry management.', 'formidable' ),
352 326 ),
353 327 array(
354 328 'link' => array(
355 329 'content' => 'entries-search',
@@ -362,10 +336,10 @@
362 336 'link' => array(
363 337 'content' => 'views',
364 338 'param' => 'views-display-form-data',
365 339 ),
366 - 'tip' => __( 'Turn entries into dynamic content — no code needed.', 'formidable' ),
367 - 'call' => self::cta_label(),
340 + 'tip' => __( 'A site with dynamic, user-generated content is within reach.', 'formidable' ),
341 + 'call' => __( 'Display form data with Views.', 'formidable' ),
368 342 ),
369 343 );
370 344 $tips = array_merge( $tips, self::get_import_tip() );
371 345
@@ -389,10 +363,47 @@
389 363
390 364 return $tips;
391 365 }
392 366
367 + /**
368 + * @return array
369 + */
370 + public static function get_banner_tip() {
371 + $tips = array(
372 + array(
373 + 'link' => array(
374 + 'medium' => 'banner',
375 + 'content' => 'professional-results',
376 + ),
377 + 'tip' => __( 'Looking for more ways to get professional results?', 'formidable' ),
378 + 'call' => __( 'Take your forms to the next level.', 'formidable' ),
379 + ),
380 + array(
381 + 'link' => array(
382 + 'medium' => 'banner',
383 + 'content' => 'increase-conversions',
384 + ),
385 + 'tip' => __( 'Increase conversions in long forms.', 'formidable' ),
386 + 'call' => __( 'Add conditional logic, page breaks, and section headings.', 'formidable' ),
387 + ),
388 + array(
389 + 'link' => array(
390 + 'medium' => 'banner',
391 + 'content' => 'automate',
392 + ),
393 + 'tip' => __( 'Automate your business and increase revenue.', 'formidable' ),
394 + 'call' => __( 'Collect instant payments, and send leads to Mailchimp.', 'formidable' ),
395 + ),
396 + );
397 + $random = rand( 0, count( $tips ) - 1 );
398 + $tip = $tips[ $random ];
399 + $tip['num'] = $random;
400 +
401 + return $tip;
402 + }
403 +
393 404 public static function get_random_tip( $tips ) {
394 - $random = random_int( 0, count( $tips ) - 1 );
405 + $random = rand( 0, count( $tips ) - 1 );
395 406
396 407 return $tips[ $random ];
397 408 }
398 409
@@ -441,16 +452,6 @@
441 452 $attributes['id'] = $args['id'];
442 453 }
443 454
444 455 require FrmAppHelper::plugin_path() . '/classes/views/shared/admin-cta.php';
445 - }
446 -
447 - /**
448 - * @deprecated 6.21
449 - *
450 - * @return array
451 - */
452 - public static function get_banner_tip() {
453 - _deprecated_function( __METHOD__, '6.21' );
454 - return array();
455 456 }
456 457 }