get_slug(); /** * @var FS_Plugin_Tag $update */ $update = $fs->get_update( false, false ); $is_paying = $fs->is_paying(); $user = $fs->get_user(); $site = $fs->get_site(); $name = $user->get_name(); $license = $fs->_get_license(); $subscription = $fs->_get_subscription(); $plan = $fs->get_plan(); $is_active_subscription = ( is_object( $subscription ) && $subscription->is_active() ); $is_paid_trial = $fs->is_paid_trial(); $show_upgrade = ( $fs->has_paid_plan() && ! $is_paying && ! $is_paid_trial ); if ( $show_upgrade ) { $fs->_require_license_activation_dialog(); } ?>

  •  • 
  • is_lifetime() && $is_active_subscription ) : ?>
  •  • 
  •  • 
  •  • 
  •  • 
    get_unique_affix() . '_sync_license' ) ?>
'user_name', 'title' => __fs( 'name', $slug ), 'value' => $name ); // if (isset($user->email) && false !== strpos($user->email, '@')) $profile[] = array( 'id' => 'email', 'title' => __fs( 'email', $slug ), 'value' => $user->email ); if ( is_numeric( $user->id ) ) { $profile[] = array( 'id' => 'user_id', 'title' => __fs( 'user-id', $slug ), 'value' => $user->id ); } $profile[] = array( 'id' => 'site_id', 'title' => __fs( 'site-id', $slug ), 'value' => is_string( $site->id ) ? $site->id : __fs( 'no-id', $slug ) ); $profile[] = array( 'id' => 'site_public_key', 'title' => __fs( 'public-key', $slug ), 'value' => $site->public_key ); $profile[] = array( 'id' => 'site_secret_key', 'title' => __fs( 'secret-key', $slug ), 'value' => ( ( is_string( $site->secret_key ) ) ? $site->secret_key : __fs( 'no-secret', $slug ) ) ); $profile[] = array( 'id' => 'version', 'title' => __fs( 'version', $slug ), 'value' => $fs->get_plugin_version() ); if ( $fs->has_paid_plan() ) { if ( $fs->is_trial() ) { $trial_plan = $fs->get_trial_plan(); $profile[] = array( 'id' => 'plan', 'title' => __fs( 'plan', $slug ), 'value' => ( is_string( $trial_plan->name ) ? strtoupper( $trial_plan->title ) : __fs( 'trial', $slug ) ) ); } else { $profile[] = array( 'id' => 'plan', 'title' => __fs( 'plan', $slug ), 'value' => is_string( $site->plan->name ) ? strtoupper( $site->plan->title ) : strtoupper( __fs( 'free', $slug ) ) ); if ( is_object( $license ) ) { $profile[] = array( 'id' => 'license_key', 'title' => __fs( 'License Key', $slug ), 'value' => $license->secret_key, ); } } } ?> has_paid_plan() ) { // If plugin don't have any paid plans, there's no reason // to show current plan. continue; } ?> > is_verified() ) : ?> is_trial() ) : ?> is_lifetime() ) : ?> is_first_payment_pending() ) : ?> is_first_payment_pending() ) : ?> is_trial() ) : ?>
is_free_plan() ? $fs->_get_available_premium_license() : false ?> left() > 0 || ( $site->is_localhost() && $available_license->is_free_localhost ) ) ) : ?> _get_plan_by_id( $available_license->plan_id ) ?>
get_unique_affix() . '_sync_license' ) ?>
has_paid_plan() ) : ?> is_premium() ) : ?> can_use_premium_code() ) : ?>
: is_verified() ) : ?>
secret_key ) && in_array( $p['id'], array( 'email', 'user_name' ) ) ) ) : ?>
get_account_addons(); if ( ! is_array( $account_addons ) ) { $account_addons = array(); } $installed_addons = $fs->get_installed_addons(); $installed_addons_ids = array(); foreach ( $installed_addons as $fs_addon ) { $installed_addons_ids[] = $fs_addon->get_id(); } $addons_to_show = array_unique( array_merge( $installed_addons_ids, $account_addons ) ); ?>
get_addon( $addon_id ); $is_addon_activated = $fs->is_addon_activated( $addon_id ); $is_addon_connected = $fs->is_addon_connected( $addon_id ); $fs_addon = $is_addon_connected ? freemius( $addon_id ) : false; if ( is_object( $fs_addon ) ) { $is_paying = $fs_addon->is_paying(); $user = $fs_addon->get_user(); $site = $fs_addon->get_site(); $license = $fs_addon->_get_license(); $subscription = $fs_addon->_get_subscription(); $plan = $fs_addon->get_plan(); $is_active_subscription = ( is_object( $subscription ) && $subscription->is_active() ); $is_paid_trial = $fs_addon->is_paid_trial(); $show_upgrade = ( ! $is_paying && ! $is_paid_trial && ! $fs_addon->_has_premium_license() ); $is_current_license_expired = is_object( $license ) && $license->is_expired(); } // var_dump( $is_paid_trial, $license, $site, $subscription ); ?> > get_site(); ?> get_id(), 'account', 'deactivate_license', __fs( 'deactivate-license', $slug ), array( 'plugin_id' => $addon_id ), false ); } else if ( $is_paid_trial ) { $buttons[] = fs_ui_get_action_button( $fs->get_id(), 'account', 'cancel_trial', __fs( 'cancel-trial', $slug ), array( 'plugin_id' => $addon_id ), false, 'dashicons dashicons-download', __fs( 'cancel-trial-confirm', $slug ), 'POST' ); } else { $premium_license = $fs_addon->_get_available_premium_license(); if ( is_object( $premium_license ) ) { $site = $fs_addon->get_site(); $buttons[] = fs_ui_get_action_button( $fs->get_id(), 'account', 'activate_license', sprintf( __fs( 'activate-x-plan', $slug ), $fs_addon->get_plan_title(), ( $site->is_localhost() && $premium_license->is_free_localhost ) ? '[localhost]' : ( 1 < $premium_license->left() ? $premium_license->left() . ' left' : '' ) ), array( 'plugin_id' => $addon_id, 'license_id' => $premium_license->id, ) ); } } if ( 0 == count( $buttons ) ) { // Add sync license only if non of the other CTAs are visible. $buttons[] = fs_ui_get_action_button( $fs->get_id(), 'account', $fs->get_unique_affix() . '_sync_license', __fs( 'sync-license', $slug ), array( 'plugin_id' => $addon_id ), false ); } } else if ( ! $show_upgrade ) { if ( $fs->is_addon_installed( $addon_id ) ) { $addon_file = $fs->get_addon_basename( $addon_id ); $buttons[] = sprintf( '%s', wp_nonce_url( 'plugins.php?action=activate&plugin=' . $addon_file, 'activate-plugin_' . $addon_file ), esc_attr( __fs( 'activate-this-addon', $slug ) ), __fs( 'activate', $slug ) ); } else { if ( $fs->is_allowed_to_install() ) { $buttons[] = sprintf( '%s', wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=' . $addon->slug ), 'install-plugin_' . $addon->slug ), __fs( 'install-now', $slug ) ); } else { $buttons[] = sprintf( '%s', $fs->_get_latest_download_local_url( $addon_id ), __fs( 'download-latest', $slug ) ); } } } if ( $show_upgrade ) { $buttons[] = sprintf( ' %s', esc_url( network_admin_url( 'plugin-install.php?tab=plugin-information&parent_plugin_id=' . $fs->get_id() . '&plugin=' . $addon->slug . '&TB_iframe=true&width=600&height=550' ) ), esc_attr( sprintf( __fs( 'more-information-about-x', $slug ), $addon->title ) ), esc_attr( $addon->title ), __fs( ( $fs_addon->has_free_plan() ? 'upgrade' : 'purchase' ), $slug ) ); } $buttons_count = count( $buttons ); ?>

