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 / passkeys / setup-modal.php
wp-2fa / templates / passkeys Last commit date
index.php 1 week ago setup-modal.php 1 week ago success-modal.php 1 week ago user-profile-table.php 1 week ago
setup-modal.php
49 lines
1 <?php
2 /**
3 * Passkey Setup Modal Template
4 *
5 * Template ID: wp2fa-passkey-setup-modal
6 *
7 * Data expected:
8 * - title {string} Modal title text.
9 * - description {string} Introductory description.
10 * - step1 {string} Step 1 text.
11 * - step2 {string} Step 2 text.
12 * - step3 {string} Step 3 text.
13 * - cancelLabel {string} Cancel link label.
14 * - usbLabel {string} USB button label.
15 * - passkeyLabel{string} Passkey button label.
16 * - nonce {string} Registration nonce.
17 *
18 * @package wp2fa
19 * @since 4.0.0
20 */
21
22 defined( 'ABSPATH' ) || exit;
23 ?>
24 <script type="text/html" id="tmpl-wp2fa-passkey-setup-modal">
25 <div class="wp2fa-passkey-modal" role="dialog" aria-modal="true" aria-labelledby="wp2fa-passkey-setup-title" tabindex="-1" id="wp2fa-passkey-setup-dialog">
26 <div class="wp2fa-passkey-modal__header">
27 <h2 class="wp2fa-passkey-modal__title" id="wp2fa-passkey-setup-title">{{ data.title }}</h2>
28 <button class="wp2fa-passkey-modal__close" type="button" aria-label="<?php esc_attr_e( 'Close modal', 'wp-2fa' ); ?>" data-wp2fa-passkey-close>&times;</button>
29 </div>
30 <div class="wp2fa-passkey-modal__body">
31 <p>{{{ data.description }}}</p>
32 <p class="wp2fa-passkey-steps-heading">{{ data.stepsHeading }}</p>
33 <ol class="wp2fa-passkey-steps">
34 <li>{{ data.step1 }}</li>
35 <li>{{ data.step2 }}</li>
36 <li>{{ data.step3 }}</li>
37 </ol>
38 </div>
39 <div class="wp2fa-passkey-modal__error" id="wp2fa-passkey-setup-error" role="alert" aria-live="polite"></div>
40 <div class="wp2fa-passkey-modal__footer">
41 <button type="button" class="wp2fa-passkey-modal__cancel" data-wp2fa-passkey-close>{{ data.cancelLabel }}</button>
42 <div class="wp2fa-passkey-modal__footer-actions">
43 <button type="button" class="button button-primary" id="wp2fa-passkey-register-usb" data-nonce="{{ data.nonce }}">{{ data.usbLabel }}</button>
44 <button type="button" class="button button-primary" id="wp2fa-passkey-register" data-nonce="{{ data.nonce }}">{{ data.passkeyLabel }}</button>
45 </div>
46 </div>
47 </div>
48 </script>
49