utton-secondary">' . esc_html__( 'Cancel', 'advanced-nocaptcha-recaptcha' ) . ' '; $back_to_intro = '' . esc_html__( 'Back', 'advanced-nocaptcha-recaptcha' ) . ''; $method_select_upgrade_message = ( ! isset( C4WP_Method_Loader::$methods[ 'hcaptcha' ] ) ) ? '
Do you want to use hCaptcha or Cloudflare Turnstile for your website CAPTCHA? Upgrade to Business plan.
' : ''; $markup = '' . $fields['captcha_version']['label'] . '
' . self::callback( $fields['captcha_version'], true ) . ' ' . $method_select_upgrade_message . '' . $fields['site_key']['label'] . ' ' . self::callback( $fields['site_key'], true ) . '
' . self::callback( $fields['key_validation'], true ) . '
' . esc_html__( 'Proceed to secret key', 'advanced-nocaptcha-recaptcha' ) . ' ' . esc_html__( 'Back', 'advanced-nocaptcha-recaptcha' ) . '' . esc_html__( 'Use the response from your CAPTCHA input, we can validate your security key', 'advanced-nocaptcha-recaptcha' ) . '
' . $fields['secret_key']['label'] . ' ' . self::callback( $fields['secret_key'], true ) . '
' . esc_html__( 'Validate & proceed', 'advanced-nocaptcha-recaptcha' ) . ' ' . esc_html__( 'Back', 'advanced-nocaptcha-recaptcha' ) . ' ' . esc_html__( 'Proceed', 'advanced-nocaptcha-recaptcha' ) . ' ' . esc_html__( 'Cancel', 'advanced-nocaptcha-recaptcha' ) . '' . esc_html__( 'reCAPTCHA v3 is fully automated. This means that by default, if the CAPTCHA check fails the website visitor cannot proceed with what they are doing unless you configure a failover action. Use the below setting to configure the failover action.', 'advanced-nocaptcha-recaptcha' ) . '
' . $fields['failure_action']['label'] . ' ' . self::callback( $fields['failure_action'], true ) . '
' . $fields['failure_redirect']['label'] . ' ' . self::callback( $fields['failure_redirect'], true ) . '
' . $fields['failure_v2_site_key']['label'] . ' ' . self::callback( $fields['failure_v2_site_key'], true ) . '
' . $fields['failure_v2_secret_key']['label'] . ' ' . self::callback( $fields['failure_v2_secret_key'], true ) . '
' . self::callback( $fields['failure_key_validation'], true ) . '
' . esc_html__( "Now that your chosen CAPTCHA service is fully integrated you can use the optional settings to fine-tune CAPTCHA to your requirements.", 'advanced-nocaptcha-recaptcha' ) . '
All the CAPTCHA settings are optional and with them you can configure aspects such as look and feel and CAPTCHA sensitivity. When you are ready navigate to the Settings & Placements page to configure where you\'d like to add the CAPTCHA checks.
Current CAPTCHA configuration: | ';
$markup .= ' ';
$markup .= ' ';
$markup .= '
' . esc_html__( 'CAPTCHA version:', 'advanced-nocaptcha-recaptcha' ) . '' . $captcha_version . ' '; $markup .= '' . esc_html__( 'Site key:', 'advanced-nocaptcha-recaptcha' ) . '' . $site_key . ' '; $markup .= '' . esc_html__( 'Secret key:', 'advanced-nocaptcha-recaptcha' ) . '' . $secret_key . ' '; if ( 'v3' === $captcha_version ) { if ( 'v2_checkbox' === $failure_action ) { $markup .= '' . esc_html__( 'Failover action:', 'advanced-nocaptcha-recaptcha' ) . '' . esc_html__( 'v2 checkbox', 'advanced-nocaptcha-recaptcha' ) . ' '; $markup .= '' . esc_html__( 'Site key:', 'advanced-nocaptcha-recaptcha' ) . '' . esc_html__( trim( C4WP_Functions::c4wp_get_option( 'failure_v2_site_key' ) ) ) . ' '; $markup .= '' . esc_html__( 'Secret key:', 'advanced-nocaptcha-recaptcha' ) . '' . esc_html__( trim( C4WP_Functions::c4wp_get_option( 'failure_v2_secret_key' ) ) ) . ' '; } elseif ( 'redirect' === $failure_action ) { $markup .= '' . esc_html__( 'Failover action:', 'advanced-nocaptcha-recaptcha' ) . '' . esc_html__( 'Redirect to a URL', 'advanced-nocaptcha-recaptcha' ) . ' '; $markup .= '' . esc_html__( 'Failover redirect URL:', 'advanced-nocaptcha-recaptcha' ) . '' . esc_html__( trim( C4WP_Functions::c4wp_get_option( 'failure_redirect' ) ) ) . ' '; } } $markup .= ' |
---|
' ), 'class' => 'wrap-around-content c4wp-wizard-captcha-version', ); $fields = self::push_at_to_associative_array( $fields, array_key_last( $fields ), $additonal_options ); return $fields; } public static function add_delete_data_settings( $fields ) { $additonal_hide_fields = array( 'disable_submit_title' => array( 'section_id' => 'forms', 'type' => 'html', 'class' => 'wrap-around-content', 'label' => sprintf( '%1$s', esc_html__( 'Disable submit button untill CAPTCHA response is provided?', 'advanced-nocaptcha-recaptcha' ) ), ), 'disable_submit_subtitle' => array( 'section_id' => 'forms', 'type' => 'html', 'class' => 'wrap-around-content', 'label' => sprintf( '
%1$s
', esc_html__( 'When using a visible CAPTCHA method (V2 checkbox etc), should we disable the submit button untill the CAPTCHA challenge is completed?', 'advanced-nocaptcha-recaptcha' ) ), ), 'disable_submit' => array( 'label' => esc_html__( 'Disable submit button', 'advanced-nocaptcha-recaptcha' ), 'section_id' => 'forms', 'std' => 0, 'type' => 'checkbox', 'class' => 'checkbox', ), 'pass_on_no_captcha_found_title' => array( 'section_id' => 'forms', 'type' => 'html', 'class' => 'wrap-around-content', 'label' => sprintf( '%1$s', esc_html__( 'Should CAPTCHA 4WP pass or fail a submission if no CAPTCHA field is found?', 'advanced-nocaptcha-recaptcha' ) ), ), 'pass_on_no_captcha_found_subtitle' => array( 'section_id' => 'forms', 'type' => 'html', 'class' => 'wrap-around-content', 'label' => sprintf( '%1$s
', esc_html__( 'If a form is passed through our plugin for verification and no CAPTCHA field is present, you can choose to either allow the submission or return a failure.', 'advanced-nocaptcha-recaptcha' ) ), ), 'pass_on_no_captcha_found' => array( 'label' => esc_html__( 'Disable CAPTCHA tests for logged in users', 'advanced-nocaptcha-recaptcha' ), 'section_id' => 'forms', 'type' => 'radio', 'class' => 'regular remove-space-below remove-radio-br', 'std' => 'proceed', 'options' => array( 'proceed' => esc_html__( 'Proceed with submission', 'advanced-nocaptcha-recaptcha' ), 'fail' => esc_html__( 'Fail submission', 'advanced-nocaptcha-recaptcha' ), ), ), 'delete_data_subtitle' => array( 'section_id' => 'forms', 'type' => 'html', 'class' => 'wrap-around-content', 'label' => sprintf( '%1$s', esc_html__( 'Do you want delete all plugin data when uninstalling the plugin?', 'advanced-nocaptcha-recaptcha' ) ), ), 'delete_data_enable' => array( 'label' => esc_html__( 'Delete data', 'advanced-nocaptcha-recaptcha' ), 'section_id' => 'forms', 'std' => 0, 'type' => 'checkbox', 'class' => 'checkbox', ), ); $fields = \C4WP_Settings::push_at_to_associative_array( $fields, array_key_last( $fields ), $additonal_hide_fields ); return $fields; } } //END CLASS