footer.php
5 years ago
header.php
3 years ago
loginAfterRestore.php
3 years ago
loginForm.php
2 years ago
loginAfterRestore.php
69 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @var array $adminEmails |
| 4 | */ |
| 5 | ?> |
| 6 | <style> |
| 7 | #adminEmails { |
| 8 | display: none; |
| 9 | } |
| 10 | .unselectable { |
| 11 | -moz-user-select: none; |
| 12 | -webkit-user-select: none; |
| 13 | -ms-user-select: none; |
| 14 | user-select: none; |
| 15 | } |
| 16 | #loginAfterRestore { |
| 17 | width: 320px; |
| 18 | padding-top: 20px; |
| 19 | margin: auto; |
| 20 | } |
| 21 | #loginAfterRestore h1 { |
| 22 | margin-bottom: 20px; |
| 23 | } |
| 24 | #loginAfterRestore p { |
| 25 | margin-bottom: 10px; |
| 26 | } |
| 27 | #showAdminEmails { |
| 28 | cursor: pointer; |
| 29 | font-weight: bold; |
| 30 | text-decoration: underline; |
| 31 | color: #2196f3; |
| 32 | } |
| 33 | div#adminEmails ul { |
| 34 | padding-left: 15px; |
| 35 | } |
| 36 | #login { |
| 37 | padding-top:40px; |
| 38 | } |
| 39 | </style> |
| 40 | <div id="loginAfterRestore"> |
| 41 | <h1 class="unselectable"><?php esc_html_e('Congratulations!', 'wp-staging'); ?></h1> |
| 42 | <p class="unselectable"><?php esc_html_e('You have just restored a WP STAGING backup.', 'wp-staging'); ?></p> |
| 43 | <p class="unselectable"><?php echo wp_kses_post(__('Now you need to log-in using email and password that were in the Backup that you just restored. If you don\'t remember the credentials, click <span id="showAdminEmails">here</span> to see a list of admin e-mails you can use to restore your access by clicking "Forgot your password". This message will appear only once.', 'wp-staging')); ?></p> |
| 44 | <div id="adminEmails"> |
| 45 | <p> |
| 46 | <?php if (is_array($adminEmails) && !empty($adminEmails)) : ?> |
| 47 | <ul> |
| 48 | <?php |
| 49 | foreach ($adminEmails as $adminEmail) { |
| 50 | echo sprintf('<li>%s</li>', esc_html($adminEmail)); |
| 51 | } |
| 52 | ?> |
| 53 | </ul> |
| 54 | <?php else : ?> |
| 55 | <?php esc_html_e('Sorry, there are no admin e-mails to show.', 'wp-staging'); ?> |
| 56 | <?php endif; ?> |
| 57 | </div> |
| 58 | </p> |
| 59 | </div> |
| 60 | <script> |
| 61 | document.getElementById('showAdminEmails').addEventListener('click', function() { |
| 62 | if (document.getElementById('adminEmails').style.display === "block") { |
| 63 | document.getElementById('adminEmails').style.display = "none"; |
| 64 | } else { |
| 65 | document.getElementById('adminEmails').style.display = "block"; |
| 66 | } |
| 67 | }); |
| 68 | </script> |
| 69 |