about-us
1 day ago
partials
1 day ago
passkeys
1 day ago
policies
1 day ago
reports
1 day ago
support
1 day ago
customize-code-page.php
1 day ago
customize-setup-wizard.php
1 day ago
customize-user-profile.php
1 day ago
customize-user-prompts.php
1 day ago
email-settings.php
1 day ago
general-settings.php
1 day ago
generic-settings.php
1 day ago
import-export.php
1 day ago
index.php
1 day ago
plugins-integrations.php
1 day ago
providers-integrations.php
1 day ago
sidebar.php
1 day ago
white-labeling.php
1 day ago
plugins-integrations.php
72 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="plugins-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__( 'Plugin integrations', 'wp-2fa' ), |
| 19 | ) |
| 20 | ); |
| 21 | |
| 22 | Settings_Builder::build_option( |
| 23 | array( |
| 24 | 'title' => \esc_html__( 'Plugin integrations', 'wp-2fa' ), |
| 25 | 'id' => 'plugins-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__( 'Configure available integrations for WordPress plugins. %1$s.', 'wp-2fa' ), |
| 35 | \wp_sprintf( '<a href="%s" target="_blank">%s</a>', 'https://melapress.com/woocommerce-2fa/?#utm_source=plugin&utm_medium=wp2fa&utm_campaign=guide_woocommerce_2fa', \esc_html__( 'Learn more', 'wp-2fa' ) ) |
| 36 | ), |
| 37 | 'class' => 'description-settings-card', |
| 38 | 'id' => 'plugins-integrations-tab', |
| 39 | 'type' => 'description', |
| 40 | ) |
| 41 | ); |
| 42 | |
| 43 | $integration_plugins = \apply_filters( WP_2FA_PREFIX . 'integrations_plugins_settings_group', array() ); |
| 44 | |
| 45 | ?> |
| 46 | <div class="settings-card"> |
| 47 | |
| 48 | <!-- Providers List --> |
| 49 | <div class="providers-container"> |
| 50 | <?php |
| 51 | foreach ( $integration_plugins 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 <?php echo \esc_attr( $provider['disabled'] ); ?>"> |
| 59 | <?php |
| 60 | if ( isset( $provider['content'] ) ) { |
| 61 | echo $provider['content']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 62 | } |
| 63 | ?> |
| 64 | </div> |
| 65 | </div> |
| 66 | <?php |
| 67 | } |
| 68 | ?> |
| 69 | </div> |
| 70 | </div> |
| 71 | </div> |
| 72 |