Plugin::get_translated_setting( 'btn_login' ), 'btn_register' => Plugin::get_translated_setting( 'btn_register' ), 'btn_send_otp' => Plugin::get_translated_setting( 'btn_send_otp' ), 'btn_verify' => Plugin::get_translated_setting( 'btn_verify' ), 'require_name' => (int) Plugin::get_setting( 'require_name', 1 ), 'require_email' => (int) Plugin::get_setting( 'require_email', 0 ), 'login_mode' => (string) Plugin::get_setting( 'login_mode', 'otp' ), ); include $file; } } /** * Render modal shell once. */ public static function render_modal(): void { if ( self::$modal_printed ) { return; } self::$modal_printed = true; Assets::ensure(); include ADEV_OTP_PATH . 'templates/modal.php'; } /** * Render inline tabs (no popup). * * @param string $active Active tab: login|register|forgot. */ public static function render_tabs( string $active = 'login' ): void { Assets::ensure(); $active_tab = in_array( $active, array( 'login', 'register' ), true ) ? $active : 'login'; include ADEV_OTP_PATH . 'templates/tabs.php'; } }