mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 17:29:18 -04:00
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:
@@ -1,5 +1,5 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<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)) ?>"
|
||||
@@ -22,4 +22,7 @@
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user