PluginProbe
Passster – Password Protect Pages and Content / 4.3.17
Passster – Password Protect Pages and Content v4.3.17
4.3.17 4.3.16 4.3.15 4.3.14 4.3.12 4.3.13 4.3.11 4.3.10 4.3.9 4.3.8 4.3.7 4.3.6 4.3.5 trunk 3.5.4 3.5.5.2 3.5.5.8 3.5.5.9 4.0 4.1.4 4.2.10 4.2.11 4.2.12 4.2.13 4.2.14 All 49 releases
← All changes | inc/freemius/templates/account/partials/addon.php +15 -10 3.5.4 → 4.3.17 View file →
@@ -1,5 +1,10 @@
1 1 <?php
2 +
3 + if ( ! defined( 'ABSPATH' ) ) {
4 + exit;
5 + }
6 +
2 7 /**
3 8 * @var array $VARS
4 9 * @var Freemius $fs
5 10 */
@@ -25,9 +30,9 @@
25 30 $download_latest_text = fs_text_x_inline( 'Download Latest', 'as download latest version', 'download-latest', $slug );
26 31 $downgrading_plan_text = fs_text_inline( 'Downgrading your plan', 'downgrading-plan', $slug );
27 32 $cancelling_subscription_text = fs_text_inline( 'Cancelling the subscription', 'cancelling-subscription', $slug );
28 33 /* translators: %1$s: Either 'Downgrading your plan' or 'Cancelling the subscription' */
29 - $downgrade_x_confirm_text = fs_text_inline( '%1$s will immediately stop all future recurring payments and your %s plan license will expire in %s.', 'downgrade-x-confirm', $slug );
34 + $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 );
30 35 $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 );
31 36 $cancel_trial_confirm_text = fs_text_inline( 'Cancelling the trial will immediately block access to all premium features. Are you sure?', 'cancel-trial-confirm', $slug );
32 37 $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 );
33 38 $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 );
@@ -234,21 +239,21 @@
234 239 false,
235 240 true
236 241 );
237 242
238 - $human_readable_license_expiration = human_time_diff( time(), strtotime( $license->expiration ) );
239 - $downgrade_confirmation_message = sprintf(
240 - $downgrade_x_confirm_text,
241 - ( $fs_addon->is_only_premium() ? $cancelling_subscription_text : $downgrading_plan_text ),
242 - $plan->title,
243 - $human_readable_license_expiration
244 - );
245 -
246 243 $after_downgrade_message = ! $license->is_block_features ?
247 244 sprintf( $after_downgrade_non_blocking_text, $plan->title, $fs_addon->get_module_label( true ) ) :
248 245 sprintf( $after_downgrade_blocking_text, $plan->title );
249 246
250 247 if ( ! $license->is_lifetime() && $is_active_subscription ) {
248 + $human_readable_license_expiration = human_time_diff( time(), strtotime( $license->expiration ) );
249 + $downgrade_confirmation_message = sprintf(
250 + $downgrade_x_confirm_text,
251 + ( $fs_addon->is_only_premium() ? $cancelling_subscription_text : $downgrading_plan_text ),
252 + $plan->title,
253 + $human_readable_license_expiration
254 + );
255 +
251 256 $buttons[] = fs_ui_get_action_button(
252 257 $fs->get_id(),
253 258 'account',
254 259 'downgrade_account',
@@ -442,5 +447,5 @@
442 447 ?>
443 448 </td>
444 449 <!--/ Optional Delete Action -->
445 450 <?php endif ?>
446 -</tr>
451 +</tr>