2009-01-01 00:23:29 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2008-12-20 01:25:03 +00:00
|
|
|
<ul>
|
2009-01-24 20:06:13 +00:00
|
|
|
<? foreach ($comments as $i => $comment): ?>
|
2009-10-03 12:33:53 -06:00
|
|
|
<li class="<?= ($i % 2 == 0) ? "g-even-row" : "g-odd-row" ?>">
|
2009-07-23 10:20:49 -07:00
|
|
|
<img src="<?= $comment->author()->avatar_url(32, $theme->url("images/avatar.jpg", true)) ?>"
|
2009-01-10 19:13:00 +00:00
|
|
|
class="gAvatar"
|
2009-08-31 21:51:57 -07:00
|
|
|
alt="<?= html::clean_attribute($comment->author_name()) ?>"
|
2009-02-23 05:14:05 +00:00
|
|
|
width="32"
|
|
|
|
|
height="32" />
|
2009-06-12 22:44:51 -07:00
|
|
|
<?= gallery::date_time($comment->created) ?>
|
2009-06-16 14:12:40 -07:00
|
|
|
<?= t('<a href="#">%author_name</a> said <em>%comment_text</em>',
|
2009-08-29 22:54:20 -07:00
|
|
|
array("author_name" => html::clean($comment->author_name()),
|
|
|
|
|
"comment_text" => text::limit_words(nl2br(html::purify($comment->text)), 50))); ?>
|
2008-12-20 01:25:03 +00:00
|
|
|
</li>
|
2008-12-21 02:02:41 +00:00
|
|
|
<? endforeach ?>
|
2008-12-20 01:25:03 +00:00
|
|
|
</ul>
|