Skip to content

Commit 6f61ef9

Browse files
committed
use path based language switch
1 parent 9543fc0 commit 6f61ef9

14 files changed

+19
-19
lines changed

feedzy-rss-feed.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ function feedzy_themeisle_log_event( $name, $msg, $type, $file, $line ) {
255255
'primary_color' => '#4268CF',
256256
'pages' => array( 'feedzy_imports', 'edit-feedzy_imports', 'edit-feedzy_categories', 'feedzy_page_feedzy-settings', 'feedzy_page_feedzy-support', 'feedzy_page_feedzy-integration' ),
257257
'has_upgrade_menu' => ! feedzy_is_pro(),
258-
'upgrade_link' => tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'floatWidget' ), 'query' ),
259-
'documentation_link' => tsdk_translate_link( tsdk_utmify( 'https://docs.themeisle.com/collection/1569-feedzy-rss-feeds', 'floatWidget' ), 'query' ),
258+
'upgrade_link' => tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'floatWidget' ) ),
259+
'documentation_link' => tsdk_translate_link( tsdk_utmify( 'https://docs.themeisle.com/collection/1569-feedzy-rss-feeds', 'floatWidget' ) ),
260260
'wizard_link' => ! feedzy_is_pro() && ! empty( get_option( 'feedzy_fresh_install', false ) ) ? admin_url( 'admin.php?page=feedzy-setup-wizard&tab#step-1' ) : '',
261261
);
262262
}

includes/admin/feedzy-rss-feeds-admin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ public function render_upsell_rn() {
648648
<li>- Translate content</li>
649649
<li>- Elementor Templates support</li>
650650
</ul>';
651-
echo '<a class="button button-primary " href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'metabox', 'new-category' ), 'query' ) ) . '" target="_blank">View more details</a>';
651+
echo '<a class="button button-primary " href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'metabox', 'new-category' ) ) ) . '" target="_blank">View more details</a>';
652652
}
653653

