get_slug();
$site = $VARS['site'];
$main_license = $VARS['license'];
$is_data_debug_mode = $fs->is_data_debug_mode();
$is_whitelabeled = $fs->is_whitelabeled();
$has_paid_plan = $fs->has_paid_plan();
$is_premium = $fs->is_premium();
$main_user = $VARS['user'];
$blog_id = $site['blog_id'];
$install = $VARS['install'];
$is_registered = ! empty( $install );
$license = null;
$trial_plan = $fs->get_trial_plan();
$free_text = fs_text_inline( 'Free', 'free', $slug );
if ( $is_whitelabeled && is_object( $install ) && $fs->is_delegated_connection( $blog_id ) ) {
$is_whitelabeled = $fs->is_whitelabeled( true, $blog_id );
}
?>
data-install-id="id ?>">
id ?>
|
|
$fs,
'slug' => $slug,
'blog_id' => $blog_id,
'class' => 'button-small',
);
$license = null;
if ( $is_registered ) {
$view_params['install_id'] = $install->id;
$view_params['is_localhost'] = $install->is_localhost();
$has_license = FS_Plugin_License::is_valid_id( $install->license_id );
$license = $has_license ?
$fs->_get_license_by_id( $install->license_id ) :
null;
} else {
$view_params['is_localhost'] = FS_Site::is_localhost_by_address( $site['url'] );
}
if ( ! $is_whitelabeled ) {
if ( is_object( $license ) ) {
$view_params['license'] = $license;
// Show license deactivation button.
fs_require_template( 'account/partials/deactivate-license-button.php', $view_params );
} else {
if ( is_object( $main_license ) && $main_license->can_activate( $view_params['is_localhost'] ) ) {
// Main license is available for activation.
$available_license = $main_license;
} else {
// Try to find any available license for activation.
$available_license = $fs->_get_available_premium_license( $view_params['is_localhost'] );
}
if ( is_object( $available_license ) ) {
$premium_plan = $fs->_get_plan_by_id( $available_license->plan_id );
$view_params['license'] = $available_license;
$view_params['class'] .= ' button-primary';
$view_params['plan'] = $premium_plan;
fs_require_template( 'account/partials/activate-license-button.php', $view_params );
}
}
}
} ?> |
is_trial() ) {
if ( is_object( $trial_plan ) && $trial_plan->id == $install->trial_plan_id ) {
$plan_title = is_string( $trial_plan->name ) ?
strtoupper( $trial_plan->title ) :
fs_text_inline( 'Trial', 'trial', $slug );
} else {
$plan_title = fs_text_inline( 'Trial', 'trial', $slug );
}
} else {
$plan = $fs->_get_plan_by_id( $install->plan_id );
$plan_title = strtoupper( is_string( $plan->title ) ?
$plan->title :
strtoupper( $free_text )
);
}
}
?>
|
|
>
:
|
|
license_id ) ) : ?>
is_homepage_url_tracking_allowed( $blog_id ) ?>
|
user_id != $main_user->id ) : ?>
user_id ) ?>
>
:
|
get_name() ) ?> |
>
:
|
email ) ?> |
>
:
|
id ?> |
>
:
|
public_key ) ?> |
|
>
:
|
secret_key ) ?>
|
|
>
:
|
get_html_escaped_masked_secret_key() ?>
|
|
id != $license->id ) : ?>
_get_subscription( $license->id ) ?>
is_lifetime() && is_object( $subscription ) ) : ?>
>
:
|
is_active();
$renews_in_text = fs_text_inline( 'Auto renews in %s', 'renews-in', $slug );
/* translators: %s: Time period (e.g. Expires in "2 months") */
$expires_in_text = fs_text_inline( 'Expires in %s', 'expires-in', $slug );
?>
id ?> - billing_cycle ?
_fs_text_inline( 'Annual', 'annual', $slug ) :
_fs_text_inline( 'Monthly', 'monthly', $slug )
);
?>
is_first_payment_pending() ) : ?>
is_first_payment_pending() ) : ?>
|
expiration ) );
$downgrade_confirmation_message = sprintf(
$downgrade_x_confirm_text,
( $fs->is_only_premium() ? $cancelling_subscription_text : $downgrading_plan_text ),
$plan->title,
$human_readable_license_expiration
);
$after_downgrade_message = ! $license->is_block_features ?
sprintf( $after_downgrade_non_blocking_text, $plan->title, $fs->get_module_label( true ) ) :
sprintf( $after_downgrade_blocking_text, $plan->title );
?>
|
|