Commit | Line | Data |
---|---|---|
285b1d92 MW |
1 | <script type="text/javascript" src="{@$__wcf->getPath()}js/WCF.Comment{if !ENABLE_DEBUG_MODE}.min{/if}.js"></script> |
2 | <script type="text/javascript" src="{@$__wcf->getPath()}js/WCF.Moderation{if !ENABLE_DEBUG_MODE}.min{/if}.js"></script> | |
3 | <script type="text/javascript"> | |
4 | //<![CDATA[ | |
5 | $(function() { | |
6 | WCF.Language.addObject({ | |
7 | 'wcf.comment.add': '{lang}wcf.comment.add{/lang}', | |
8 | 'wcf.comment.button.response.add': '{lang}wcf.comment.button.response.add{/lang}', | |
9 | 'wcf.comment.delete.confirmMessage': '{lang}wcf.comment.delete.confirmMessage{/lang}', | |
10 | 'wcf.comment.description': '{lang}wcf.comment.description{/lang}', | |
11 | 'wcf.comment.more': '{lang}wcf.comment.more{/lang}', | |
12 | 'wcf.comment.response.add': '{lang}wcf.comment.response.add{/lang}', | |
13 | 'wcf.comment.response.more': '{lang}wcf.comment.response.more{/lang}', | |
14 | 'wcf.moderation.report.reportContent': '{lang}wcf.moderation.report.reportContent{/lang}', | |
15 | 'wcf.moderation.report.success': '{lang}wcf.moderation.report.success{/lang}' | |
16 | }); | |
17 | ||
18 | new {if $commentHandlerClass|isset}{@$commentHandlerClass}{else}WCF.Comment.Handler{/if}('{$commentContainerID}', '{@$__wcf->getUserProfileHandler()->getAvatar()->getImageTag(32)}'); | |
19 | {if MODULE_LIKE && $__wcf->getSession()->getPermission('user.like.canViewLike')} | |
20 | 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}); | |
21 | 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}); | |
22 | {/if} | |
23 | ||
24 | new WCF.Moderation.Report.Content('com.woltlab.wcf.comment.comment', '.jsReportCommentComment'); | |
25 | new WCF.Moderation.Report.Content('com.woltlab.wcf.comment.response', '.jsReportCommentResponse'); | |
26 | }); | |
27 | //]]> | |
28 | </script> | |
29 | ||
30 | {event name='javascriptInclude'} |