' . esc_html__( 'Settings saved.', 'two-factor' ) . '

'; } // Build provider list for display using public core API. $provider_instances = array(); if ( class_exists( 'Two_Factor_Core' ) && method_exists( 'Two_Factor_Core', 'get_providers' ) ) { $provider_instances = Two_Factor_Core::get_providers(); if ( ! is_array( $provider_instances ) ) { $provider_instances = array(); } } // Default to all providers enabled when the option has never been saved. $all_provider_keys = array_keys( $provider_instances ); $saved_enabled = get_option( 'two_factor_enabled_providers', $all_provider_keys ); echo '
'; echo '

' . esc_html__( 'Two-Factor Settings', 'two-factor' ) . '

'; echo '

' . esc_html__( 'Enabled Providers', 'two-factor' ) . '

'; echo '

' . esc_html__( 'Choose which Two-Factor providers are available on this site. All providers are enabled by default.', 'two-factor' ) . '

'; echo '
'; wp_nonce_field( 'two_factor_save_settings', 'two_factor_settings_nonce' ); echo '
' . esc_html__( 'Providers', 'two-factor' ) . ''; echo ''; if ( empty( $provider_instances ) ) { echo ''; } else { // Render a compact stacked list of provider checkboxes below the title/description. echo ''; echo ''; echo ''; } echo '
' . esc_html__( 'No providers found.', 'two-factor' ) . '
'; foreach ( $provider_instances as $provider_key => $instance ) { $label = method_exists( $instance, 'get_label' ) ? $instance->get_label() : $provider_key; echo '

'; } echo '
'; echo '
'; submit_button( __( 'Save Settings', 'two-factor' ), 'primary', 'two_factor_settings_submit' ); echo '
'; echo '
'; } }