MailWorker ignores banned and not activated users
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / __commentJavaScript.tpl
CommitLineData
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}',
96714cab 12 'wcf.comment.guestDialog.title': '{lang}wcf.comment.guestDialog.title{/lang}',
285b1d92
MW
13 'wcf.comment.more': '{lang}wcf.comment.more{/lang}',
14 'wcf.comment.response.add': '{lang}wcf.comment.response.add{/lang}',
15 'wcf.comment.response.more': '{lang}wcf.comment.response.more{/lang}',
16 'wcf.moderation.report.reportContent': '{lang}wcf.moderation.report.reportContent{/lang}',
17 'wcf.moderation.report.success': '{lang}wcf.moderation.report.success{/lang}'
18 });
19
20 new {if $commentHandlerClass|isset}{@$commentHandlerClass}{else}WCF.Comment.Handler{/if}('{$commentContainerID}', '{@$__wcf->getUserProfileHandler()->getAvatar()->getImageTag(32)}');
21 {if MODULE_LIKE && $__wcf->getSession()->getPermission('user.like.canViewLike')}
22 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});
23 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});
24 {/if}
25
e6de9aeb
MW
26 {if $__wcf->session->getPermission('user.profile.canReportContent')}
27 new WCF.Moderation.Report.Content('com.woltlab.wcf.comment.comment', '.jsReportCommentComment');
28 new WCF.Moderation.Report.Content('com.woltlab.wcf.comment.response', '.jsReportCommentResponse');
29 {/if}
285b1d92
MW
30 });
31 //]]>
32</script>
33
34{event name='javascriptInclude'}