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 / backup-method-selection.php
wp-2fa / templates / wizard Last commit date
backup-codes-display.php 22 hours ago backup-codes-generate.php 22 hours ago backup-method-footer.php 22 hours ago backup-method-selection.php 22 hours ago completion.php 22 hours ago confirm-close.php 22 hours ago email-setup.php 22 hours ago email-verify.php 22 hours ago index.php 22 hours ago method-selection.php 22 hours ago modal.php 22 hours ago required-intro.php 22 hours ago totp-setup.php 22 hours ago totp-verify.php 22 hours ago welcome.php 22 hours ago
backup-method-selection.php
75 lines
1 <?php
2 /**
3 * WP 2FA Wizard Template: Backup Method Selection
4 *
5 * Shown after a primary method is validated when more than one backup
6 * method is available. The user picks which backup method to configure.
7 *
8 * Contains three template IDs:
9 * - wp2fa-wizard-backup-method-item — one radio item in the backup method list.
10 * - wp2fa-wizard-backup-select-intro — success banner + intro text.
11 * - wp2fa-wizard-backup-select-footer — footer buttons for the selection step.
12 *
13 * tmpl-wp2fa-wizard-backup-method-item data:
14 * - id {string} Backup method identifier (e.g. 'backup_codes').
15 * - name {string} Display name.
16 * - description {string} Optional description text.
17 * - checked {bool} Whether this radio is pre-selected.
18 *
19 * tmpl-wp2fa-wizard-backup-select-intro data:
20 * - title {string} Heading text (e.g. "Your login just got more secure").
21 * - description {string} Paragraph below the heading.
22 * - sectionTitle {string} Section sub-heading (e.g. "Select backup method").
23 *
24 * tmpl-wp2fa-wizard-backup-select-footer data:
25 * - closeLaterLabel {string} "Close wizard & configure 2FA later" button text.
26 * - configureLabel {string} "Configure backup 2FA method" button text.
27 * - disabled {bool} Whether the configure button is disabled.
28 *
29 * @package wp2fa
30 * @since 4.0.0
31 */
32
33 defined( 'ABSPATH' ) || exit;
34 ?>
35 <script type="text/html" id="tmpl-wp2fa-wizard-backup-select-intro">
36 <div class="wp2fa-wizard-backup-select-success">
37 <div class="wp2fa-wizard-success-icon" aria-hidden="true">
38 <svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
39 <circle cx="24" cy="24" r="24" fill="#edfaef"/>
40 <circle cx="24" cy="24" r="18" fill="#d4edda"/>
41 <path d="M16 24l6 6 10-12" stroke="#2e7d32" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
42 </svg>
43 </div>
44 <h3 class="wp2fa-wizard-backup-select-title">{{ data.title }}</h3>
45 <p class="wp2fa-wizard-backup-select-description">{{{ data.description }}}</p>
46 </div>
47 <h4 class="wp2fa-wizard-backup-select-section-title">{{ data.sectionTitle }}</h4>
48 </script>
49
50 <script type="text/html" id="tmpl-wp2fa-wizard-backup-method-item">
51 <li class="wp2fa-wizard-method-item" id="wp2fa-wizard-backup-method-item-{{ data.id }}">
52 <label class="wp2fa-wizard-method-label" data-method-id="{{ data.id }}" id="wp2fa-wizard-backup-method-label-{{ data.id }}">
53 <input type="radio"
54 name="wp2fa_wizard_backup_method"
55 id="wp2fa-wizard-backup-method-{{ data.id }}"
56 value="{{ data.id }}"
57 class="wp2fa-wizard-backup-method-radio"
58 data-method-id="{{ data.id }}"
59 <# if ( data.checked ) { #>checked<# } #>
60 />
61 <span class="wp2fa-wizard-method-info">
62 <span class="wp2fa-wizard-method-name">{{{ data.name }}}</span>
63 <# if ( data.description ) { #>
64 <span class="wp2fa-wizard-method-description">{{{ data.description }}}</span>
65 <# } #>
66 </span>
67 </label>
68 </li>
69 </script>
70
71 <script type="text/html" id="tmpl-wp2fa-wizard-backup-select-footer">
72 <button class="wp2fa-wizard-btn wp2fa-wizard-btn-secondary wp2fa-wizard-btn-close-later wp-2fa-button-secondary" id="wp2fa-wizard-backup-select-btn-close" type="button">{{ data.closeLaterLabel }}</button>
73 <button class="wp2fa-wizard-btn wp2fa-wizard-btn-primary wp-2fa-button-primary" id="wp2fa-wizard-backup-select-btn-configure" type="button" <# if ( data.disabled ) { #>disabled<# } #>>{{ data.configureLabel }}</button>
74 </script>
75