diff options
| author | Tristan Zur <tzur@webserver.ccwn.org> | 2015-06-10 20:55:53 +0200 |
|---|---|---|
| committer | Tristan Zur <tzur@webserver.ccwn.org> | 2015-06-10 20:55:53 +0200 |
| commit | 406abd7c4df1ace2cd3e4e17159e8941a2e8c0c4 (patch) | |
| tree | a324be16021f44f2fd6d55e609f47024e945b1db /modules/recaptcha/views/form_recaptcha.html.php | |
Initial import
Diffstat (limited to 'modules/recaptcha/views/form_recaptcha.html.php')
| -rw-r--r-- | modules/recaptcha/views/form_recaptcha.html.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/recaptcha/views/form_recaptcha.html.php b/modules/recaptcha/views/form_recaptcha.html.php new file mode 100644 index 0000000..7481d00 --- /dev/null +++ b/modules/recaptcha/views/form_recaptcha.html.php @@ -0,0 +1,18 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<div id="g-recaptcha"></div> +<script type="text/javascript" src="<?= request::protocol() ?>://www.google.com/recaptcha/api/js/recaptcha_ajax.js"> +</script> +<script type="text/javascript"> + setTimeout(function() { + Recaptcha.create( + "<?= $public_key ?>", + "g-recaptcha", + { + theme: "white", + custom_translations : { instructions_visual : <?= t("Type words to check:")->for_js() ?>}, + callback: Recaptcha.focus_response_field + } + ); + }, 500); +</script> + |
