<?php if (!defined('WORDFENCE_VERSION')) { exit; } /** * Presents the content given in a modal wrapper for the WAF install/uninstall flow. * * Expects $title and $html to be defined. $helpHTML, $footerHTML, and $footerButtonTitle may also be defined. * * @var string $title The title for the panel. * @var string $html The main HTML content for the panel. * @var string $helpHTML HTML content for the help area next to the close button. * @var string $footerHTML HTML content for the footer area next to the footer button. * @var string $footerButtonTitle Title for the footer button, defaults to "Continue". * @var bool $noX Optional, hides the top right x button if truthy. */ if (!isset($footerButtonTitle)) { $footerButtonTitle = __('Continue', 'wordfence'); } $showX = !isset($noX) || !$noX; ?> <div class="wf-modal"> <div class="wf-modal-header"> <div class="wf-modal-header-content"> <div class="wf-modal-title"> <strong><?php echo $title; ?></strong> </div> </div> <div class="wf-modal-header-action"> <div><?php if (isset($helpHTML)) { echo $helpHTML; } ?></div> <?php if ($showX) { ?><div class="wf-padding-add-left-small wf-modal-header-action-close"><a href="#" onclick="WFAD.colorboxClose(); return false" role="button"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div><?php } ?> </div> </div> <div class="wf-modal-content"> <?php echo $html; ?> </div> <div class="wf-modal-footer"> <ul class="wf-flex-horizontal wf-flex-full-width"> <li><?php if (isset($footerHTML)) { echo $footerHTML; } ?></li> <li class="wf-right"><a href="#" class="wf-btn wf-btn-primary wf-btn-callout-subtle" id="wf-waf-modal-continue" role="button"><?php echo esc_html($footerButtonTitle); ?></a></li> </ul> </div> </div>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
debug.php | File | 5.7 KB | 0644 |
|
firewall-status.php | File | 5.73 KB | 0644 |
|
option-rate-limit.php | File | 4.12 KB | 0644 |
|
option-rules.php | File | 2.61 KB | 0644 |
|
option-whitelist.php | File | 7.99 KB | 0644 |
|
options-group-advanced-firewall.php | File | 10.09 KB | 0644 |
|
options-group-basic-firewall.php | File | 27 KB | 0644 |
|
options-group-brute-force.php | File | 12.6 KB | 0644 |
|
options-group-rate-limiting.php | File | 13.07 KB | 0644 |
|
options-group-whitelisted.php | File | 11.83 KB | 0644 |
|
status-tooltip-learning-mode.php | File | 720 B | 0644 |
|
waf-install-manual.php | File | 1.01 KB | 0644 |
|
waf-install-success.php | File | 847 B | 0644 |
|
waf-install.php | File | 8.88 KB | 0644 |
|
waf-modal-wrapper.php | File | 1.74 KB | 0644 |
|
waf-uninstall-success.php | File | 1.17 KB | 0644 |
|
waf-uninstall.php | File | 6.91 KB | 0644 |
|