| 1 |
<h3 class="hndle"><?php esc_html_e( 'reCaptcha', 'weforms' ); ?></h3> |
| 2 |
|
| 3 |
<div class="inside"> |
| 4 |
<p class="help"> |
| 5 |
<?php printf( wp_kses_post( __( '<a href="%s" target="_blank">reCAPTCHA</a> is a free anti-spam service from Google which helps to protect your website from spam and abuse. Get <a href="%s" target="_blank">your API Keys</a>.', 'weforms' ) ), 'https://www.google.com/recaptcha/intro/', 'https://www.google.com/recaptcha/admin#list' ); ?> |
| 6 |
</p> |
| 7 |
|
| 8 |
<table class="form-table"> |
| 9 |
<tr> |
| 10 |
<th> <?php esc_html_e( 'reCaptcha Version', 'weforms' ); ?> </th> |
| 11 |
<td> |
| 12 |
<input type="radio" v-model="settings.recaptcha.type" name="v2_recaptcha" value="v2" class="regular-text"> |
| 13 |
<label for="recaptchav2"> <?php esc_html_e( 'v2','weforms'); ?> </label> |
| 14 |
<input type="radio" v-model="settings.recaptcha.type" name="v2_recaptcha" value="v3" class="regular-text"> |
| 15 |
<label for="recaptchav3"> <?php esc_html_e( 'v3','weforms'); ?> </label> |
| 16 |
</td> |
| 17 |
</tr> |
| 18 |
<tr> |
| 19 |
<th><?php esc_html_e( 'Site key', 'weforms' ); ?></th> |
| 20 |
<td> |
| 21 |
<input type="text" v-model="settings.recaptcha.key" class="regular-text"> |
| 22 |
</td> |
| 23 |
</tr> |
| 24 |
<tr> |
| 25 |
<th><?php esc_html_e( 'Secret key', 'weforms' ); ?></th> |
| 26 |
<td> |
| 27 |
<input type="text" v-model="settings.recaptcha.secret" class="regular-text"> |
| 28 |
</td> |
| 29 |
</tr> |
| 30 |
</table> |
| 31 |
</div> |
| 32 |
|
| 33 |
<div class="submit-wrapper"> |
| 34 |
<button v-on:click.prevent="saveSettings($event.target)" class="button button-primary"><?php esc_html_e( 'Save Changes', 'weforms' ); ?></button> |
| 35 |
</div> |
| 36 |
|