Files
gallery3/modules/comment/views/comments.html.php
Andy Staudacher a631fe29f3 i18n refactoring: Rename all _() (reserved by gettext) calls to t().
- And refactor printf to our string interpolation / pluralization syntax
- Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key.
2009-01-08 17:13:06 +00:00

21 lines
706 B
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<a name="comments"></a>
<ul id="gComments">
<? foreach ($comments as $comment): ?>
<li id="gComment-<?= $comment->id; ?>">
<? $avatar = $theme->url("images/avatar.jpg") ?>
<? //if ($user->avatar($comment->author)): ?>
<? //$avatar = $theme->url("images/avatar.jpg") ?>
<? //endif ?>
<p class="gAuthor">
<a href="#"><img src="<?= $avatar ?>" class="gAvatar" alt="<?= $comment->author ?>" /></a>
<?= t("on ") . date("Y-M-d H:i:s", $comment->created) ?>
<a href="#"><?= $comment->author ?></a> <?= t("said") ?>
</p>
<div>
<?= $comment->text ?>
</div>
</li>
<? endforeach ?>
</ul>