File "menu_tools.php"
Full Path: /home/rrterraplen/public_html/wp-content-20241221212636/plugins/wordfence/lib/menu_tools.php
File size: 1.49 KB
MIME-type: text/x-php
Charset: utf-8
<?php
if (!defined('WORDFENCE_VERSION')) { exit; }
/**
* @var string $subpage
* @var string $content
*/
?>
<?php
if (!wfOnboardingController::shouldShowAttempt3() && 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', 'wordfence'));
}
$tabsArray[] = array('livetraffic', __('Live Traffic', 'wordfence'));
$tabsArray[] = array('auditlog', __('Audit Log', 'wordfence'));
$tabsArray[] = array('whois', __('Whois Lookup', 'wordfence'));
$tabsArray[] = array('importexport', __('Import/Export Options', 'wordfence'));
$tabsArray[] = array('diagnostics', __('Diagnostics', 'wordfence'));
$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>