Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/content-.../inc/freemius/template...
File: account.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* @package Freemius
[2] Fix | Delete
* @copyright Copyright (c) 2015, Freemius, Inc.
[3] Fix | Delete
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
[4] Fix | Delete
* @since 1.0.3
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[8] Fix | Delete
exit;
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* @var array $VARS
[13] Fix | Delete
* @var Freemius $fs
[14] Fix | Delete
*/
[15] Fix | Delete
$fs = freemius( $VARS['id'] );
[16] Fix | Delete
[17] Fix | Delete
$slug = $fs->get_slug();
[18] Fix | Delete
[19] Fix | Delete
/**
[20] Fix | Delete
* @var FS_Plugin_Tag $update
[21] Fix | Delete
*/
[22] Fix | Delete
$update = $fs->has_release_on_freemius() ?
[23] Fix | Delete
$fs->get_update( false, false, WP_FS__TIME_24_HOURS_IN_SEC / 24 ) :
[24] Fix | Delete
null;
[25] Fix | Delete
[26] Fix | Delete
if ( is_object($update) ) {
[27] Fix | Delete
/**
[28] Fix | Delete
* This logic is particularly required for multisite environment.
[29] Fix | Delete
* If a module is site activated (not network) and not on the main site,
[30] Fix | Delete
* the module will NOT be executed on the network level, therefore, the
[31] Fix | Delete
* custom updates logic will not be executed as well, so unless we force
[32] Fix | Delete
* the injection of the update into the updates transient, premium updates
[33] Fix | Delete
* will not work.
[34] Fix | Delete
*
[35] Fix | Delete
* @author Vova Feldman (@svovaf)
[36] Fix | Delete
* @since 2.0.0
[37] Fix | Delete
*/
[38] Fix | Delete
$updater = FS_Plugin_Updater::instance( $fs );
[39] Fix | Delete
$updater->set_update_data( $update );
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
$is_paying = $fs->is_paying();
[43] Fix | Delete
$user = $fs->get_user();
[44] Fix | Delete
$site = $fs->get_site();
[45] Fix | Delete
$name = $user->get_name();
[46] Fix | Delete
$license = $fs->_get_license();
[47] Fix | Delete
$is_license_foreign = ( is_object( $license ) && $user->id != $license->user_id );
[48] Fix | Delete
$is_data_debug_mode = $fs->is_data_debug_mode();
[49] Fix | Delete
$is_whitelabeled = $fs->is_whitelabeled();
[50] Fix | Delete
$subscription = ( is_object( $license ) ?
[51] Fix | Delete
$fs->_get_subscription( $license->id ) :
[52] Fix | Delete
null );
[53] Fix | Delete
$plan = $fs->get_plan();
[54] Fix | Delete
$is_active_subscription = ( is_object( $subscription ) && $subscription->is_active() );
[55] Fix | Delete
$is_paid_trial = $fs->is_paid_trial();
[56] Fix | Delete
$has_paid_plan = $fs->apply_filters( 'has_paid_plan_account', $fs->has_paid_plan() );
[57] Fix | Delete
$show_upgrade = ( ! $is_whitelabeled && $has_paid_plan && ! $is_paying && ! $is_paid_trial );
[58] Fix | Delete
$trial_plan = $fs->get_trial_plan();
[59] Fix | Delete
[60] Fix | Delete
$is_plan_change_supported = (
[61] Fix | Delete
! $fs->is_single_plan() &&
[62] Fix | Delete
! $fs->apply_filters( 'hide_plan_change', false )
[63] Fix | Delete
);
[64] Fix | Delete
[65] Fix | Delete
if ( $has_paid_plan ) {
[66] Fix | Delete
$fs->_add_license_activation_dialog_box();
[67] Fix | Delete
}
[68] Fix | Delete
[69] Fix | Delete
if ( $fs->should_handle_user_change() ) {
[70] Fix | Delete
$fs->_add_email_address_update_dialog_box();
[71] Fix | Delete
}
[72] Fix | Delete
[73] Fix | Delete
$ids_of_installs_activated_with_foreign_licenses = $fs->should_handle_user_change() ?
[74] Fix | Delete
$fs->get_installs_ids_with_foreign_licenses() :
[75] Fix | Delete
array();
[76] Fix | Delete
[77] Fix | Delete
if ( ! empty( $ids_of_installs_activated_with_foreign_licenses ) ) {
[78] Fix | Delete
$fs->_add_user_change_dialog_box( $ids_of_installs_activated_with_foreign_licenses );
[79] Fix | Delete
}
[80] Fix | Delete
[81] Fix | Delete
if ( $fs->is_whitelabeled( true ) || $fs->is_data_debug_mode() ) {
[82] Fix | Delete
$fs->_add_data_debug_mode_dialog_box();
[83] Fix | Delete
}
[84] Fix | Delete
[85] Fix | Delete
if ( fs_request_get_bool( 'auto_install' ) ) {
[86] Fix | Delete
$fs->_add_auto_installation_dialog_box();
[87] Fix | Delete
}
[88] Fix | Delete
[89] Fix | Delete
if ( fs_request_get_bool( 'activate_license' ) ) {
[90] Fix | Delete
// Open the license activation dialog box on the account page.
[91] Fix | Delete
add_action( 'admin_footer', array(
[92] Fix | Delete
&$fs,
[93] Fix | Delete
'_open_license_activation_dialog_box'
[94] Fix | Delete
) );
[95] Fix | Delete
}
[96] Fix | Delete
[97] Fix | Delete
$show_billing = ( ! $is_whitelabeled && ! $fs->apply_filters( 'hide_billing_and_payments_info', false ) );
[98] Fix | Delete
if ( $show_billing ) {
[99] Fix | Delete
$payments = $fs->_fetch_payments();
[100] Fix | Delete
[101] Fix | Delete
$show_billing = ( is_array( $payments ) && 0 < count( $payments ) );
[102] Fix | Delete
}
[103] Fix | Delete
[104] Fix | Delete
[105] Fix | Delete
$has_tabs = $fs->_add_tabs_before_content();
[106] Fix | Delete
[107] Fix | Delete
// Aliases.
[108] Fix | Delete
$download_latest_text = fs_text_x_inline( 'Download Latest', 'as download latest version', 'download-latest', $slug );
[109] Fix | Delete
$downgrading_plan_text = fs_text_inline( 'Downgrading your plan', 'downgrading-plan', $slug );
[110] Fix | Delete
$cancelling_subscription_text = fs_text_inline( 'Cancelling the subscription', 'cancelling-subscription', $slug );
[111] Fix | Delete
/* translators: %1$s: Either 'Downgrading your plan' or 'Cancelling the subscription' */
[112] Fix | Delete
$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 );
[113] Fix | Delete
$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 );
[114] Fix | Delete
$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 );
[115] Fix | Delete
$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 );
[116] Fix | Delete
$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 );
[117] Fix | Delete
/* translators: %s: Plan title (e.g. "Professional") */
[118] Fix | Delete
$activate_plan_text = fs_text_inline( 'Activate %s Plan', 'activate-x-plan', $slug );
[119] Fix | Delete
$version_text = fs_text_x_inline( 'Version', 'product version', 'version', $slug );
[120] Fix | Delete
/* translators: %s: Time period (e.g. Auto renews in "2 months") */
[121] Fix | Delete
$renews_in_text = fs_text_inline( 'Auto renews in %s', 'renews-in', $slug );
[122] Fix | Delete
/* translators: %s: Time period (e.g. Expires in "2 months") */
[123] Fix | Delete
$expires_in_text = fs_text_inline( 'Expires in %s', 'expires-in', $slug );
[124] Fix | Delete
$sync_license_text = fs_text_x_inline( 'Sync License', 'as synchronize license', 'sync-license', $slug );
[125] Fix | Delete
$cancel_trial_text = fs_text_inline( 'Cancel Trial', 'cancel-trial', $slug );
[126] Fix | Delete
$change_plan_text = fs_text_inline( 'Change Plan', 'change-plan', $slug );
[127] Fix | Delete
$upgrade_text = fs_text_x_inline( 'Upgrade', 'verb', 'upgrade', $slug );
[128] Fix | Delete
$addons_text = fs_text_inline( 'Add-Ons', 'add-ons', $slug );
[129] Fix | Delete
$downgrade_text = fs_text_x_inline( 'Downgrade', 'verb', 'downgrade', $slug );
[130] Fix | Delete
$trial_text = fs_text_x_inline( 'Trial', 'trial period', 'trial', $slug );
[131] Fix | Delete
$free_text = fs_text_inline( 'Free', 'free', $slug );
[132] Fix | Delete
$activate_text = fs_text_inline( 'Activate', 'activate', $slug );
[133] Fix | Delete
$plan_text = fs_text_x_inline( 'Plan', 'as product pricing plan', 'plan', $slug );
[134] Fix | Delete
$bundle_plan_text = fs_text_inline( 'Bundle Plan', 'bundle-plan', $slug );
[135] Fix | Delete
[136] Fix | Delete
$show_plan_row = true;
[137] Fix | Delete
$show_license_row = is_object( $license );
[138] Fix | Delete
[139] Fix | Delete
$site_view_params = array();
[140] Fix | Delete
[141] Fix | Delete
if ( fs_is_network_admin() ) {
[142] Fix | Delete
$sites = Freemius::get_sites();
[143] Fix | Delete
$all_installs_plan_id = null;
[144] Fix | Delete
$all_installs_license_id = ( $show_license_row ? $license->id : null );
[145] Fix | Delete
foreach ( $sites as $s ) {
[146] Fix | Delete
$site_info = $fs->get_site_info( $s );
[147] Fix | Delete
$install = $fs->get_install_by_blog_id( $site_info['blog_id'] );
[148] Fix | Delete
$view_params = array(
[149] Fix | Delete
'freemius' => $fs,
[150] Fix | Delete
'user' => $fs->get_user(),
[151] Fix | Delete
'license' => $license,
[152] Fix | Delete
'site' => $site_info,
[153] Fix | Delete
'install' => $install,
[154] Fix | Delete
);
[155] Fix | Delete
[156] Fix | Delete
$site_view_params[] = $view_params;
[157] Fix | Delete
[158] Fix | Delete
if ( empty( $install ) ) {
[159] Fix | Delete
continue;
[160] Fix | Delete
}
[161] Fix | Delete
[162] Fix | Delete
if ( $show_plan_row ) {
[163] Fix | Delete
if ( is_null( $all_installs_plan_id ) ) {
[164] Fix | Delete
$all_installs_plan_id = $install->plan_id;
[165] Fix | Delete
} else if ( $all_installs_plan_id != $install->plan_id ) {
[166] Fix | Delete
$show_plan_row = false;
[167] Fix | Delete
}
[168] Fix | Delete
}
[169] Fix | Delete
[170] Fix | Delete
if ( $show_license_row && $all_installs_license_id != $install->license_id ) {
[171] Fix | Delete
$show_license_row = false;
[172] Fix | Delete
}
[173] Fix | Delete
}
[174] Fix | Delete
}
[175] Fix | Delete
[176] Fix | Delete
$has_bundle_license = false;
[177] Fix | Delete
[178] Fix | Delete
if ( is_object( $license ) &&
[179] Fix | Delete
FS_Plugin_License::is_valid_id( $license->parent_license_id )
[180] Fix | Delete
) {
[181] Fix | Delete
// Context license has a parent license, therefore, the account has a bundle license.
[182] Fix | Delete
$has_bundle_license = true;
[183] Fix | Delete
}
[184] Fix | Delete
[185] Fix | Delete
$bundle_subscription = null;
[186] Fix | Delete
$is_bundle_first_payment_pending = false;
[187] Fix | Delete
[188] Fix | Delete
if (
[189] Fix | Delete
$show_plan_row &&
[190] Fix | Delete
is_object( $license ) &&
[191] Fix | Delete
$has_bundle_license
[192] Fix | Delete
) {
[193] Fix | Delete
$bundle_plan_title = strtoupper( $license->parent_plan_title );
[194] Fix | Delete
$bundle_subscription = $fs->_get_subscription( $license->parent_license_id );
[195] Fix | Delete
$is_bundle_first_payment_pending = $license->is_first_payment_pending();
[196] Fix | Delete
}
[197] Fix | Delete
[198] Fix | Delete
$fs_blog_id = ( is_multisite() && ! is_network_admin() ) ?
[199] Fix | Delete
get_current_blog_id() :
[200] Fix | Delete
0;
[201] Fix | Delete
[202] Fix | Delete
$active_plugins_directories_map = Freemius::get_active_plugins_directories_map( $fs_blog_id );
[203] Fix | Delete
[204] Fix | Delete
$is_premium = $fs->is_premium();
[205] Fix | Delete
[206] Fix | Delete
$account_addons = $fs->get_updated_account_addons();
[207] Fix | Delete
$installed_addons = $fs->get_installed_addons();
[208] Fix | Delete
$installed_addons_ids = array();
[209] Fix | Delete
[210] Fix | Delete
/**
[211] Fix | Delete
* Store the installed add-ons' IDs into a collection which will be used in determining the add-ons to show on the "Account" page, and at the same time try to find an add-on that is activated with a bundle license if the core product is not.
[212] Fix | Delete
*
[213] Fix | Delete
* @author Leo Fajardo
[214] Fix | Delete
*
[215] Fix | Delete
* @since 2.4.0
[216] Fix | Delete
*/
[217] Fix | Delete
foreach ( $installed_addons as $fs_addon ) {
[218] Fix | Delete
$installed_addons_ids[] = $fs_addon->get_id();
[219] Fix | Delete
[220] Fix | Delete
if ( $has_bundle_license ) {
[221] Fix | Delete
// We already have the context bundle license details, skip.
[222] Fix | Delete
continue;
[223] Fix | Delete
}
[224] Fix | Delete
[225] Fix | Delete
if (
[226] Fix | Delete
$show_plan_row &&
[227] Fix | Delete
$fs_addon->has_active_valid_license()
[228] Fix | Delete
) {
[229] Fix | Delete
$addon_license = $fs_addon->_get_license();
[230] Fix | Delete
[231] Fix | Delete
if ( FS_Plugin_License::is_valid_id( $addon_license->parent_license_id ) ) {
[232] Fix | Delete
// Add-on's license is associated with a parent/bundle license.
[233] Fix | Delete
$has_bundle_license = true;
[234] Fix | Delete
[235] Fix | Delete
$bundle_plan_title = strtoupper( $addon_license->parent_plan_title );
[236] Fix | Delete
$bundle_subscription = $fs_addon->_get_subscription( $addon_license->parent_license_id );
[237] Fix | Delete
$is_bundle_first_payment_pending = $addon_license->is_first_payment_pending();
[238] Fix | Delete
}
[239] Fix | Delete
}
[240] Fix | Delete
}
[241] Fix | Delete
[242] Fix | Delete
$addons_to_show = array_unique( array_merge( $installed_addons_ids, $account_addons ) );
[243] Fix | Delete
[244] Fix | Delete
$is_active_bundle_subscription = ( is_object( $bundle_subscription ) && $bundle_subscription->is_active() );
[245] Fix | Delete
[246] Fix | Delete
$available_license = ( $fs->is_free_plan() && ! fs_is_network_admin() ) ?
[247] Fix | Delete
$fs->_get_available_premium_license( $site->is_localhost() ) :
[248] Fix | Delete
null;
[249] Fix | Delete
[250] Fix | Delete
$available_license_paid_plan = is_object( $available_license ) ?
[251] Fix | Delete
$fs->_get_plan_by_id( $available_license->plan_id ) :
[252] Fix | Delete
null;
[253] Fix | Delete
?>
[254] Fix | Delete
<div class="wrap fs-section">
[255] Fix | Delete
<?php if ( ! $has_tabs && ! $fs->apply_filters( 'hide_account_tabs', false ) ) : ?>
[256] Fix | Delete
<h2 class="nav-tab-wrapper">
[257] Fix | Delete
<a href="<?php echo esc_url( $fs->get_account_url() ) ?>"
[258] Fix | Delete
class="nav-tab nav-tab-active"><?php fs_esc_html_echo_inline( 'Account', 'account', $slug ) ?></a>
[259] Fix | Delete
<?php if ( $fs->has_addons() ) : ?>
[260] Fix | Delete
<a href="<?php echo esc_url( $fs->_get_admin_page_url( 'addons' ) ) ?>"
[261] Fix | Delete
class="nav-tab"><?php echo esc_html( $addons_text ) ?></a>
[262] Fix | Delete
<?php endif ?>
[263] Fix | Delete
<?php if ( $show_upgrade ) : ?>
[264] Fix | Delete
<a href="<?php echo esc_url( $fs->get_upgrade_url() ) ?>" class="nav-tab"><?php echo esc_html( $upgrade_text ) ?></a>
[265] Fix | Delete
<?php if ( $fs->apply_filters( 'show_trial', true ) && ! $fs->is_trial_utilized() && $fs->has_trial_plan() ) : ?>
[266] Fix | Delete
<a href="<?php echo esc_url( $fs->get_trial_url() ) ?>" class="nav-tab"><?php fs_esc_html_echo_inline( 'Free Trial', 'free-trial', $slug ) ?></a>
[267] Fix | Delete
<?php endif ?>
[268] Fix | Delete
<?php endif ?>
[269] Fix | Delete
</h2>
[270] Fix | Delete
<?php endif ?>
[271] Fix | Delete
[272] Fix | Delete
<div id="poststuff">
[273] Fix | Delete
<div id="fs_account">
[274] Fix | Delete
<div class="has-sidebar has-right-sidebar">
[275] Fix | Delete
<div class="has-sidebar-content">
[276] Fix | Delete
<div class="postbox">
[277] Fix | Delete
<h3><span class="dashicons dashicons-businessman"></span> <?php fs_esc_html_echo_inline( 'Account Details', 'account-details', $slug ) ?></h3>
[278] Fix | Delete
<div class="fs-header-actions">
[279] Fix | Delete
<ul>
[280] Fix | Delete
<?php if ( $fs->is_whitelabeled( true ) ) : ?>
[281] Fix | Delete
<li>
[282] Fix | Delete
<a href="#" class="debug-license-trigger"><i class="dashicons dashicons-<?php echo $is_whitelabeled ? 'editor-code' : 'controls-pause' ?>"></i> <span><?php
[283] Fix | Delete
if ( $is_whitelabeled ) {
[284] Fix | Delete
fs_esc_html_echo_inline( 'Start Debug', 'start-debug-license', $slug );
[285] Fix | Delete
} else {
[286] Fix | Delete
fs_esc_html_echo_inline( 'Stop Debug', 'stop-debug-license', $slug );
[287] Fix | Delete
}
[288] Fix | Delete
?></span></a>
[289] Fix | Delete
</li>
[290] Fix | Delete
<li>&nbsp;&bull;&nbsp;</li>
[291] Fix | Delete
<?php endif ?>
[292] Fix | Delete
<?php if ( $show_billing ) : ?>
[293] Fix | Delete
<li><a href="#fs_billing"><i class="dashicons dashicons-portfolio"></i> <?php fs_esc_html_echo_inline( 'Billing & Invoices', 'billing-invoices', $slug ) ?></a></li>
[294] Fix | Delete
<li>&nbsp;&bull;&nbsp;</li>
[295] Fix | Delete
<?php endif ?>
[296] Fix | Delete
<?php if ( ! $is_whitelabeled ) : ?>
[297] Fix | Delete
<?php if ( ! $is_paying ) : ?>
[298] Fix | Delete
<li>
[299] Fix | Delete
<?php
[300] Fix | Delete
$view_params = array(
[301] Fix | Delete
'freemius' => $fs,
[302] Fix | Delete
'license' => $available_license,
[303] Fix | Delete
'license_paid_plan' => $available_license_paid_plan,
[304] Fix | Delete
);
[305] Fix | Delete
fs_require_template( 'account/partials/disconnect-button.php', $view_params ); ?>
[306] Fix | Delete
</li>
[307] Fix | Delete
<li>&nbsp;&bull;&nbsp;</li>
[308] Fix | Delete
<?php endif ?>
[309] Fix | Delete
<?php if ( $is_paying ) : ?>
[310] Fix | Delete
<?php if ( ! fs_is_network_admin() ) : ?>
[311] Fix | Delete
<li>
[312] Fix | Delete
<form action="<?php echo esc_url( $fs->_get_admin_page_url( 'account' ) ) ?>" method="POST">
[313] Fix | Delete
<input type="hidden" name="fs_action" value="deactivate_license">
[314] Fix | Delete
<?php wp_nonce_field( 'deactivate_license' ) ?>
[315] Fix | Delete
<a href="#" class="fs-deactivate-license"><i
[316] Fix | Delete
class="dashicons dashicons-admin-network"></i> <?php fs_echo_inline( 'Deactivate License', 'deactivate-license', $slug ) ?>
[317] Fix | Delete
</a>
[318] Fix | Delete
</form>
[319] Fix | Delete
</li>
[320] Fix | Delete
<li>&nbsp;&bull;&nbsp;</li>
[321] Fix | Delete
<?php endif ?>
[322] Fix | Delete
<?php if ( ! $license->is_lifetime() &&
[323] Fix | Delete
$is_active_subscription
[324] Fix | Delete
) : ?>
[325] Fix | Delete
<li>
[326] Fix | Delete
<form action="<?php echo esc_url( $fs->_get_admin_page_url( 'account' ) ) ?>" method="POST">
[327] Fix | Delete
<input type="hidden" name="fs_action" value="downgrade_account">
[328] Fix | Delete
<?php wp_nonce_field( 'downgrade_account' ) ?>
[329] Fix | Delete
<a href="#"
[330] Fix | Delete
onclick="if ( confirm('<?php echo esc_attr( sprintf(
[331] Fix | Delete
$downgrade_x_confirm_text,
[332] Fix | Delete
( $fs->is_only_premium() ? $cancelling_subscription_text : $downgrading_plan_text ),
[333] Fix | Delete
$plan->title,
[334] Fix | Delete
human_time_diff( time(), strtotime( $license->expiration ) )
[335] Fix | Delete
) ) ?> <?php if ( ! $license->is_block_features ) {
[336] Fix | Delete
echo esc_attr( sprintf( $after_downgrade_non_blocking_text, $plan->title, $fs->get_module_label( true ) ) );
[337] Fix | Delete
} else {
[338] Fix | Delete
echo esc_attr( sprintf( $after_downgrade_blocking_text, $plan->title ) );
[339] Fix | Delete
}?> <?php echo esc_attr( $prices_increase_text ) ?> <?php fs_esc_attr_echo_inline( 'Are you sure you want to proceed?', 'proceed-confirmation', $slug ) ?>') ) this.parentNode.submit(); return false;"><i class="dashicons dashicons-download"></i> <?php echo esc_html( $fs->is_only_premium() ? fs_text_inline( 'Cancel Subscription', 'cancel-subscription', $slug ) : $downgrade_text ) ?></a>
[340] Fix | Delete
</form>
[341] Fix | Delete
</li>
[342] Fix | Delete
<li>&nbsp;&bull;&nbsp;</li>
[343] Fix | Delete
<?php endif ?>
[344] Fix | Delete
<?php if ( $is_plan_change_supported ) : ?>
[345] Fix | Delete
<li>
[346] Fix | Delete
<a href="<?php echo esc_url( $fs->get_upgrade_url() ) ?>"><i
[347] Fix | Delete
class="dashicons dashicons-grid-view"></i> <?php echo esc_html( $change_plan_text ) ?></a>
[348] Fix | Delete
</li>
[349] Fix | Delete
<li>&nbsp;&bull;&nbsp;</li>
[350] Fix | Delete
<?php endif ?>
[351] Fix | Delete
<?php elseif ( $is_paid_trial ) : ?>
[352] Fix | Delete
<li>
[353] Fix | Delete
<form action="<?php echo esc_url( $fs->_get_admin_page_url( 'account' ) ) ?>" method="POST">
[354] Fix | Delete
<input type="hidden" name="fs_action" value="cancel_trial">
[355] Fix | Delete
<?php wp_nonce_field( 'cancel_trial' ) ?>
[356] Fix | Delete
<a href="#" class="fs-cancel-trial"><i
[357] Fix | Delete
class="dashicons dashicons-download"></i> <?php echo esc_html( $cancel_trial_text ) ?></a>
[358] Fix | Delete
</form>
[359] Fix | Delete
</li>
[360] Fix | Delete
<li>&nbsp;&bull;&nbsp;</li>
[361] Fix | Delete
<?php endif ?>
[362] Fix | Delete
<?php endif ?>
[363] Fix | Delete
<li>
[364] Fix | Delete
<form action="<?php echo esc_url( $fs->_get_admin_page_url( 'account' ) ) ?>" method="POST">
[365] Fix | Delete
<input type="hidden" name="fs_action" value="<?php echo esc_attr( $fs->get_unique_affix() ) ?>_sync_license">
[366] Fix | Delete
<?php wp_nonce_field( $fs->get_unique_affix() . '_sync_license' ) ?>
[367] Fix | Delete
<a href="#" onclick="this.parentNode.submit(); return false;"><i
[368] Fix | Delete
class="dashicons dashicons-image-rotate"></i> <?php fs_esc_html_echo_x_inline( 'Sync', 'as synchronize', 'sync', $slug ) ?></a>
[369] Fix | Delete
</form>
[370] Fix | Delete
</li>
[371] Fix | Delete
</ul>
[372] Fix | Delete
</div>
[373] Fix | Delete
<div class="inside">
[374] Fix | Delete
<table id="fs_account_details" cellspacing="0" class="fs-key-value-table">
[375] Fix | Delete
<?php
[376] Fix | Delete
$hide_license_key = ( ! $show_license_row || $fs->apply_filters( 'hide_license_key', false ) );
[377] Fix | Delete
[378] Fix | Delete
$profile = array();
[379] Fix | Delete
[380] Fix | Delete
if ( ! $is_whitelabeled ) {
[381] Fix | Delete
$profile[] = array(
[382] Fix | Delete
'id' => 'user_name',
[383] Fix | Delete
'title' => fs_text_inline( 'Name', 'name', $slug ),
[384] Fix | Delete
'value' => $name
[385] Fix | Delete
);
[386] Fix | Delete
// if (isset($user->email) && false !== strpos($user->email, '@'))
[387] Fix | Delete
$profile[] = array(
[388] Fix | Delete
'id' => 'email',
[389] Fix | Delete
'title' => fs_text_inline( 'Email', 'email', $slug ),
[390] Fix | Delete
'value' => $user->email
[391] Fix | Delete
);
[392] Fix | Delete
[393] Fix | Delete
if ( is_numeric( $user->id ) ) {
[394] Fix | Delete
$profile[] = array(
[395] Fix | Delete
'id' => 'user_id',
[396] Fix | Delete
'title' => fs_text_inline( 'User ID', 'user-id', $slug ),
[397] Fix | Delete
'value' => $user->id
[398] Fix | Delete
);
[399] Fix | Delete
}
[400] Fix | Delete
}
[401] Fix | Delete
[402] Fix | Delete
$profile[] = array(
[403] Fix | Delete
'id' => 'product',
[404] Fix | Delete
'title' => ( $fs->is_plugin() ?
[405] Fix | Delete
fs_text_inline( 'Plugin', 'plugin', $slug ) :
[406] Fix | Delete
fs_text_inline( 'Theme', 'theme', $slug ) ),
[407] Fix | Delete
'value' => $fs->get_plugin_title()
[408] Fix | Delete
);
[409] Fix | Delete
[410] Fix | Delete
$profile[] = array(
[411] Fix | Delete
'id' => 'product_id',
[412] Fix | Delete
'title' => ( $fs->is_plugin() ?
[413] Fix | Delete
fs_text_inline( 'Plugin', 'plugin', $slug ) :
[414] Fix | Delete
fs_text_inline( 'Theme', 'theme', $slug ) ) . ' ' . fs_text_inline( 'ID', 'id', $slug ),
[415] Fix | Delete
'value' => $fs->get_id()
[416] Fix | Delete
);
[417] Fix | Delete
[418] Fix | Delete
if ( ! fs_is_network_admin()) {
[419] Fix | Delete
$profile[] = array(
[420] Fix | Delete
'id' => 'site_id',
[421] Fix | Delete
'title' => fs_text_inline( 'Site ID', 'site-id', $slug ),
[422] Fix | Delete
'value' => is_string( $site->id ) ?
[423] Fix | Delete
$site->id :
[424] Fix | Delete
fs_text_inline( 'No ID', 'no-id', $slug )
[425] Fix | Delete
);
[426] Fix | Delete
[427] Fix | Delete
$profile[] = array(
[428] Fix | Delete
'id' => 'site_public_key',
[429] Fix | Delete
'title' => fs_text_inline( 'Public Key', 'public-key', $slug ),
[430] Fix | Delete
'value' => $site->public_key
[431] Fix | Delete
);
[432] Fix | Delete
[433] Fix | Delete
$profile[] = array(
[434] Fix | Delete
'id' => 'site_secret_key',
[435] Fix | Delete
'title' => fs_text_inline( 'Secret Key', 'secret-key', $slug ),
[436] Fix | Delete
'value' => ( ( is_string( $site->secret_key ) ) ?
[437] Fix | Delete
$site->secret_key :
[438] Fix | Delete
fs_text_x_inline( 'No Secret', 'as secret encryption key missing', 'no-secret', $slug )
[439] Fix | Delete
)
[440] Fix | Delete
);
[441] Fix | Delete
}
[442] Fix | Delete
[443] Fix | Delete
$profile[] = array(
[444] Fix | Delete
'id' => 'version',
[445] Fix | Delete
'title' => $version_text,
[446] Fix | Delete
'value' => $fs->get_plugin_version()
[447] Fix | Delete
);
[448] Fix | Delete
[449] Fix | Delete
if ( ! fs_is_network_admin() && $is_premium ) {
[450] Fix | Delete
$profile[] = array(
[451] Fix | Delete
'id' => 'beta_program',
[452] Fix | Delete
'title' => '',
[453] Fix | Delete
'value' => $site->is_beta
[454] Fix | Delete
);
[455] Fix | Delete
}
[456] Fix | Delete
[457] Fix | Delete
if ( $has_paid_plan || $has_bundle_license ) {
[458] Fix | Delete
if ( $fs->is_trial() ) {
[459] Fix | Delete
if ( $show_plan_row ) {
[460] Fix | Delete
$profile[] = array(
[461] Fix | Delete
'id' => 'plan',
[462] Fix | Delete
'title' => $plan_text,
[463] Fix | Delete
'value' => ( is_string( $trial_plan->name ) ?
[464] Fix | Delete
strtoupper( $trial_plan->title ) :
[465] Fix | Delete
fs_text_inline( 'Trial', 'trial', $slug ) )
[466] Fix | Delete
);
[467] Fix | Delete
}
[468] Fix | Delete
} else {
[469] Fix | Delete
if ( $show_plan_row ) {
[470] Fix | Delete
$profile[] = array(
[471] Fix | Delete
'id' => 'plan',
[472] Fix | Delete
'title' => ( $has_bundle_license ? ucfirst( $fs->get_module_type() ) . ' ' : '' ) . $plan_text,
[473] Fix | Delete
'value' => strtoupper( is_string( $plan->name ) ?
[474] Fix | Delete
$plan->title :
[475] Fix | Delete
strtoupper( $free_text )
[476] Fix | Delete
)
[477] Fix | Delete
);
[478] Fix | Delete
[479] Fix | Delete
if ( $has_bundle_license ) {
[480] Fix | Delete
$profile[] = array(
[481] Fix | Delete
'id' => 'bundle_plan',
[482] Fix | Delete
'title' => $bundle_plan_text,
[483] Fix | Delete
'value' => $bundle_plan_title
[484] Fix | Delete
);
[485] Fix | Delete
}
[486] Fix | Delete
}
[487] Fix | Delete
[488] Fix | Delete
if ( is_object( $license ) ) {
[489] Fix | Delete
if ( ! $hide_license_key ) {
[490] Fix | Delete
$profile[] = array(
[491] Fix | Delete
'id' => 'license_key',
[492] Fix | Delete
'title' => fs_text_inline( 'License Key', $slug ),
[493] Fix | Delete
'value' => $license->secret_key,
[494] Fix | Delete
);
[495] Fix | Delete
}
[496] Fix | Delete
}
[497] Fix | Delete
}
[498] Fix | Delete
}
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function