__('Wordfence Global Options', 'wordfence'),
'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_DASHBOARD_OPTIONS),
'helpLabelHTML' => wp_kses(__('Learn more
about Global Options', 'wordfence'), array('span'=>array('class'=>array()))),
'showIcon' => true,
))->render();
?>
-
-
'waf-coverage',
'percentage' => $firewall->overallStatus(),
'activeColor' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? '#ececec' : null /* automatic */),
'title' => __('Firewall', 'wordfence'),
'subtitle' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? __('WAF Currently in Learning Mode', 'wordfence') : __('Protection from known and emerging threats', 'wordfence')),
'link' => wfPage::pageURL(wfPage::PAGE_FIREWALL_OPTIONS, wfPage::PAGE_DASHBOARD_OPTIONS),
'linkLabel' => __('Manage Firewall', 'wordfence'),
'statusTitle' => __('Firewall Status', 'wordfence'),
'statusList' => $firewall->statusList(),
'statusExtra' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? wfView::create('waf/status-tooltip-learning-mode')->render() : ''),
'helpLink' => __('https://www.wordfence.com/help/dashboard/#dashboard-status', 'wordfence'),
))->render();
?>
-
'wf-scanner-type',
'percentage' => $scanner->scanTypeStatus(),
'activeColor' => (!$scanner->isEnabled() ? '#ececec' : null /* automatic */),
'title' => __('Scan', 'wordfence'),
'subtitle' => __('Detection of security issues', 'wordfence'),
'link' => wfPage::pageURL(wfPage::PAGE_SCAN_OPTIONS, wfPage::PAGE_DASHBOARD_OPTIONS),
'linkLabel' => __('Manage Scan', 'wordfence'),
'statusTitle' => __('Scan Status', 'wordfence'),
'statusList' => $scanner->scanTypeStatusList(),
'helpLink' => __('https://www.wordfence.com/help/dashboard/#dashboard-status', 'wordfence'),
))->render();
?>
-
'wf-premium-alert',
'title' => __('Premium License Conflict', 'wordfence'),
'subtitle' => __('License already in use', 'wordfence'),
'link' => 'https://www.wordfence.com/gnl1manageConflict/manage-wordfence-api-keys/',
'linkLabel' => __('Reset License', 'wordfence'),
'linkNewWindow' => true,
))->render();
?>
'wf-premium-alert',
'title' => __('Premium Protection Disabled', 'wordfence'),
'subtitle' => __('License is expired', 'wordfence'),
'link' => 'https://www.wordfence.com/gnl1renewExpired/manage-wordfence-api-keys/',
'linkLabel' => __('Renew License', 'wordfence'),
'linkNewWindow' => true,
))->render();
?>
'wf-premium-alert',
'title' => __('Premium Protection Disabled', 'wordfence'),
'subtitleHtml' => wp_kses(__('The license you were using has been removed from your account. Please reach out to billing@wordfence.com or create a Premium support case at https://support.wordfence.com/support/tickets (opens in new tab) for more information. Our staff is happy to help.', 'wordfence'), array('a'=>array('href'=>array(), 'target'=>array()), 'span'=>array('class'=>array()))),
'link' => null,
'linkLabel' => null
))->render();
?>
'wf-premium-alert',
'title' => __('Premium License Expiring', 'wordfence'),
'subtitle' => __('Auto-renew is disabled', 'wordfence'),
'link' => 'https://www.wordfence.com/gnl1renewExpiring/manage-wordfence-api-keys/',
'linkLabel' => __('Renew License', 'wordfence'),
'linkNewWindow' => true,
))->render();
?>
'wf-premium-alert',
'title' => $title,
'subtitle' => sprintf(__('License renews %s', 'wordfence'), $days),
'link' => 'https://www.wordfence.com/gnl1renewExpiring/manage-wordfence-api-keys/',
'linkLabel' => __('Update Payment Method', 'wordfence'),
'linkNewWindow' => true,
))->render();
}
else {
$days = floor(((int) wfConfig::get('premiumNextRenew') - time()) / 86400);
if ($days == 0) {
$days = __('today', 'wordfence');
}
else if ($days == 1) {
$days = __('in 1 day', 'wordfence');
}
else {
$days = sprintf(__('in %d days', 'wordfence'), $days);
}
echo wfView::create('dashboard/status-renewing', array(
'id' => 'wf-premium-alert',
'title' => __('Premium License Expiring', 'wordfence'),
'subtitle' => sprintf(__('License renews %s', 'wordfence'), $days),
'link' => 'https://www.wordfence.com/gnl1reviewExpiring/manage-wordfence-api-keys/',
'linkLabel' => __('Review Payment Method', 'wordfence'),
'linkNewWindow' => true,
))->render();
}
?>
'global-options-license',
))->render();
echo wfView::create('dashboard/options-group-view-customization', array(
'stateKey' => 'global-options-view-customization',
))->render();
echo wfView::create('dashboard/options-group-general', array(
'stateKey' => 'global-options-general',
))->render();
echo wfView::create('dashboard/options-group-dashboard', array(
'stateKey' => 'global-options-dashboard',
))->render();
echo wfView::create('dashboard/options-group-alert', array(
'stateKey' => 'global-options-alert',
))->render();
echo wfView::create('dashboard/options-group-email-summary', array(
'stateKey' => 'global-options-email-summary',
))->render();
?>