Merged in feature/from-pantheon (pull request #16)

code from pantheon

* code from pantheon
This commit is contained in:
Tony Volpe
2024-01-10 17:03:02 +00:00
parent 054b4fffc9
commit 4eb982d7a8
16492 changed files with 3475854 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
if (!defined('WORDFENCE_VERSION')) { exit; }
/**
* Presents the fresh install modal.
*/
?>
<div id="wf-onboarding-fresh-install" class="wf-onboarding-modal">
<div id="wf-onboarding-fresh-install-1" class="wf-onboarding-modal-content">
<div class="wf-onboarding-logo"><img src="<?php echo esc_attr(wfUtils::getBaseURL() . 'images/wf-horizontal.svg'); ?>" alt="<?php esc_html_e('Wordfence - Securing your WordPress Website', 'wordfence'); ?>"></div>
<h3><?php printf(/* translators: Wordfence version. */ esc_html__('You have successfully installed Wordfence %s', 'wordfence'), WORDFENCE_VERSION); ?></h3>
<?php echo wfView::create('onboarding/registration-prompt', array('attempt' => 1)) ?>
</div>
</div>
<script type="application/javascript">
(function($) {
$(function() {
$('#wf-onboarding-fresh-install').on('click', function(e) {
e.stopPropagation();
});
$(window).on('wfOnboardingDismiss', function() {
if ($('#wf-onboarding-fresh-install-1').is(':visible')) {
wordfenceExt.setOption('onboardingAttempt1', '<?php echo esc_attr(wfOnboardingController::ONBOARDING_SKIPPED); ?>');
}
});
});
})(jQuery);
</script>