mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
Create a UI under Admin > Settings > Comments where you can limit
comments only to registered users. It's simplistic, but is better than adding a permission since generally this setting will be used Gallery-wide. Fixes ticket #1002
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<a href="<?= url::site("form/add/comments/{$item->id}") ?>#comment-form" id="g-add-comment"
|
||||
<? if (comment::can_comment()): ?>
|
||||
<a href="<?= url::site("form/add/comments/{$item->id}") ?>#comment-form" id="g-add-comment"
|
||||
class="g-button ui-corner-all ui-icon-left ui-state-default">
|
||||
<span class="ui-icon ui-icon-comment"></span>
|
||||
<?= t("Add a comment") ?>
|
||||
</a>
|
||||
<? endif ?>
|
||||
|
||||
<div id="g-comment-detail">
|
||||
<? if (!$comments->count()): ?>
|
||||
<p class="g-no-comments">
|
||||
|
||||
Reference in New Issue
Block a user