PluginProbe ʕ •ᴥ•ʔ
WP 2FA – Two-factor authentication for WordPress / 4.0.0
WP 2FA – Two-factor authentication for WordPress v4.0.0
4.0.0 1.7.1 2.0.0 2.0.1 2.1.0 2.2.0 2.2.1 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 2.6.0 2.6.1 2.6.2 2.6.3 2.6.4 2.7.0 2.8.0 2.9.0 2.9.1 2.9.2 2.9.3 3.0.0 3.0.1 3.1.0 3.1.1 3.1.1.2 trunk 1.2.0 1.3.0 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.6.2 1.7.0
wp-2fa / templates / wizard / email-setup.php
wp-2fa / templates / wizard Last commit date
backup-codes-display.php 17 hours ago backup-codes-generate.php 17 hours ago backup-method-footer.php 17 hours ago backup-method-selection.php 17 hours ago completion.php 17 hours ago confirm-close.php 17 hours ago email-setup.php 17 hours ago email-verify.php 17 hours ago index.php 17 hours ago method-selection.php 17 hours ago modal.php 17 hours ago required-intro.php 17 hours ago totp-setup.php 17 hours ago totp-verify.php 17 hours ago welcome.php 17 hours ago
email-setup.php
77 lines
1 <?php
2 /**
3 * WP 2FA Wizard Template: Email Setup
4 *
5 * Contains two template IDs:
6 * - wp2fa-email-setup — Email address selection form.
7 * - wp2fa-email-setup-footer — Footer buttons for the setup step.
8 *
9 * tmpl-wp2fa-email-setup data:
10 * - description {string} Introductory text.
11 * - userEmail {string} The user's WP email address.
12 * - useMyEmailLabel {string} "Use my user email" label text.
13 * - allowCustomEmail {bool} Whether to show the custom email option.
14 * - useAnotherLabel {string} "Use another email address" label text.
15 * - emailPlaceholder {string} Placeholder for the custom email input.
16 * - showNotice {bool} Whether to show the whitelist notice.
17 * - noticeHtml {string} Full HTML for the whitelist notice.
18 *
19 * tmpl-wp2fa-email-setup-footer data:
20 * - goBackLabel {string} "Go back" link text.
21 * - readyLabel {string} "I'm Ready" button text.
22 *
23 * @package wp2fa
24 * @since 4.0.0
25 */
26
27 defined( 'ABSPATH' ) || exit;
28 ?>
29 <script type="text/html" id="tmpl-wp2fa-email-setup">
30 <div class="wp2fa-email-setup-description" id="wp2fa-email-setup-description">{{{ data.description }}}</div>
31
32 <ul class="wp2fa-email-options-list" id="wp2fa-email-options-list">
33 <li class="wp2fa-email-option-item" id="wp2fa-email-option-item-wp">
34 <label class="wp2fa-email-option-label" id="wp2fa-email-option-label-wp">
35 <input type="radio" name="wp2fa_wizard_email_address" class="wp2fa-email-option-radio" id="wp2fa-email-use-wp" value="{{ data.userEmail }}" checked />
36 <span class="wp2fa-email-option-text" id="wp2fa-email-option-text-wp">{{ data.useMyEmailLabel }} ({{ data.userEmail }})</span>
37 </label>
38 </li>
39 <# if ( data.allowCustomEmail ) { #>
40 <li class="wp2fa-email-option-item" id="wp2fa-email-option-item-custom">
41 <label class="wp2fa-email-option-label" id="wp2fa-email-option-label-custom">
42 <input type="radio" name="wp2fa_wizard_email_address" class="wp2fa-email-option-radio" id="wp2fa-email-use-custom" value="use_custom_email" />
43 <span class="wp2fa-email-option-text" id="wp2fa-email-option-text-custom">
44 {{ data.useAnotherLabel }}
45 <input type="email" class="wp2fa-email-custom-input" id="wp2fa-email-custom-address" name="custom-email-address" placeholder="{{ data.emailPlaceholder }}" />
46 </span>
47 </label>
48 </li>
49 <# } #>
50 </ul>
51
52 <# if ( data.emailHelpText ) { #>
53 <div class="wp2fa-email-help-text" id="wp2fa-email-help-text">{{{ data.emailHelpText }}}</div>
54 <# } #>
55
56 <# if ( data.showNotice ) { #>
57 <div class="wp2fa-email-notice" id="wp2fa-email-notice">
58 <span class="wp2fa-email-notice-icon">&#9888;</span>
59 <span>{{{ data.noticeHtml }}}</span>
60 </div>
61 <# } #>
62
63 <style>
64 #wp2fa-wizard-title {
65 display: none !important;
66 }
67 .wp2fa-setup-wizard-body {
68 margin-top: -44px !important;
69 }
70 </style>
71 </script>
72
73 <script type="text/html" id="tmpl-wp2fa-email-setup-footer">
74 <a class="wp2fa-wizard-btn wp2fa-wizard-btn-secondary wp-2fa-button-secondary" id="wp2fa-email-btn-goback" href="#">{{ data.goBackLabel }}</a>
75 <button class="wp2fa-wizard-btn wp2fa-wizard-btn-primary wp-2fa-button-primary" id="wp2fa-email-btn-ready" type="button">{{ data.readyLabel }}</button>
76 </script>
77