| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
?> |
| 6 |
|
| 7 |
<p class="howto"> |
| 8 |
<?php |
| 9 |
$settings = FrmCaptchaFactory::get_settings_object( $captcha ); |
| 10 |
$prefix = $settings->get_settings_prefix(); |
| 11 |
|
| 12 |
printf( |
| 13 |
/* translators: %1$s: Captcha name, %2$s: Start link HTML, %3$s: End link HTML */ |
| 14 |
esc_html__( '%1$s requires a Site and Private API key. Sign up for a %2$sfree %1$s key%3$s.', 'formidable' ), |
| 15 |
esc_html( $settings->get_name() ), |
| 16 |
'<a href="' . esc_url( $settings->get_documentation_url() ) . '" target="_blank">', |
| 17 |
'</a>' |
| 18 |
); |
| 19 |
?> |
| 20 |
</p> |
| 21 |
<p class="frm6 frm_form_field"> |
| 22 |
<label class="frm_help" for="frm_<?php echo esc_attr( $prefix ); ?>pubkey" title="<?php echo esc_attr( $settings->get_site_key_tooltip() ); ?>"> |
| 23 |
<?php esc_html_e( 'Site Key', 'formidable' ); ?> |
| 24 |
</label> |
| 25 |
<input type="text" name="frm_<?php echo esc_html( $prefix ); ?>pubkey" id="frm_<?php echo esc_html( $prefix ); ?>pubkey" size="42" value="<?php echo esc_attr( $settings->get_pubkey() ); ?>" /> |
| 26 |
</p> |
| 27 |
|
| 28 |
<p class="frm6 frm_form_field"> |
| 29 |
<label for="frm_<?php echo esc_attr( $prefix ); ?>privkey"> |
| 30 |
<?php esc_html_e( 'Secret Key', 'formidable' ); ?> |
| 31 |
</label> |
| 32 |
<input type="text" name="frm_<?php echo esc_html( $prefix ); ?>privkey" id="frm_<?php echo esc_html( $prefix ); ?>privkey" size="42" value="<?php echo esc_attr( $settings->secret ); ?>" /> |
| 33 |
</p> |
| 34 |
|