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 / method-selection.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
method-selection.php
58 lines
1 <?php
2 /**
3 * WP 2FA Wizard Template: Method Selection
4 *
5 * Contains two template IDs:
6 * - wp2fa-wizard-method-item — one radio item in the method list.
7 * - wp2fa-wizard-select-footer — footer buttons for the selection step.
8 *
9 * tmpl-wp2fa-wizard-method-item data:
10 * - id {string} Method identifier (e.g. 'totp').
11 * - name {string} Display name.
12 * - description {string} Optional description text.
13 * - hint {string} Optional HTML hint shown via info icon toggle.
14 * - checked {bool} Whether this radio is pre-selected.
15 *
16 * tmpl-wp2fa-wizard-select-footer data:
17 * - goBackLabel {string} "Go back" button text.
18 * - continueLabel {string} "Continue" button text.
19 * - disabled {bool} Whether continue is disabled.
20 *
21 * @package wp2fa
22 * @since 4.0.0
23 */
24
25 defined( 'ABSPATH' ) || exit;
26 ?>
27 <script type="text/html" id="tmpl-wp2fa-wizard-method-item">
28 <li class="wp2fa-wizard-method-item<# if ( data.unavailable ) { #> wp2fa-wizard-method-unavailable<# } #>" id="wp2fa-wizard-method-item-{{ data.id }}">
29 <label class="wp2fa-wizard-method-label" data-method-id="{{ data.id }}" id="wp2fa-wizard-method-label-{{ data.id }}">
30 <input type="radio"
31 name="wp2fa_wizard_method"
32 id="wp2fa-wizard-method-{{ data.id }}"
33 value="{{ data.id }}"
34 class="wp2fa-wizard-method-radio"
35 data-method-id="{{ data.id }}"
36 <# if ( data.checked ) { #>checked<# } #>
37 <# if ( data.unavailable ) { #>disabled<# } #>
38 />
39 <span class="wp2fa-wizard-method-info">
40 <# if ( ! data.description ) { #>
41 <span class="wp2fa-wizard-method-name">{{ data.name }}<# if ( data.hint ) { #><button type="button" class="wp2fa-wizard-hint-toggle" aria-label="<?php \esc_attr_e( 'Toggle help text', 'wp-2fa' ); ?>" data-hint-for="{{ data.id }}"><span class="wp2fa-wizard-hint-icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><g opacity="0.5"><path d="M12 9H12.01M11 12H12V16H13M3 12C3 13.1819 3.23279 14.3522 3.68508 15.4442C4.13738 16.5361 4.80031 17.5282 5.63604 18.364C6.47177 19.1997 7.46392 19.8626 8.55585 20.3149C9.64778 20.7672 10.8181 21 12 21C13.1819 21 14.3522 20.7672 15.4442 20.3149C16.5361 19.8626 17.5282 19.1997 18.364 18.364C19.1997 17.5282 19.8626 16.5361 20.3149 15.4442C20.7672 14.3522 21 13.1819 21 12C21 9.61305 20.0518 7.32387 18.364 5.63604C16.6761 3.94821 14.3869 3 12 3C9.61305 3 7.32387 3.94821 5.63604 5.63604C3.94821 7.32387 3 9.61305 3 12Z" stroke="#3C434A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></g></svg></span></button><# } #></span>
42 <# } #>
43 <# if ( data.hint ) { #>
44 <span class="wp2fa-wizard-method-hint" id="wp2fa-wizard-hint-{{ data.id }}" style="display:none;">{{{ data.hint }}}</span>
45 <# } #>
46 <# if ( data.description ) { #>
47 <span class="wp2fa-wizard-method-description">{{{ data.description }}}</span>
48 <# } #>
49 </span>
50 </label>
51 </li>
52 </script>
53
54 <script type="text/html" id="tmpl-wp2fa-wizard-select-footer">
55 <button class="wp2fa-wizard-btn wp2fa-wizard-btn-secondary wp-2fa-button-secondary" id="wp2fa-wizard-btn-goback" type="button">{{ data.goBackLabel }}</button>
56 <button class="wp2fa-wizard-btn wp2fa-wizard-btn-primary wp-2fa-button-primary" id="wp2fa-wizard-btn-continue" type="button" <# if ( data.disabled ) { #>disabled<# } #>>{{ data.continueLabel }}</button>
57 </script>
58