Changeset 27214 for extensions/EasyCaptcha
- Timestamp:
- Feb 5, 2014, 6:27:20 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/EasyCaptcha/template/guestbook.tpl
r26923 r27214 1 <tr> 2 {include file=$EASYCAPTCHA_ABS_PATH|cat:'template/common.inc.tpl'} 1 {include file=$EASYCAPTCHA_ABS_PATH|cat:'template/common.inc.tpl'} 3 2 4 5 6 <td colspan=2><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></td>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> 7 6 8 9 10 11 7 {footer_script} 8 var captcha_code = new LiveValidation(jQuery('input[name="easycaptcha"]')[0], {ldelim} onlyOnSubmit: true }); 9 captcha_code.add(Validate.Presence, {ldelim} failureMessage: "{'Pleaser answer'|translate}" }); 10 {/footer_script} 12 11 13 14 15 <td colspan=2><label class="easycaptcha_hint">{'You are player X, click on the right case to complete the line.'|translate}</label></td>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> 16 15 17 18 19 20 21 22 23 24 25 16 {footer_script} 17 var captcha_code = new LiveValidation(jQuery('input[name="easycaptcha_key"]')[0], {ldelim} onlyOnSubmit: true }); 18 captcha_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} 26 25 27 {/if} 28 </tr> 29 <tr> 30 <td colspan=2 style="text-align:center;"> 31 {$smarty.capture.easycaptcha} 32 </td> 33 </tr> 26 {/if} 27 28 <div class="col-100" style="text-align:center;"> 29 {$smarty.capture.easycaptcha} 30 </div>
Note: See TracChangeset
for help on using the changeset viewer.