From c382f81222b856030561ca76879580c9c8c8dac8 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 13 Oct 2024 14:50:12 +0200 Subject: [PATCH] [ticket/17413] Add language and theme settings for turnstile PHPBB-17413 --- phpBB/adm/style/captcha_turnstile_acp.html | 16 ++++++++++++- .../adm/style/captcha_turnstile_acp_demo.html | 2 +- phpBB/install/schemas/schema_data.sql | 3 +++ phpBB/language/en/captcha_turnstile.php | 7 +++++- phpBB/language/en/composer.json | 3 ++- phpBB/phpbb/captcha/plugins/turnstile.php | 23 ++++++++++++++++--- .../migration/data/v400/turnstile_captcha.php | 5 +++- phpBB/phpbb/language/language.php | 1 + phpBB/phpbb/language/language_file_helper.php | 21 +++++++++-------- .../prosilver/template/captcha_turnstile.html | 2 +- 10 files changed, 64 insertions(+), 19 deletions(-) diff --git a/phpBB/adm/style/captcha_turnstile_acp.html b/phpBB/adm/style/captcha_turnstile_acp.html index 446a0f436b..a187e1e41b 100644 --- a/phpBB/adm/style/captcha_turnstile_acp.html +++ b/phpBB/adm/style/captcha_turnstile_acp.html @@ -23,10 +23,24 @@
+
+
+ +
{{ lang('CAPTCHA_TURNSTILE_THEME_EXPLAIN') }} +
+
+ {% for theme in CAPTCHA_TURNSTILE_THEMES %} + + {% endfor %} +
+
{{ lang('PREVIEW') }} - {% if PREVIEW %} + {% if PREVIEW %}

{{ lang('WARNING') }}

{{ lang('CAPTCHA_PREVIEW_MSG') }}

diff --git a/phpBB/adm/style/captcha_turnstile_acp_demo.html b/phpBB/adm/style/captcha_turnstile_acp_demo.html index 348e96967a..757d0a4bcb 100644 --- a/phpBB/adm/style/captcha_turnstile_acp_demo.html +++ b/phpBB/adm/style/captcha_turnstile_acp_demo.html @@ -1,5 +1,5 @@
-
+
{% INCLUDEJS U_TURNSTILE_SCRIPT %} {# The cf-turnstile class is used in JavaScript #} -
+
{% else %} {{ lang('CAPTCHA_TURNSTILE_NOT_AVAILABLE') }} {% endif %}