Skip to content

Commit d26b431

Browse files
feat: change the integration upsell label based on the license plan (#1130)
1 parent 747c2a0 commit d26b431

File tree

5 files changed

+26
-13
lines changed

5 files changed

+26
-13
lines changed

includes/views/amazon-product-advertising-view.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
<?php
2+
$content = ! apply_filters( 'feedzy_is_license_of_type', false, 'business' ) ? __( 'Your current plan does not include support for this feature.', 'feedzy-rss-feeds' ) . ' ' : __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
3+
?>
4+
15
<div class="fz-form-wrap">
26
<div class="form-block">
37
<div class="upgrade-alert mb-24">
48
<?php
59
$upgrade_url = tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'amazonproductadvertising' ) );
610

7-
$content = __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
811
$content .= wp_sprintf(
912
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
1013
__( 'Unlock more powerful features, by %1$s upgrading to Feedzy Pro %2$s', 'feedzy-rss-feeds' ),

includes/views/openai-view.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
<?php
2+
$content = ! apply_filters( 'feedzy_is_license_of_type', false, 'business' ) ? __( 'Your current plan does not include support for this feature.', 'feedzy-rss-feeds' ) . ' ' : __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
3+
?>
4+
15
<div class="fz-form-wrap">
26
<div class="form-block">
37
<div class="upgrade-alert mb-24">
48
<?php
59
$upgrade_url = tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'openai' ) );
610

7-
$content = __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
811
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
912
$content .= wp_sprintf( __( 'Unlock more powerful features, by %1$s upgrading to Feedzy Pro %2$s', 'feedzy-rss-feeds' ), '<a href="' . esc_url( $upgrade_url ) . '" target="_blank">', '</a>' );
1013
echo wp_kses_post( $content );

includes/views/openrouter-view.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
<?php
2+
$content = ! apply_filters( 'feedzy_is_license_of_type', false, 'business' ) ? __( 'Your current plan does not include support for this feature.', 'feedzy-rss-feeds' ) . ' ' : __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
3+
?>
4+
15
<div class="fz-form-wrap">
26
<div class="form-block">
37
<div class="upgrade-alert mb-24">
48
<?php
59
$upgrade_url = tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'openrouter' ) );
610

7-
$content = __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
811
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
912
$content .= wp_sprintf( __( 'Unlock more powerful features, by %1$s upgrading to Feedzy Pro %2$s', 'feedzy-rss-feeds' ), '<a href="' . esc_url( $upgrade_url ) . '" target="_blank">', '</a>' );
1013
echo wp_kses_post( $content );

includes/views/spinnerchief-view.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1+
<?php
2+
$content = ! apply_filters( 'feedzy_is_license_of_type', false, 'business' ) ? __( 'Your current plan does not include support for this feature.', 'feedzy-rss-feeds' ) . ' ' : __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
3+
?>
4+
15
<div class="fz-form-wrap">
26
<div class="form-block">
37
<div class="upgrade-alert mb-24">
48
<?php
5-
echo wp_kses_post(
6-
__( 'You\'re using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ' . wp_sprintf(
7-
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
8-
__( 'Unlock more powerful features, by %1$s upgrading to Feedzy Pro %2$s', 'feedzy-rss-feeds' ),
9-
'<a target="_blank" href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'spinnerchief' ) ) ) . '">',
10-
'</a>'
11-
)
12-
);
13-
?>
9+
$upgrade_url = tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'spinnerchief' ) );
10+
11+
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
12+
$content .= wp_sprintf( __( 'Unlock more powerful features, by %1$s upgrading to Feedzy Pro %2$s', 'feedzy-rss-feeds' ), '<a href="' . esc_url( $upgrade_url ) . '" target="_blank">', '</a>' );
13+
echo wp_kses_post( $content );
14+
?>
1415
</div>
1516
<div class="locked-form-block">
1617
<div class="fz-form-group">

includes/views/wordai-view.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
<?php
2+
$content = ! apply_filters( 'feedzy_is_license_of_type', false, 'business' ) ? __( 'Your current plan does not include support for this feature.', 'feedzy-rss-feeds' ) . ' ' : __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
3+
?>
4+
15
<div class="fz-form-wrap">
26
<div class="form-block">
37
<div class="upgrade-alert mb-24">
48
<?php
59
$upgrade_url = tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'wordai' ) );
610

7-
$content = __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
811
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
912
$content .= wp_sprintf( __( 'Unlock more powerful features, by %1$s upgrading to Feedzy Pro %2$s', 'feedzy-rss-feeds' ), '<a href="' . esc_url( $upgrade_url ) . '" target="_blank">', '</a>' );
1013

0 commit comments

Comments
 (0)