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>
|
2018-01-28 12:43:27 +01:00
|
|
|
<?php foreach ($comments as $comment): ?>
|
2009-11-15 19:34:44 -08:00
|
|
|
<li class="<?= text::alternate("g-even", "g-odd") ?>">
|
2009-07-23 10:20:49 -07:00
|
|
|
<img src="<?= $comment->author()->avatar_url(32, $theme->url("images/avatar.jpg", true)) ?>"
|
2009-10-04 00:27:22 -06:00
|
|
|
class="g-avatar"
|
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) ?>
|
2018-01-28 12:43:27 +01:00
|
|
|
<?php if ($comment->author()->guest): ?>
|
2010-01-28 08:14:33 -08:00
|
|
|
<?= t('%author_name said <em>%comment_text</em>',
|
|
|
|
|
array("author_name" => html::clean($comment->author_name()),
|
|
|
|
|
"comment_text" => text::limit_words(nl2br(html::purify($comment->text)), 50))); ?>
|
2018-01-28 12:43:27 +01:00
|
|
|
<?php else: ?>
|
2010-01-23 21:38:01 -08:00
|
|
|
<?= t('<a href="%url">%author_name</a> said <em>%comment_text</em>',
|
2009-08-29 22:54:20 -07:00
|
|
|
array("author_name" => html::clean($comment->author_name()),
|
2010-01-23 21:38:01 -08:00
|
|
|
"url" => user_profile::url($comment->author_id),
|
2009-08-29 22:54:20 -07:00
|
|
|
"comment_text" => text::limit_words(nl2br(html::purify($comment->text)), 50))); ?>
|
2018-01-28 12:43:27 +01:00
|
|
|
<?php endif ?>
|
2008-12-20 01:25:03 +00:00
|
|
|
</li>
|
2018-01-28 12:43:27 +01:00
|
|
|
<?php endforeach ?>
|
2008-12-20 01:25:03 +00:00
|
|
|
</ul>
|