Provide a "default moderate" option for comments. The default behavior

is unchanged, but you now have the option to set all new comments to
be unpublished and then moderate them through the Admin > Content >
Comments interface.

Fixes #2126.
This commit is contained in:
Bharat Mediratta
2014-05-28 14:54:02 -04:00
parent 1637723a99
commit 9e0631ab0d
7 changed files with 27 additions and 4 deletions

View File

@@ -25,7 +25,7 @@
<? if ($comments->count()): ?>
<ul>
<? foreach ($comments as $comment): ?>
<li id="g-comment-<?= $comment->id ?>">
<li id="g-comment-<?= $comment->id ?>" class="g-comment-state-<?= $comment->state ?>">
<p class="g-author">
<a href="#">
<img src="<?= $comment->author()->avatar_url(40, $theme->url("images/avatar.jpg", true)) ?>"
@@ -48,6 +48,9 @@
<div>
<?= nl2br(html::purify($comment->text)) ?>
</div>
<? if ($comment->state == "unpublished"): ?>
<b> <?= t("Your comment is held for moderation. The site moderator will review and publish it.") ?> </b>
<? endif ?>
</li>
<? endforeach ?>
</ul>