mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-03-11 01:15:27 -04:00
30 lines
1004 B
PHP
30 lines
1004 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<? if (!$comments->count()): ?>
|
|
<p id="gNoCommentsYet">
|
|
<?= t("No comments yet. Be the first to <a %attrs>comment</a>!",
|
|
array("attrs" => "href=\"#add_comment_form\" class=\"showCommentForm\"")) ?>
|
|
</p>
|
|
<? endif ?>
|
|
<ul id="gComments">
|
|
<? foreach ($comments as $comment): ?>
|
|
<li id="gComment-<?= $comment->id ?>">
|
|
<p class="gAuthor">
|
|
<a href="#">
|
|
<img src="<?= $comment->author()->avatar_url(40, $theme->url("images/avatar.jpg", true)) ?>"
|
|
class="gAvatar"
|
|
alt="<?= p::clean($comment->author_name()) ?>"
|
|
width="40"
|
|
height="40" />
|
|
</a>
|
|
<?= t('on %date <a href="#">%name</a> said',
|
|
array("date" => date("Y-M-d H:i:s", $comment->created),
|
|
"name" => p::clean($comment->author_name()))); ?>
|
|
</p>
|
|
<div>
|
|
<?= p::clean($comment->text) ?>
|
|
</div>
|
|
</li>
|
|
<? endforeach ?>
|
|
</ul>
|
|
<a name="add_comment_form"></a>
|