source: extensions/EasyCaptcha/template/contactform.tpl @ 26025

Revision 26025, 1.1 KB checked in by mistic100, 6 years ago (diff)

update for 2.6

Line 
1</tr>
2<tr>
3  {include file=$EASYCAPTCHA_ABS_PATH|cat:'template/common.inc.tpl'}
4
5  {* <!-- DRAG & DROP --> *}
6  {if $EASYCAPTCHA.challenge == 'drag'}
7  <td class="title">{'To verify you are a human, please place the <b>%s</b> in the most right box bellow.'|translate:$EASYCAPTCHA.drag.text}</td>
8
9  {footer_script}
10  var captcha_code = new LiveValidation(jQuery('input[name="easycaptcha"]')[0], {ldelim} onlyOnSubmit: true });
11  captcha_code.add(Validate.Presence, {ldelim} failureMessage: "{'Pleaser answer'|translate}" });
12  {/footer_script}
13
14  {* <!-- TIC TAC TOE --> *}
15  {else if $EASYCAPTCHA..challenge == 'tictac'}
16  <td class="title">{'You are player X, click on the right case to complete the line.'|translate}</td>
17
18  {footer_script}
19  var captcha_code = new LiveValidation(jQuery('input[name="easycaptcha_key"]')[0], {ldelim} onlyOnSubmit: true });
20  captcha_code.add(Validate.Custom, {ldelim}
21    failureMessage: "{'Pleaser answer'|translate}",
22    against: function() {ldelim}
23        return jQuery('input[name="easycaptcha"]:checked').length != 0;
24    }
25  });
26  {/footer_script}
27
28  {/if}
29  <td>
30    {$smarty.capture.easycaptcha}
31  </td>
Note: See TracBrowser for help on using the repository browser.