PluginProbe
Tiered Pricing Table for WooCommerce / 8.1.0
Tiered Pricing Table for WooCommerce v8.1.0
8.1.0 8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 All 92 releases
← All changes | freemius/templates/forms/subscription-cancellation.php +18 -12 2.2.2 → 8.1.0 View file →
@@ -33,13 +33,19 @@
33 33 if ( $VARS['is_license_deactivation'] ) {
34 34 $subscription_cancellation_text = '';
35 35 } else {
36 36 $subscription_cancellation_text = sprintf(
37 - fs_text_inline(
38 - "Deactivating or uninstalling the %s will automatically disable the license, which you'll be able to use on another site.",
39 - 'deactivation-or-uninstall-message',
40 - $slug
41 - ),
37 + ( $fs->is_theme() ?
38 + fs_text_inline(
39 + "Deactivating or uninstalling the %s will automatically disable the license, which you'll be able to use on another site.",
40 + 'deactivation-or-uninstall-message',
41 + $slug
42 + ) :
43 + fs_text_inline(
44 + "Uninstalling the %s will automatically disable the license, which you'll be able to use on another site.",
45 + 'uninstall-message',
46 + $slug
47 + ) ),
42 48 $module_label
43 49 ) . ' ';
44 50 }
45 51
@@ -94,10 +100,10 @@
94 100 HTML;
95 101
96 102 $downgrading_plan_text = fs_text_inline( 'Downgrading your plan', 'downgrading-plan', $slug );
97 103 $cancelling_subscription_text = fs_text_inline( 'Cancelling the subscription', 'cancelling-subscription', $slug );
98 -/* translators: %1s: Either 'Downgrading your plan' or 'Cancelling the subscription' */
99 -$downgrade_x_confirm_text = fs_text_inline( '%1s will immediately stop all future recurring payments and your %s plan license will expire in %s.', 'downgrade-x-confirm', $slug );
104 +/* translators: %1$s: Either 'Downgrading your plan' or 'Cancelling the subscription' */
105 +$downgrade_x_confirm_text = fs_text_inline( '%1$s will immediately stop all future recurring payments and your %2$s plan license will expire in %3$s.', 'downgrade-x-confirm', $slug );
100 106 $prices_increase_text = fs_text_inline( 'Please note that we will not be able to grandfather outdated pricing for renewals/new subscriptions after a cancellation. If you choose to renew the subscription manually in the future, after a price increase, which typically occurs once a year, you will be charged the updated price.', 'pricing-increase-warning', $slug );
101 107 $after_downgrade_non_blocking_text = fs_text_inline( 'You can still enjoy all %s features but you will not have access to %s security & feature updates, nor support.', 'after-downgrade-non-blocking', $slug );
102 108 $after_downgrade_blocking_text = fs_text_inline( 'Once your license expires you can still use the Free version but you will NOT have access to the %s features.', 'after-downgrade-blocking', $slug );
103 109 $after_downgrade_blocking_text_premium_only = fs_text_inline( 'Once your license expires you will no longer be able to use the %s, unless you activate it again with a valid premium license.', 'after-downgrade-blocking-premium-only', $slug );
@@ -132,15 +138,15 @@
132 138 var modalHtml =
133 139 '<div class="fs-modal fs-modal-subscription-cancellation fs-modal-subscription-cancellation-<?php echo $fs->get_id() ?>">'
134 140 + ' <div class="fs-modal-dialog">'
135 141 + ' <div class="fs-modal-header">'
136 - + ' <h4><?php echo esc_attr( sprintf( fs_text_inline( 'Cancel %s?', 'cancel-x', $slug ), ucfirst( $subscription_cancellation_context ) ) ) ?></h4>'
142 + + ' <h4><?php echo esc_html( sprintf( fs_text_inline( 'Cancel %s?', 'cancel-x', $slug ), ucfirst( $subscription_cancellation_context ) ) ) ?></h4>'
137 143 + ' </div>'
138 144 + ' <div class="fs-modal-body">'
139 145 + ' <div class="fs-modal-panel active">' + <?php echo json_encode( $subscription_cancellation_html ) ?> + '<p class="fs-price-increase-warning" style="display: none;">' + <?php echo json_encode( $prices_increase_text ) ?> + '</p></div>'
140 146 + ' </div>'
141 147 + ' <div class="fs-modal-footer">'
142 - + ' <a href="#" class="button button-secondary button-close"><?php fs_esc_attr_echo( 'cancel', $slug ) ?></a>'
148 + + ' <a href="#" class="button button-secondary button-close"><?php fs_esc_attr_echo_inline( 'Cancel', 'cancel', $slug ) ?></a>'
143 149 + ' <a href="#" class="button button-primary button-deactivate disabled"><?php fs_esc_attr_echo_inline( 'Proceed', 'proceed', $slug ) ?></a>'
144 150 + ' </div>'
145 151 + ' </div>'
146 152 + '</div>',
@@ -169,9 +175,9 @@
169 175 var _this = $(this),
170 176 subscriptionCancellationActionEventName = <?php echo json_encode( $fs->get_action_tag( 'subscription_cancellation_action' ) ) ?>;
171 177
172 178 if ( _this.hasClass( 'button-primary' ) ) {
173 - if ( 'true' !== $( 'input[name="cancel-subscription"]:checked' ).val() ) {
179 + if ( 'true' !== $modal.find( 'input[name="cancel-subscription"]:checked' ).val() ) {
174 180 $modal.trigger( subscriptionCancellationActionEventName, false );
175 181 } else {
176 182 if ( confirm( <?php echo json_encode( $subscription_cancellation_confirmation_message ) ?> ) ) {
177 183 $modal.trigger( subscriptionCancellationActionEventName, true );
@@ -193,9 +199,9 @@
193 199 ) ) ?> );
194 200
195 201 $modal.find('.fs-price-increase-warning').show();
196 202 } else {
197 - $primaryButton.html( <?php echo fs_json_encode_echo_inline( 'Proceed', 'proceed', $slug ) ?> );
203 + $primaryButton.html( <?php fs_json_encode_echo_inline( 'Proceed', 'proceed', $slug ) ?> );
198 204 $modal.find('.fs-price-increase-warning').hide();
199 205 }
200 206
201 207 $primaryButton.toggleClass( 'warn', isSelected );
@@ -270,8 +276,8 @@
270 276
271 277 function updateButtonLabels() {
272 278 $modal.find('.button-primary').text( <?php fs_json_encode_echo_inline( 'Proceed', 'proceed', $slug ) ?> );
273 279
274 - $modal.find('.button-secondary').text( <?php fs_json_encode_echo( 'cancel', $slug ) ?> );
280 + $modal.find('.button-secondary').text( <?php fs_json_encode_echo_inline( 'Cancel', 'cancel', $slug ) ?> );
275 281 }
276 282 })( jQuery );
277 283 </script>