diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-19 06:27:18 -0700 | 
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-19 06:27:18 -0700 | 
| commit | 1b530e4680b09391d7f99e91f1b0b1eb6b2069fc (patch) | |
| tree | 9beee9ad047c5efa41dae7f64a0195b304770b61 /modules/recaptcha/views | |
| parent | 9a6a404a3239c964528b501d3c187ead84b1f7a0 (diff) | |
| parent | b2d0b3ebbb1764593e387a2e07e0d4e67f4f5474 (diff) | |
Merge branch 'master' into talmdal_dev
Conflicts:
	modules/user/views/admin_users.html.php
Diffstat (limited to 'modules/recaptcha/views')
| -rw-r--r-- | modules/recaptcha/views/admin_recaptcha.html.php | 44 | 
1 files changed, 23 insertions, 21 deletions
| diff --git a/modules/recaptcha/views/admin_recaptcha.html.php b/modules/recaptcha/views/admin_recaptcha.html.php index 3e964801..a0af3ba8 100644 --- a/modules/recaptcha/views/admin_recaptcha.html.php +++ b/modules/recaptcha/views/admin_recaptcha.html.php @@ -1,5 +1,5 @@  <?php defined("SYSPATH") or die("No direct script access.") ?> -<div id="g-admin-recaptcha"> +<div class="g-block">    <h1> <?= t("reCAPTCHA Challenge Filtering") ?> </h1>    <p>      <?= t("reCAPTCHA is a free CAPTCHA service that helps to digitize books, newspapers and old time radio shows.  In order to use it, you need to sign up for a <a href=\"%domain_url\">reCAPTCHA Public/Private Key pair</a>, which is also free.  Once registered, the challenge and response strings are evaluated at <a href=\"%recaptcha_url\">recaptcha.net</a> to determine if the form content has been entered by a bot.", @@ -7,27 +7,29 @@                  "recaptcha_url" => html::mark_clean("http://recaptcha.net"))) ?>    </p> -     <?= $form ?> -</div> +  <div class="g-block-content"> +    <?= $form ?> -<? if ($public_key && $private_key): ?> -<div id="g-admin-recaptcha-test" class="g-block"> -  <h2> <?= t("reCAPTCHA Test") ?> </h2> -  <p> -    <?= t("If you see a CAPTCHA form below, then reCAPTCHA is functioning properly.") ?> -  </p> +    <? if ($public_key && $private_key): ?> +    <div id="g-admin-recaptcha-test"> +      <h2> <?= t("reCAPTCHA Test") ?> </h2> +      <p> +        <?= t("If you see a CAPTCHA form below, then reCAPTCHA is functioning properly.") ?> +      </p> -  <div id="g-recaptcha"/> -  <script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script> -  <script type="text/javascript"> -    Recaptcha.create("<?= $public_key ?>", "g-recaptcha", { -      callback: Recaptcha.focus_response_field, -      lang: "en", -      custom_translations : { instructions_visual : <?= t("Type words to check:")->for_js() ?>}, -      theme: "white" -    }); -  </script> +      <div id="g-recaptcha"> +      <script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script> +      <script type="text/javascript"> +        Recaptcha.create("<?= $public_key ?>", "g-recaptcha", { +          callback: Recaptcha.focus_response_field, +          lang: "en", +          custom_translations : { instructions_visual : <?= t("Type words to check:")->for_js() ?>}, +          theme: "white" +        }); +      </script> +      </div> +    </div> +    <? endif ?> +      </div>  </div> -<? endif ?> - | 
