source: extensions/EasyCaptcha/template/guestbook.tpl @ 27214

Last change on this file since 27214 was 27214, checked in by mistic100, 10 years ago

compatibility with GuestBook

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