<?php if (!defined('WORDFENCE_VERSION')) { exit; } /** * Presents the overlay. * * Expects $contentHTML to be defined. * * @var string $contentHTML The HTML content to show on the overlay. */ ?> <div id="wf-onboarding-plugin-overlay"> <a href="#" id="wf-onboarding-dismiss" role="button">×</a> <?php echo $contentHTML; ?> <script type="application/javascript"> (function($) { $(function() { $('#wf-onboarding-dismiss, #wf-onboarding-plugin-overlay').on('click', function(e) { e.preventDefault(); e.stopPropagation(); $(window).trigger('wfOnboardingDismiss'); $('#wf-onboarding-plugin-overlay').fadeOut(400, function() { $('#wf-onboarding-plugin-overlay').remove(); }); }); $(document).keyup(function(e) { if (e.keyCode == 27) { //esc $('#wf-onboarding-dismiss').trigger('click'); } }); }); })(jQuery); </script> </div>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
banner.php | File | 2.2 KB | 0644 |
|
disabled-overlay.php | File | 508 B | 0644 |
|
fresh-install.php | File | 1.14 KB | 0644 |
|
modal-final-attempt.php | File | 3.11 KB | 0644 |
|
overlay.php | File | 914 B | 0644 |
|
plugin-header.php | File | 1.39 KB | 0644 |
|
registration-prompt.php | File | 6.58 KB | 0644 |
|
tour-overlay.php | File | 157 B | 0644 |
|