@@ -2374,35 +2374,30 @@ private function enable_telemetry() {
2374
2374
public function add_black_friday_data ( $ configs ) {
2375
2375
$ config = $ configs ['default ' ];
2376
2376
2377
- // translators: %1$s - discount , %2$s - product label .
2378
- $ message_template = __ ( 'Our biggest sale of the year: %1$s off on %2$s! Don \'t miss this limited-time offer. ' , 'feedzy-rss-feeds ' );
2379
- $ product_label = __ ( 'Feedzy ' , ' feedzy-rss-feeds ' ) ;
2377
+ // translators: %1$s - HTML tag , %2$s - discount, %3$s - HTML tag, %4$s - product name .
2378
+ $ message_template = __ ( 'Our biggest sale of the year: %1$sup to %2$s OFF%3$s on %4$s. Don \'t miss this limited-time offer. ' , 'feedzy-rss-feeds ' );
2379
+ $ product_label = 'Feedzy ' ;
2380
2380
$ discount = '70% ' ;
2381
2381
2382
2382
$ is_pro = feedzy_is_pro ();
2383
2383
2384
2384
if ( $ is_pro ) {
2385
- // translators: %1$s - discount , %2$s - product label .
2386
- $ message_template = __ ( 'Get %1$s off when you upgrade your %2 $s plan or renew early. ' , 'feedzy-rss-feeds ' );
2387
- $ product_label = __ ( 'Feedzy Pro ' , ' feedzy-rss-feeds ' ) ;
2385
+ // translators: %1$s - HTML tag , %2$s - discount, %3$s - HTML tag, %4$s - product name .
2386
+ $ message_template = __ ( 'Get %1$sup to %2$ s off%3$s when you upgrade your %4 $s plan or renew early. ' , 'feedzy-rss-feeds ' );
2387
+ $ product_label = 'Feedzy Pro ' ;
2388
2388
$ discount = '30% ' ;
2389
2389
}
2390
2390
2391
- $ discount = sprintf ( '<strong>%s</strong> ' , $ discount );
2392
2391
$ product_label = sprintf ( '<strong>%s</strong> ' , $ product_label );
2393
2392
$ url_params = array (
2394
2393
'utm_term ' => $ is_pro ? 'plan- ' . apply_filters ( 'product_feedzy_license_plan ' , 0 ) : 'free ' ,
2395
2394
'lkey ' => apply_filters ( 'product_feedzy_license_key ' , false )
2396
2395
);
2397
2396
2398
- if ( ! empty ( $ license_key ) ) {
2399
- $ url_params ['lkey ' ] = $ license_key ;
2400
- }
2401
-
2402
- $ config ['message ' ] = sprintf ( $ message_template , $ discount , $ product_label );
2397
+ $ config ['message ' ] = sprintf ( $ message_template , '<strong> ' , $ discount , '</strong> ' , $ product_label );
2403
2398
$ config ['sale_url ' ] = add_query_arg (
2404
2399
$ url_params ,
2405
- tsdk_translate_link ( tsdk_utmify ( 'https://themeisle.com/plugins/ feedzy-rss-feeds/blackfriday ' , 'bfcm ' , 'feedzy ' ) )
2400
+ tsdk_translate_link ( tsdk_utmify ( 'https://themeisle.link/ feedzy-bf ' , 'bfcm ' , 'feedzy ' ) )
2406
2401
);
2407
2402
2408
2403
$ configs [ $ this ->plugin_name ] = $ config ;
0 commit comments