debug.php
7 years ago
firewall-status.php
8 years ago
option-rate-limit.php
8 years ago
option-rules.php
7 years ago
option-whitelist.php
7 years ago
options-group-advanced-firewall.php
7 years ago
options-group-basic-firewall.php
7 years ago
options-group-brute-force.php
7 years ago
options-group-rate-limiting.php
7 years ago
options-group-whitelisted.php
7 years ago
status-tooltip-learning-mode.php
8 years ago
waf-install-manual.php
8 years ago
waf-install-success.php
8 years ago
waf-install.php
7 years ago
waf-modal-wrapper.php
8 years ago
waf-uninstall-success.php
8 years ago
waf-uninstall.php
8 years ago
waf-modal-wrapper.php
44 lines
| 1 | <?php |
| 2 | if (!defined('WORDFENCE_VERSION')) { exit; } |
| 3 | /** |
| 4 | * Presents the content given in a modal wrapper for the WAF install/uninstall flow. |
| 5 | * |
| 6 | * Expects $title and $html to be defined. $helpHTML, $footerHTML, and $footerButtonTitle may also be defined. |
| 7 | * |
| 8 | * @var string $title The title for the panel. |
| 9 | * @var string $html The main HTML content for the panel. |
| 10 | * @var string $helpHTML HTML content for the help area next to the close button. |
| 11 | * @var string $footerHTML HTML content for the footer area next to the footer button. |
| 12 | * @var string $footerButtonTitle Title for the footer button, defaults to "Continue". |
| 13 | * @var bool $noX Optional, hides the top right x button if truthy. |
| 14 | */ |
| 15 | |
| 16 | if (!isset($footerButtonTitle)) { |
| 17 | $footerButtonTitle = __('Continue', 'wordfence'); |
| 18 | } |
| 19 | |
| 20 | $showX = !isset($noX) || !$noX; |
| 21 | ?> |
| 22 | <div class="wf-modal"> |
| 23 | <div class="wf-modal-header"> |
| 24 | <div class="wf-modal-header-content"> |
| 25 | <div class="wf-modal-title"> |
| 26 | <strong><?php echo $title; ?></strong> |
| 27 | </div> |
| 28 | </div> |
| 29 | <div class="wf-modal-header-action"> |
| 30 | <div><?php if (isset($helpHTML)) { echo $helpHTML; } ?></div> |
| 31 | <?php if ($showX) { ?><div class="wf-padding-add-left-small wf-modal-header-action-close"><a href="#" onclick="WFAD.colorboxClose(); return false"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div><?php } ?> |
| 32 | </div> |
| 33 | </div> |
| 34 | <div class="wf-modal-content"> |
| 35 | <?php echo $html; ?> |
| 36 | </div> |
| 37 | <div class="wf-modal-footer"> |
| 38 | <ul class="wf-flex-horizontal wf-flex-full-width"> |
| 39 | <li><?php if (isset($footerHTML)) { echo $footerHTML; } ?></li> |
| 40 | <li class="wf-right"><a href="#" class="wf-btn wf-btn-primary wf-btn-callout-subtle" id="wf-waf-modal-continue"><?php echo $footerButtonTitle; ?></a></li> |
| 41 | </ul> |
| 42 | </div> |
| 43 | </div> |
| 44 |