From c312e2d21fe1999d81fa6b9da938299284a5d678 Mon Sep 17 00:00:00 2001
From: Mike Letellier
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/classes/views/frm-settings/captcha/altcha-option.php b/classes/views/frm-settings/captcha/altcha-option.php
new file mode 100644
index 0000000000..1c60903b41
--- /dev/null
+++ b/classes/views/frm-settings/captcha/altcha-option.php
@@ -0,0 +1,45 @@
+ 'radio',
+ 'name' => 'frm_active_captcha',
+ 'id' => 'frm-altcha',
+ 'value' => FrmAltchaSettings::TYPE,
+ 'data-frmhide' => '#recaptcha_settings,#hcaptcha_settings,#turnstile_settings',
+ 'data-frmshow' => '#altcha_settings',
+);
+
+if ( $is_active ) {
+ $radio_attrs['checked'] = 'checked';
+}
+
+$label_attrs = array(
+ 'for' => 'frm-altcha',
+ 'id' => 'frm-altcha-tab',
+ 'role' => 'tab',
+ 'tabindex' => $is_active ? '0' : '-1',
+ 'aria-selected' => $is_active ? 'true' : 'false',
+ 'aria-controls' => 'altcha_settings',
+);
+?>
+ />
+
diff --git a/classes/views/frm-settings/captcha/altcha.php b/classes/views/frm-settings/captcha/altcha.php
new file mode 100644
index 0000000000..c04b971c5c
--- /dev/null
+++ b/classes/views/frm-settings/captcha/altcha.php
@@ -0,0 +1,119 @@
+ 'altcha_settings',
+ 'class' => $is_active ? '' : 'frm_hidden',
+ 'role' => 'tabpanel',
+ 'aria-labelledby' => 'frm-altcha-tab',
+);
+
+$hide_footer_attrs = array(
+ 'type' => 'checkbox',
+ 'name' => 'frm_altcha[hide_footer]',
+ 'id' => 'frm_altcha_hide_footer',
+ 'value' => '1',
+);
+
+if ( 1 === $settings['hide_footer'] ) {
+ $hide_footer_attrs['checked'] = 'checked';
+}
+
+$hide_logo_attrs = array(
+ 'type' => 'checkbox',
+ 'name' => 'frm_altcha[hide_logo]',
+ 'id' => 'frm_altcha_hide_logo',
+ 'value' => '1',
+);
+
+if ( 1 === $settings['hide_logo'] ) {
+ $hide_logo_attrs['checked'] = 'checked';
+}
+?>
+
+
+
+
+