| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
?> |
| 6 |
<p class="howto"> |
| 7 |
<?php |
| 8 |
printf( |
| 9 |
/* translators: %1$s: Start link HTML, %2$s: End link HTML */ |
| 10 |
esc_html__( 'reCAPTCHA requires a Site and Private API key. Sign up for a %1$sfree reCAPTCHA key%2$s.', 'formidable' ), |
| 11 |
'<a href="' . esc_url( 'https://www.google.com/recaptcha/' ) . '" target="_blank">', |
| 12 |
'</a>' |
| 13 |
); |
| 14 |
?> |
| 15 |
</p> |
| 16 |
|
| 17 |
<div class="frm_grid_container"> |
| 18 |
<p class="frm6 frm_form_field"> |
| 19 |
<label class="frm_help" for="frm_pubkey" title="<?php esc_attr_e( 'reCAPTCHA is a free, accessible CAPTCHA service that helps to digitize books while blocking spam on your blog. reCAPTCHA asks commenters to retype two words scanned from a book to prove that they are a human. This verifies that they are not a spambot.', 'formidable' ); ?>"> |
| 20 |
<?php esc_html_e( 'Site Key', 'formidable' ); ?> |
| 21 |
</label> |
| 22 |
<input type="text" name="frm_pubkey" id="frm_pubkey" size="42" value="<?php echo esc_attr( $frm_settings->pubkey ); ?>" /> |
| 23 |
</p> |
| 24 |
|
| 25 |
<p class="frm6 frm_form_field"> |
| 26 |
<label for="frm_privkey"> |
| 27 |
<?php esc_html_e( 'Secret Key', 'formidable' ); ?> |
| 28 |
</label> |
| 29 |
<input type="text" name="frm_privkey" id="frm_privkey" size="42" value="<?php echo esc_attr( $frm_settings->privkey ); ?>" /> |
| 30 |
</p> |
| 31 |
|
| 32 |
<p class="frm6 frm_form_field"> |
| 33 |
<label for="frm_re_type"> |
| 34 |
<?php esc_html_e( 'reCAPTCHA Type', 'formidable' ); ?> |
| 35 |
</label> |
| 36 |
<select name="frm_re_type" id="frm_re_type"> |
| 37 |
<option value="" <?php selected( $frm_settings->re_type, '' ); ?>> |
| 38 |
<?php esc_html_e( 'Checkbox (V2)', 'formidable' ); ?> |
| 39 |
</option> |
| 40 |
<option value="invisible" <?php selected( $frm_settings->re_type, 'invisible' ); ?>> |
| 41 |
<?php esc_html_e( 'Invisible', 'formidable' ); ?> |
| 42 |
</option> |
| 43 |
<option value="v3" <?php selected( $frm_settings->re_type, 'v3' ); ?>> |
| 44 |
<?php esc_html_e( 'v3', 'formidable' ); ?> |
| 45 |
</option> |
| 46 |
</select> |
| 47 |
</p> |
| 48 |
|
| 49 |
<p class="frm6 frm_form_field"> |
| 50 |
<label for="frm_re_lang"> |
| 51 |
<?php esc_html_e( 'reCAPTCHA Language', 'formidable' ); ?> |
| 52 |
</label> |
| 53 |
<select name="frm_re_lang" id="frm_re_lang"> |
| 54 |
<option value="" <?php selected( $frm_settings->re_lang, '' ); ?>> |
| 55 |
<?php esc_html_e( 'Browser Default', 'formidable' ); ?> |
| 56 |
</option> |
| 57 |
<?php foreach ( $captcha_lang as $lang => $lang_name ) { ?> |
| 58 |
<option value="<?php echo esc_attr( $lang ); ?>" <?php selected( $frm_settings->re_lang, $lang ); ?>> |
| 59 |
<?php echo esc_html( $lang_name ); ?> |
| 60 |
</option> |
| 61 |
<?php } ?> |
| 62 |
</select> |
| 63 |
</p> |
| 64 |
|
| 65 |
<p id="frm_captcha_threshold_container" class="frm6 frm_form_field <?php echo 'v3' === $frm_settings->re_type ? '' : 'frm_hidden'; ?>"> |
| 66 |
<label for="frm_re_type"> |
| 67 |
<?php esc_html_e( 'reCAPTCHA Threshold', 'formidable' ); ?> |
| 68 |
<span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'A score of 0 is likely to be a bot and a score of 1 is likely not a bot. Setting a lower threshold will allow more bots, but it will also stop fewer real users.', 'formidable' ); ?>"></span> |
| 69 |
</label> |
| 70 |
<span style="vertical-align:top;">0</span> |
| 71 |
<input name="frm_re_threshold" id="frm_re_threshold" type="range" step="0.1" max="1" min="0" value="<?php echo esc_attr( $frm_settings->re_threshold ); ?>" /> |
| 72 |
<span style="vertical-align:top;">1</span> |
| 73 |
</p> |
| 74 |
|
| 75 |
<p> |
| 76 |
<label for="frm_re_multi"> |
| 77 |
<input type="checkbox" name="frm_re_multi" id="frm_re_multi" |
| 78 |
value="1" <?php checked( $frm_settings->re_multi, 1 ); ?> /> |
| 79 |
<?php esc_html_e( 'Allow multiple reCAPTCHAs to be used on a single page', 'formidable' ); ?> |
| 80 |
</label> |
| 81 |
</p> |
| 82 |
</div> |
| 83 |
|