Commit | Line | Data |
---|---|---|
b9f4bd69 | 1 | {if !$__wcf->user->userID} |
1f7904b4 | 2 | <script data-relocate="true" src="http{if $__wcf->secureConnection()}s{/if}://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> |
b9f4bd69 | 3 | {/if} |
9543d9fe | 4 | <script data-relocate="true"> |
285b1d92 MW |
5 | //<![CDATA[ |
6 | $(function() { | |
7 | WCF.Language.addObject({ | |
8 | 'wcf.comment.add': '{lang}wcf.comment.add{/lang}', | |
9 | 'wcf.comment.button.response.add': '{lang}wcf.comment.button.response.add{/lang}', | |
10 | 'wcf.comment.delete.confirmMessage': '{lang}wcf.comment.delete.confirmMessage{/lang}', | |
11 | 'wcf.comment.description': '{lang}wcf.comment.description{/lang}', | |
12 | 'wcf.comment.more': '{lang}wcf.comment.more{/lang}', | |
13 | 'wcf.comment.response.add': '{lang}wcf.comment.response.add{/lang}', | |
14 | 'wcf.comment.response.more': '{lang}wcf.comment.response.more{/lang}', | |
15 | 'wcf.moderation.report.reportContent': '{lang}wcf.moderation.report.reportContent{/lang}', | |
16 | 'wcf.moderation.report.success': '{lang}wcf.moderation.report.success{/lang}' | |
17 | }); | |
18 | ||
19 | new {if $commentHandlerClass|isset}{@$commentHandlerClass}{else}WCF.Comment.Handler{/if}('{$commentContainerID}', '{@$__wcf->getUserProfileHandler()->getAvatar()->getImageTag(32)}'); | |
20 | {if MODULE_LIKE && $__wcf->getSession()->getPermission('user.like.canViewLike')} | |
21 | new WCF.Comment.Like({if $__wcf->getUser()->userID && $__wcf->getSession()->getPermission('user.like.canLike')}1{else}0{/if}, {@LIKE_ENABLE_DISLIKE}, false, {@LIKE_ALLOW_FOR_OWN_CONTENT}); | |
22 | new WCF.Comment.Response.Like({if $__wcf->getUser()->userID && $__wcf->getSession()->getPermission('user.like.canLike')}1{else}0{/if}, {@LIKE_ENABLE_DISLIKE}, false, {@LIKE_ALLOW_FOR_OWN_CONTENT}); | |
23 | {/if} | |
24 | ||
e6de9aeb MW |
25 | {if $__wcf->session->getPermission('user.profile.canReportContent')} |
26 | new WCF.Moderation.Report.Content('com.woltlab.wcf.comment.comment', '.jsReportCommentComment'); | |
27 | new WCF.Moderation.Report.Content('com.woltlab.wcf.comment.response', '.jsReportCommentResponse'); | |
28 | {/if} | |
285b1d92 MW |
29 | }); |
30 | //]]> | |
31 | </script> | |
32 | ||
33 | {event name='javascriptInclude'} |