PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backup, Restore, Migration & Clone / 3.2.0
WP STAGING – WordPress Backup, Restore, Migration & Clone v3.2.0
4.9.1 4.9.0 4.8.1 trunk 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.10.0 3.2.0 3.3.1 3.3.2 3.3.3 3.4.1 3.4.3 3.5.0 3.6.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 4.0.0 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.7.2 4.7.3 4.8.0
wp-staging / Frontend / views / loginAfterRestore.php
wp-staging / Frontend / views Last commit date
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