You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.5 KiB
49 lines
1.5 KiB
<?php |
|
if (!defined('WORDFENCE_VERSION')) { exit; } |
|
/** |
|
* @var string $subpage |
|
*/ |
|
?> |
|
<?php |
|
if (wfOnboardingController::shouldShowAttempt3()) { |
|
echo wfView::create('onboarding/disabled-overlay')->render(); |
|
echo wfView::create('onboarding/banner')->render(); |
|
} |
|
else if (wfConfig::get('touppPromptNeeded')) { |
|
echo wfView::create('gdpr/disabled-overlay')->render(); |
|
echo wfView::create('gdpr/banner')->render(); |
|
} |
|
?> |
|
<div class="wrap wordfence"> |
|
<div class="wf-container-fluid"> |
|
<?php |
|
$tabsArray = array(); |
|
if (wfCredentialsController::allowLegacy2FA()) { |
|
$tabsArray[] = array('twofactor', __('Two-Factor Authentication')); |
|
} |
|
$tabsArray[] = array('livetraffic', __('Live Traffic')); |
|
$tabsArray[] = array('whois', __('Whois Lookup')); |
|
$tabsArray[] = array('importexport', __('Import/Export Options')); |
|
$tabsArray[] = array('diagnostics', __('Diagnostics')); |
|
|
|
$tabs = array(); |
|
foreach ($tabsArray as $tab) { |
|
list($tabID, $tabLabel) = $tab; |
|
$tabs[] = new wfTab($tabID, |
|
network_admin_url('admin.php?page=WordfenceTools&subpage=' . rawurlencode($tabID)), |
|
$tabLabel, $tabLabel, $subpage === $tabID); |
|
} |
|
|
|
echo wfView::create('common/page-fixed-tabbar', array( |
|
'tabs' => $tabs, |
|
))->render(); |
|
?> |
|
<div class="wf-row"> |
|
<div class="<?php echo wfStyle::contentClasses(); ?>"> |
|
<div class="wf-tab-content wf-active"> |
|
<?php echo $content ?> |
|
</div> |
|
</div> <!-- end content block --> |
|
</div> <!-- end row --> |
|
</div> <!-- end container --> |
|
</div>
|