Skip to content

Commit 4b9fc4c

Browse files
show plan-based notice for pro features
1 parent 8c85e49 commit 4b9fc4c

File tree

5 files changed

+31
-13
lines changed

5 files changed

+31
-13
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
<?php
2+
$plan = apply_filters( 'product_feedzy_license_plan', 0 );
3+
$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' ) . ' ';
4+
?>
5+
16
<div class="fz-form-wrap">
27
<div class="form-block">
38
<div class="upgrade-alert mb-24">
49
<?php
510
$upgrade_url = tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'amazonproductadvertising' ) );
611

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

includes/views/openai-view.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
<?php
2+
$plan = apply_filters( 'product_feedzy_license_plan', 0 );
3+
$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' ) . ' ';
4+
?>
5+
16
<div class="fz-form-wrap">
27
<div class="form-block">
38
<div class="upgrade-alert mb-24">
49
<?php
510
$upgrade_url = tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'openai' ) );
611

7-
$content = __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
812
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
913
$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>' );
1014
echo wp_kses_post( $content );

includes/views/openrouter-view.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
<?php
2+
$plan = apply_filters( 'product_feedzy_license_plan', 0 );
3+
$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' ) . ' ';
4+
?>
5+
16
<div class="fz-form-wrap">
27
<div class="form-block">
38
<div class="upgrade-alert mb-24">
49
<?php
510
$upgrade_url = tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'openrouter' ) );
611

7-
$content = __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
812
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
913
$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>' );
1014
echo wp_kses_post( $content );

includes/views/spinnerchief-view.php

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1+
<?php
2+
$plan = apply_filters( 'product_feedzy_license_plan', 0 );
3+
$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' ) . ' ';
4+
?>
5+
16
<div class="fz-form-wrap">
27
<div class="form-block">
38
<div class="upgrade-alert mb-24">
49
<?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-
?>
10+
$upgrade_url = tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'spinnerchief' ) );
11+
12+
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
13+
$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>' );
14+
echo wp_kses_post( $content );
15+
?>
1416
</div>
1517
<div class="locked-form-block">
1618
<div class="fz-form-group">

includes/views/wordai-view.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
<?php
2+
$plan = apply_filters( 'product_feedzy_license_plan', 0 );
3+
$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' ) . ' ';
4+
?>
5+
16
<div class="fz-form-wrap">
27
<div class="form-block">
38
<div class="upgrade-alert mb-24">
49
<?php
510
$upgrade_url = tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'wordai' ) );
611

7-
$content = __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
812
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
913
$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>' );
1014

0 commit comments

Comments
 (0)