Skip to content

Commit

Permalink
Fix. Settings. Check status.
Browse files Browse the repository at this point in the history
  • Loading branch information
svfcode committed Jan 21, 2024
1 parent f762127 commit 4e108b8
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions inc/spbc-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -2224,9 +2224,20 @@ function spbc_field_traffic_control_log()

// Subscription should be renewed
} elseif ( ! $spbc->moderate) {
echo '<div style="margin-top: 10px;">'
. '<h3 style="margin: 5px; display: inline-block;">' . __('Please give us a few seconds to pull account data from the cloud.', 'security-malware-firewall') . '</h3>' .
'</div>';
if ($spbc->notice_show && $spbc->notice_trial) {
$button = '<input type="button" class="button button-primary" value="' . __('RENEW', 'security-malware-firewall') . '" />';
$link = sprintf('<a target="_blank" href="https://cleantalk.org/my/bill/security?cp_mode=security&utm_source=wp-backend&utm_medium=cpc&utm_campaign=WP%%20backend%%20trial_security&user_token=%s">%s</a>', $spbc->user_token, $button);
echo '<div style="margin-top: 10px;">'
. '<h3 style="margin: 5px; display: inline-block;">'
. __('Please renew your security license.', 'security-malware-firewall')
. '</h3>'
. $link
. '</div>';
} else {
echo '<div style="margin-top: 10px;">'
. '<h3 style="margin: 5px; display: inline-block;">' . __('Please give us a few seconds to pull account data from the cloud.', 'security-malware-firewall') . '</h3>' .
'</div>';
}

// Subscription is ok
} else {
Expand Down

0 comments on commit 4e108b8

Please sign in to comment.