title ?> id ?> get_plugin_version() ?> plan->name ) ? strtoupper( $addon_site->plan->title ) : 'FREE' ?> is_trial() ) { $tags[] = array( 'label' => __fs( 'trial', $slug ), 'type' => 'success' ); $tags[] = array( 'label' => sprintf( __fs( ( $is_paid_trial ? 'renews-in' : 'expires-in' ), $slug ), human_time_diff( time(), strtotime( $site->trial_ends ) ) ), 'type' => ( $is_paid_trial ? 'success' : 'warn' ) ); } else { if ( is_object( $license ) ) { if ( $license->is_cancelled ) { $tags[] = array( 'label' => __fs( 'cancelled', $slug ), 'type' => 'error' ); } else if ( $license->is_expired() ) { $tags[] = array( 'label' => __fs( 'expired', $slug ), 'type' => 'error' ); } else if ( $license->is_lifetime() ) { $tags[] = array( 'label' => __fs( 'no-expiration', $slug ), 'type' => 'success' ); } else if ( ! $is_active_subscription && ! $license->is_first_payment_pending() ) { $tags[] = array( 'label' => sprintf( __fs( 'expires-in', $slug ), human_time_diff( time(), strtotime( $license->expiration ) ) ), 'type' => 'warn' ); } else if ( $is_active_subscription && ! $subscription->is_first_payment_pending() ) { $tags[] = array( 'label' => sprintf( __fs( 'renews-in', $slug ), human_time_diff( time(), strtotime( $subscription->next_payment ) ) ), 'type' => 'success' ); } } } foreach ( $tags as $t ) { printf( '' . "\n", $t['type'], $t['label'] ); } ?> 1) : ?>
1) : ?>
is_addon_installed( $addon_id ) ) : ?> get_addon_basename( $addon_id ) ?> is_allowed_to_install() ) : ?> get_id(), 'account', 'delete_account', __fs( 'delete', $slug ), array( 'plugin_id' => $addon_id ), false ); } ?>
do_action( 'after_account_details' ) ?>
'account', 'module_id' => $fs->get_id(), 'module_slug' => $slug, 'module_version' => $fs->get_plugin_version(), ); fs_require_template( 'powered-by.php', $params ); ?>