654654
/**
@@ -825,9 +825,9 @@ public function feedzy_filter_plugin_row_meta( $links, $file ) {
825825
$new_links['doc'] = '<a href="https://docs.themeisle.com/article/658-feedzy-rss-feeds" target="_blank" title="' . __( 'Documentation and examples', 'feedzy-rss-feeds' ) . '">' . __( 'Documentation and examples', 'feedzy-rss-feeds' ) . '</a>';
826826

827827
if ( ! feedzy_is_pro() ) {
828-
$new_links['more_features'] = '<a style="color: #009E29; font-weight: 700;" onmouseout="this.style.color=\'#009528\';" onmouseover="this.style.color=\'#008a20\';" href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'rowmeta', 'plugins' ), 'query' ) ) . '" target="_blank" title="' . __( 'More Features', 'feedzy-rss-feeds' ) . '">' . __( 'Upgrade to Pro', 'feedzy-rss-feeds' ) . '<i style="width: 17px; height: 17px; margin-left: 4px; color: #ffca54; font-size: 17px; vertical-align: -3px;" class="dashicons dashicons-unlock more-features-icon"></i></a>';
828+
$new_links['more_features'] = '<a style="color: #009E29; font-weight: 700;" onmouseout="this.style.color=\'#009528\';" onmouseover="this.style.color=\'#008a20\';" href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'rowmeta', 'plugins' ) ) ) . '" target="_blank" title="' . __( 'More Features', 'feedzy-rss-feeds' ) . '">' . __( 'Upgrade to Pro', 'feedzy-rss-feeds' ) . '<i style="width: 17px; height: 17px; margin-left: 4px; color: #ffca54; font-size: 17px; vertical-align: -3px;" class="dashicons dashicons-unlock more-features-icon"></i></a>';
829829
} elseif ( false === apply_filters( 'feedzy_is_license_of_type', false, 'agency' ) ) {
830-
$new_links['more_features'] = '<a href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'rowmetamore', 'plugins' ), 'query' ) ) . '" target="_blank" title="' . __( 'More Features', 'feedzy-rss-feeds' ) . '">' . __( 'Upgrade your license', 'feedzy-rss-feeds' ) . '<i style="width: 17px; height: 17px; margin-left: 4px; color: #ffca54; font-size: 17px; vertical-align: -3px;" class="dashicons dashicons-unlock more-features-icon"></i></a>';
830+
$new_links['more_features'] = '<a href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'rowmetamore', 'plugins' ) ) ) . '" target="_blank" title="' . __( 'More Features', 'feedzy-rss-feeds' ) . '">' . __( 'Upgrade your license', 'feedzy-rss-feeds' ) . '<i style="width: 17px; height: 17px; margin-left: 4px; color: #ffca54; font-size: 17px; vertical-align: -3px;" class="dashicons dashicons-unlock more-features-icon"></i></a>';
831831
}
832832
$links = array_merge( $links, $new_links );
833833
}

includes/admin/feedzy-rss-feeds-import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function upsell_content( $content, $area, $location ) {
102102
<div class="only-pro-container">
103103
<div class="only-pro-inner upgrade-alert">
104104
' . __( 'This feature is available in the Pro version. Unlock more features, by', 'feedzy-rss-feeds' ) . '
105-
<a target="_blank" href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, $area, $location ), 'query' ) ) . '" title="' . __( 'Buy Now', 'feedzy-rss-feeds' ) . '">' . __( 'upgrading to Feedzy Pro', 'feedzy-rss-feeds' ) . '</a>
105+
<a target="_blank" href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, $area, $location ) ) ) . '" title="' . __( 'Buy Now', 'feedzy-rss-feeds' ) . '">' . __( 'upgrading to Feedzy Pro', 'feedzy-rss-feeds' ) . '</a>
106106
</div>
107107
</div>
108108
</div>';

includes/admin/feedzy-rss-feeds-ui-lang.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Feedzy_Rss_Feeds_Ui_Lang {
4848
public function __construct() {
4949
$this->strings = array(
5050
'popup_url' => wp_nonce_url( 'admin-ajax.php', 'feedzy_ajax_token', 'feedzy_request_form_token' ),
51-
'pro_url' => tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'shortcode' ), 'query' ),
51+
'pro_url' => tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'shortcode' ) ),
5252
'plugin_label' => __( 'Feedzy Lite', 'feedzy-rss-feeds' ),
5353
'plugin_title' => __( 'Insert Feedzy RSS Feeds Shortcode', 'feedzy-rss-feeds' ),
5454
'image_button' => __( 'Use Image', 'feedzy-rss-feeds' ),
@@ -454,7 +454,7 @@ public static function get_form_elements() {
454454
),
455455
'section_pro' => array(
456456
'title' => __( 'PRO Options', 'feedzy-rss-feeds' ),
457-
'description' => __( 'Get access to more options and customizations with full version of Feedzy RSS Feeds . Use existing templates or extend them and make them your own.', 'feedzy-rss-feeds' ) . '<br/>' . '<a href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'sectionpro' ), 'query' ) ) . '" target="_blank"><small>' . __( 'See more features of Feedzy RSS Feeds PRO', 'feedzy-rss-feeds' ) . '</small></a>',
457+
'description' => __( 'Get access to more options and customizations with full version of Feedzy RSS Feeds . Use existing templates or extend them and make them your own.', 'feedzy-rss-feeds' ) . '<br/>' . '<a href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'sectionpro' ) ) ) . '" target="_blank"><small>' . __( 'See more features of Feedzy RSS Feeds PRO', 'feedzy-rss-feeds' ) . '</small></a>',
458458
'elements' => array(
459459
'price' => array(
460460
'label' => sprintf(

includes/elementor/widgets/register-widget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ protected function register_controls() { // phpcs:ignore PSR2.Methods.MethodDecl
575575
wp_sprintf(
576576
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
577577
__( 'Unlock this feature and more advanced options with %1$s Feedzy Pro %1$s.', 'feedzy-rss-feeds' ),
578-
'<a target="_blank" href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'refferal', 'widget-area' ), 'query' ) ) . '">',
578+
'<a target="_blank" href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'refferal', 'widget-area' ) ) ) . '">',
579579
'</a>'
580580
)
581581
: ''

includes/gutenberg/feedzy-rss-feeds-gutenberg-block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function feedzy_gutenberg_scripts() {
7474
array(
7575
'imagepath' => esc_url( FEEDZY_ABSURL . 'img/' ),
7676
'isPro' => feedzy_is_pro(),
77-
'upsellLinkBlockEditor' => esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'keywordsfilter', 'blockeditor' ), 'query' ) ),
77+
'upsellLinkBlockEditor' => esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'keywordsfilter', 'blockeditor' ) ) ),
7878
)
7979
);
8080

includes/layouts/feedzy-pro.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
</div>
187187

188188
<div class="cta">
189-
<a href="<?php echo esc_url( tsdk_translate_link( tsdk_utmify(FEEDZY_UPSELL_LINK,'viewall','freevspro'), 'query' ) ) ; ?>" class="btn btn-block btn-primary btn-lg" target="_blank">
189+
<a href="<?php echo esc_url( tsdk_translate_link( tsdk_utmify(FEEDZY_UPSELL_LINK,'viewall','freevspro') ) ) ; ?>" class="btn btn-block btn-primary btn-lg" target="_blank">
190190
<?php esc_html_e( 'View all Premium features', 'feedzy-rss-feeds' ); ?>
191191
</a>
192192
</div>

includes/layouts/setup-wizard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class="pro-label free-label"><?php esc_html_e( 'Free', 'feedzy-rss-feeds' ); ?><
269269
// translators: %1$s is the percentage improvement, %2$s and %3$s are HTML tags for the link to the Optimole website.
270270
__( 'Improve your website speed and images by %1$s with %2$s Optimole %3$s', 'feedzy-rss-feeds' ),
271271
'80%',
272-
'<a target="_blank" href="' . esc_url( tsdk_translate_link( tsdk_utmify( 'https://optimole.com/pricing/', 'setupWizard' ), 'query' ) ) . '">',
272+
'<a target="_blank" href="' . esc_url( tsdk_translate_link( tsdk_utmify( 'https://optimole.com/pricing/', 'setupWizard' ) ) ) . '">',
273273
'</a>'
274274
)
275275
);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="form-block">
33
<div class="upgrade-alert mb-24">
44
<?php
5-
$upgrade_url = tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'amazonproductadvertising' ), 'query' );
5+
$upgrade_url = tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'amazonproductadvertising' ) );
66

77
$content = __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
88
$content .= wp_sprintf(

includes/views/import-metabox-edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ class="form-control fz-textarea-tagify"><?php echo esc_html( feedzy_custom_tag_e
497497
sprintf(
498498
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag
499499
__( 'Add more advanced tags, like item price, rating and many more, by %1$s upgrading to Feedzy Pro %2$s', 'feedzy-rss-feeds' ),
500-
'<a href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'moreadvanced' ), 'query' ) ) . '" target="_blank">',
500+
'<a href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'moreadvanced' ) ) ) . '" target="_blank">',
501501
'</a><button type="button" class="remove-alert"><span class="dashicons dashicons-no-alt"></span></button>'
502502
)
503503
);
@@ -661,7 +661,7 @@ class="fz-switch-toggle" type="checkbox" value="yes"
661661
sprintf(
662662
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag
663663
__( 'Add more advanced tags, like item price, rating and many more, by %1$s upgrading to Feedzy Pro %2$s', 'feedzy-rss-feeds' ),
664-
'<a href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'post-excerpt', 'import' ), 'query' ) ) . '" target="_blank">',
664+
'<a href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'post-excerpt', 'import' ) ) ) . '" target="_blank">',
665665
'</a><button type="button" class="remove-alert"><span class="dashicons dashicons-no-alt"></span></button>'
666666
)
667667
);

0 commit comments

Comments
 (0)