diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/comment/views/comments.html.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/comment/views/comments.html.php b/modules/comment/views/comments.html.php index ce99cbe7..575a7eca 100644 --- a/modules/comment/views/comments.html.php +++ b/modules/comment/views/comments.html.php @@ -1,4 +1,10 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> +<? if (!$comments->count()): ?> +<p> + <?= t("No comments yet. Be the first to") ?> + <a href="#add_comment_form" class="showCommentForm"><?= t("comment") ?></a>! +</p> +<? endif ?> <ul id="gComments"> <? foreach ($comments as $comment): ?> <li id="gComment-<?= $comment->id ?>"> @@ -20,7 +26,4 @@ </li> <? endforeach ?> </ul> -<? if (!$comments->count()): ?> -<?= t("No comments yet. Be the first to comment!") ?> -<? endif ?> <a name="add_comment_form"></a> |