| @@ -80,8 +80,19 @@ | ||
| 80 | 80 | } |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | /** |
| 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 | + /** | |
| 84 | 95 | * @return array |
| 85 | 96 | */ |
| 86 | 97 | public static function get_builder_tip() { |
| 87 | 98 | $tips = array( |
| @@ -90,9 +101,9 @@ | ||
| 90 | 101 | 'content' => 'conditional-logic', |
| 91 | 102 | 'param' => 'conditional-logic-wordpress-forms', |
| 92 | 103 | ), |
| 93 | 104 | 'tip' => __( 'Use conditional logic to shorten your forms and increase conversions.', 'formidable' ), |
| 94 | - 'call' => __( 'Upgrade to Pro.', 'formidable' ), | |
| 105 | + 'call' => self::cta_label(), | |
| 95 | 106 | ), |
| 96 | 107 | array( |
| 97 | 108 | 'link' => array( |
| 98 | 109 | 'content' => 'confirmation-fields', |
| @@ -106,9 +117,9 @@ | ||
| 106 | 117 | 'content' => 'page-breaks', |
| 107 | 118 | 'param' => 'wordpress-multi-page-forms', |
| 108 | 119 | ), |
| 109 | 120 | 'tip' => __( 'Use page breaks for easier forms.', 'formidable' ), |
| 110 | - 'call' => __( 'Upgrade to Pro.', 'formidable' ), | |
| 121 | + 'call' => self::cta_label(), | |
| 111 | 122 | ), |
| 112 | 123 | array( |
| 113 | 124 | 'link' => array( |
| 114 | 125 | 'content' => 'file-uploads', |
| @@ -122,9 +133,9 @@ | ||
| 122 | 133 | 'content' => 'calculations', |
| 123 | 134 | 'param' => 'field-calculations-wordpress-form', |
| 124 | 135 | ), |
| 125 | 136 | 'tip' => __( 'Need to calculate a total?', 'formidable' ), |
| 126 | - 'call' => __( 'Upgrade to Pro.', 'formidable' ), | |
| 137 | + 'call' => self::cta_label(), | |
| 127 | 138 | ), |
| 128 | 139 | array( |
| 129 | 140 | 'link' => array( |
| 130 | 141 | 'content' => 'prefill-fields', |
| @@ -190,9 +201,9 @@ | ||
| 190 | 201 | 'content' => 'create-posts', |
| 191 | 202 | 'param' => 'create-posts-pages-wordpress-forms', |
| 192 | 203 | ), |
| 193 | 204 | 'tip' => __( 'Create blog posts or pages from the front-end.', 'formidable' ), |
| 194 | - 'call' => __( 'Upgrade to Pro.', 'formidable' ), | |
| 205 | + 'call' => self::cta_label(), | |
| 195 | 206 | ), |
| 196 | 207 | array( |
| 197 | 208 | 'link' => array( |
| 198 | 209 | 'content' => 'user-submit', |
| @@ -198,9 +209,9 @@ | ||
| 198 | 209 | 'content' => 'user-submit', |
| 199 | 210 | 'param' => 'create-posts-pages-wordpress-forms', |
| 200 | 211 | ), |
| 201 | 212 | 'tip' => __( 'Let your users submit posts on the front-end.', 'formidable' ), |
| 202 | - 'call' => __( 'Upgrade to Pro.', 'formidable' ), | |
| 213 | + 'call' => self::cta_label(), | |
| 203 | 214 | ), |
| 204 | 215 | array( |
| 205 | 216 | 'link' => array( |
| 206 | 217 | 'content' => 'mailchimp', |
| @@ -288,9 +299,9 @@ | ||
| 288 | 299 | 'content' => 'style', |
| 289 | 300 | 'param' => 'bg-image-style-settings', |
| 290 | 301 | ), |
| 291 | 302 | 'tip' => __( 'Want to add a background image?', 'formidable' ), |
| 292 | - 'call' => __( 'Upgrade to Pro.', 'formidable' ), | |
| 303 | + 'call' => self::cta_label(), | |
| 293 | 304 | ), |
| 294 | 305 | array( |
| 295 | 306 | 'link' => array( |
| 296 | 307 | 'content' => 'style', |
| @@ -296,9 +307,9 @@ | ||
| 296 | 307 | 'content' => 'style', |
| 297 | 308 | 'param' => 'duplicate-style', |
| 298 | 309 | ), |
| 299 | 310 | 'tip' => __( 'Want to duplicate a style?', 'formidable' ), |
| 300 | - 'call' => __( 'Upgrade to Pro.', 'formidable' ), | |
| 311 | + 'call' => self::cta_label(), | |
| 301 | 312 | ), |
| 302 | 313 | ); |
| 303 | 314 | |
| 304 | 315 | return $tips; |
| @@ -322,9 +333,9 @@ | ||
| 322 | 333 | 'content' => 'entries-search', |
| 323 | 334 | 'param' => 'form-entry-management-wordpress', |
| 324 | 335 | ), |
| 325 | 336 | 'tip' => __( 'Want to search submitted entries?', 'formidable' ), |
| 326 | - 'call' => __( 'Upgrade to Pro.', 'formidable' ), | |
| 337 | + 'call' => self::cta_label(), | |
| 327 | 338 | ), |
| 328 | 339 | array( |
| 329 | 340 | 'link' => array( |
| 330 | 341 | 'content' => 'views', |
| @@ -349,9 +360,9 @@ | ||
| 349 | 360 | 'content' => 'import', |
| 350 | 361 | 'param' => 'importing-exporting-wordpress-forms', |
| 351 | 362 | ), |
| 352 | 363 | 'tip' => __( 'Want to import entries into your forms?', 'formidable' ), |
| 353 | - 'call' => __( 'Upgrade to Pro.', 'formidable' ), | |
| 364 | + 'call' => self::cta_label(), | |
| 354 | 365 | ), |
| 355 | 366 | ); |
| 356 | 367 | |
| 357 | 368 | return $tips; |