<!-- /comments -->
<!-- moderation -->
+ <type>
+ <name>com.woltlab.wcf.comment.comment</name>
+ <definitionname>com.woltlab.wcf.moderation.activation</definitionname>
+ <classname>wcf\system\moderation\queue\activation\CommentCommentModerationQueueActivationHandler</classname>
+ </type>
<type>
<name>com.woltlab.wcf.comment.comment</name>
<definitionname>com.woltlab.wcf.moderation.report</definitionname>
<classname>wcf\system\moderation\queue\report\CommentCommentModerationQueueReportHandler</classname>
</type>
+ <type>
+ <name>com.woltlab.wcf.comment.response</name>
+ <definitionname>com.woltlab.wcf.moderation.activation</definitionname>
+ <classname>wcf\system\moderation\queue\activation\CommentResponseModerationQueueActivationHandler</classname>
+ </type>
<type>
<name>com.woltlab.wcf.comment.response</name>
<definitionname>com.woltlab.wcf.moderation.report</definitionname>
{if !$commentManager|isset}{assign var='commentManager' value=$commentList->getCommentManager()}{/if}
-{assign var=__comentCanModerate value=$commentManager->canModerate($commentList->objectTypeID, $commentList->objectID)}
+{if !$commentCanModerate|isset}{assign var=commentCanModerate value=$commentManager->canModerate($commentList->objectTypeID, $commentList->objectID)}{/if}
{foreach from=$commentList item=comment}
<li class="comment jsComment"
data-object-id="{@$comment->commentID}" data-comment-id="{@$comment->commentID}" data-object-type="com.woltlab.wcf.comment"
<nav class="jsMobileNavigation buttonGroupNavigation">
<ul class="buttonList iconList">
- {if $comment->isDisabled && $__comentCanModerate}
+ {if $comment->isDisabled && $commentCanModerate}
<li class="jsOnly"><a href="#" class="jsEnableComment"><span class="icon icon16 fa-check"></span> <span class="invisible">{lang}wcf.comment.approve{/lang}</span></a></li>
{/if}
{if $commentManager->supportsReport() && $__wcf->session->getPermission('user.profile.canReportContent')}
{@$__wcf->getUserProfileHandler()->getAvatar()->getImageTag(48)}
<div class="commentListAddComment collapsed" data-placeholder="{lang}wcf.comment.add{/lang}">
<div class="commentListAddCommentEditorContainer">
+ {if !$commentList->getCommentManager()->canAddWithoutApproval($commentList->objectID)}
+ <p class="info">{lang}wcf.comment.add.moderation.info{/lang}</p>
+ {/if}
+
<textarea id="{$wysiwygSelector}" name="text" class="wysiwygTextarea"
data-disable-attachments="true"
data-disable-media="true"
}
WCF::getTPL()->assign([
+ 'commentCanModerate' => $this->commentProcessor->canModerate($comment->getDecoratedObject()->objectTypeID, $comment->getDecoratedObject()->objectID),
'commentList' => [$comment],
'commentManager' => $this->commentProcessor
]);
}
}
+.commentListAddCommentEditorContainer > .info:first-child {
+ margin-top: 0;
+}
+
.commentEditorContainer {
> .icon {
left: calc(50% - 24px);
<category name="wcf.comment">
<item name="wcf.comment.add"><![CDATA[Kommentar schreiben …]]></item>
+ <item name="wcf.comment.add.moderation.info"><![CDATA[Neu erstellte Kommentare unterliegen der Moderation und werden erst sichtbar, wenn sie durch einen Moderator geprüft und freigeschaltet wurden.]]></item>
<item name="wcf.comment.approve"><![CDATA[Freischalten]]></item>
<item name="wcf.comment.delete.confirmMessage"><![CDATA[{if LANGUAGE_USE_INFORMAL_VARIANT}Willst du{else}Wollen Sie{/if} diesen Kommentar wirklich löschen?]]></item>
<item name="wcf.comment.description"><![CDATA[{if LANGUAGE_USE_INFORMAL_VARIANT}Drücke{else}Drücken Sie{/if} die Eingabetaste, um abzusenden oder Escape, um abzubrechen.]]></item>
<category name="wcf.comment">
<item name="wcf.comment.add"><![CDATA[Write a comment …]]></item>
+ <item name="wcf.comment.add.moderation.info"><![CDATA[Newly created comments need to be manually approved before publication, other users cannot see this comment until it has been approved.]]></item>
<item name="wcf.comment.approve"><![CDATA[Approve]]></item>
<item name="wcf.comment.delete.confirmMessage"><![CDATA[Do you really want to delete this comment?]]></item>
<item name="wcf.comment.description"><![CDATA[Press Enter to send or Escape to cancel.]]></item>