banner.php
1 month ago
disabled-overlay.php
1 month ago
fresh-install.php
1 month ago
overlay.php
4 years ago
plugin-header.php
1 month ago
tour-overlay.php
8 years ago
fresh-install.php
40 lines
| 1 | <?php |
| 2 | if (!defined('WORDFENCE_VERSION')) { exit; } |
| 3 | /** |
| 4 | * Presents the fresh install modal. |
| 5 | */ |
| 6 | |
| 7 | $registrationLink = wfLicense::generateRegistrationLink(); |
| 8 | ?> |
| 9 | <div id="wf-onboarding-fresh-install" class="wf-onboarding-modal"> |
| 10 | <div id="wf-onboarding-fresh-install-1" class="wf-onboarding-modal-content"> |
| 11 | <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> |
| 12 | <h3><?php printf(/* translators: Wordfence version. */ esc_html__('You have successfully installed Wordfence %s', 'wordfence'), WORDFENCE_VERSION); ?></h3> |
| 13 | <div class="wf-onboarding-registration-prompt"> |
| 14 | <p><?php esc_html_e('Register with Wordfence to secure your site with the latest threat intelligence.', 'wordfence') ?></p> |
| 15 | <div class="wf-onboarding-install-new wf-onboarding-install-type"> |
| 16 | <div> |
| 17 | <a class="wf-btn wf-btn-primary wf-onboarding-register" href="<?php echo esc_attr($registrationLink) ?>" target="_blank"><?php esc_html_e('Get Your Wordfence License', 'wordfence') ?></a> |
| 18 | </div> |
| 19 | <div> |
| 20 | <a class="wf-onboarding-install-type-existing" href="<?php echo esc_attr(network_admin_url('admin.php?page=WordfenceSupport#installExisting')); ?>"><?php esc_html_e('Install an existing license', 'wordfence') ?></a> |
| 21 | </div> |
| 22 | </div> |
| 23 | </div> |
| 24 | </div> |
| 25 | </div> |
| 26 | <script type="application/javascript"> |
| 27 | (function($) { |
| 28 | $(function() { |
| 29 | $('#wf-onboarding-fresh-install').on('click', function(e) { |
| 30 | e.stopPropagation(); |
| 31 | }); |
| 32 | |
| 33 | $(window).on('wfOnboardingDismiss', function() { |
| 34 | if ($('#wf-onboarding-fresh-install-1').is(':visible')) { |
| 35 | wordfenceExt.setOption('onboardingAttempt1', '<?php echo esc_attr(wfOnboardingController::ONBOARDING_SKIPPED); ?>'); |
| 36 | } |
| 37 | }); |
| 38 | }); |
| 39 | })(jQuery); |
| 40 | </script> |