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 / includes / classes / Admin / Settings / templates / providers-integrations.php
wp-2fa / includes / classes / Admin / Settings / templates Last commit date
about-us 5 days ago partials 5 days ago passkeys 5 days ago policies 5 days ago reports 5 days ago support 5 days ago customize-code-page.php 5 days ago customize-setup-wizard.php 5 days ago customize-user-profile.php 5 days ago customize-user-prompts.php 5 days ago email-settings.php 5 days ago general-settings.php 5 days ago generic-settings.php 5 days ago import-export.php 5 days ago index.php 5 days ago plugins-integrations.php 5 days ago providers-integrations.php 5 days ago sidebar.php 5 days ago white-labeling.php 5 days ago
providers-integrations.php
95 lines
1 <?php
2 /**
3 * Settings Template
4 *
5 * @package wp-2fa
6 */
7
8 use WP2FA\Admin\Settings_Builder;
9
10 ?>
11 <div class="settings-page" id="providers-integrations-wrap">
12 <?php
13 Settings_Builder::build_option(
14 array(
15 'parent' => \esc_html__( 'Settings', 'wp-2fa' ),
16 'type' => 'breadcrumb',
17 'custom_class' => 'back-policies-settings-main-wrapper',
18 'default' => \esc_html__( '2FA provider integrations', 'wp-2fa' ),
19 )
20 );
21
22 Settings_Builder::build_option(
23 array(
24 'title' => esc_html__( '2FA provider integrations', 'wp-2fa' ),
25 'id' => 'providers-integrations-tab',
26 'type' => 'tab-title',
27 )
28 );
29
30 Settings_Builder::build_option(
31 array(
32 'text' => \wp_sprintf(
33 // translators: 1. Link to documentation, 2. Link to support.
34 \esc_html__( 'Manage the integrations for the available 2FA providers. %1$s.', 'wp-2fa' ),
35 \wp_sprintf( '<a href="%s" target="_blank">%s</a>', 'https://melapress.com/support/kb/wp-2fa-add-authentication-methods/?#utm_source=plugin&utm_medium=wp2fa&utm_campaign=guide_add_supplementary_2fa_methods', \esc_html__( 'Learn more', 'wp-2fa' ) )
36 ),
37 'class' => 'description-settings-card',
38 'id' => 'providers-integrations-tab',
39 'type' => 'description',
40 )
41 );
42
43 $integration_providers = \apply_filters( WP_2FA_PREFIX . 'integrations_providers_settings_group', array() );
44
45 ?>
46 <div class="settings-card">
47
48 <!-- Providers List -->
49 <div class="providers-container">
50 <?php
51 foreach ( $integration_providers as $provider_key => $provider ) {
52 ?>
53 <div class="provider-item">
54 <div class="provider-summary" onclick="toggleProvider(this)">
55 <span class="provider-name"><?php echo esc_html( $provider['provider_name'] ); ?></span>
56 <span class="provider-arrow" aria-hidden="true"></span>
57 </div>
58 <div class="provider-content">
59 <?php if ( ! empty( $provider['docs_url'] ) ) : ?>
60 <p class="provider-docs-link">
61 <?php
62 echo \wp_kses(
63 \wp_sprintf(
64 /* translators: %s: link to the documentation page. */
65 \esc_html__( 'Need help setting up this method? %s', 'wp-2fa' ),
66 \wp_sprintf(
67 '<a href="%s" target="_blank">%s</a>',
68 \esc_url( $provider['docs_url'] ),
69 \esc_html__( 'Visit docs', 'wp-2fa' )
70 )
71 ),
72 array(
73 'a' => array(
74 'href' => array(),
75 'target' => array(),
76 ),
77 )
78 );
79 ?>
80 </p>
81 <?php endif; ?>
82 <?php
83 if ( isset( $provider['content'] ) ) {
84 echo $provider['content']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
85 }
86 ?>
87 </div>
88 </div>
89 <?php
90 }
91 ?>
92 </div>
93 </div>
94 </div>
95