blob: 99f72a3047448a7a4e2e53acc6d643bc4a6cc4fd (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 | <?php defined("SYSPATH") or die("No direct script access.") ?>
<ul>
  <? foreach ($comments as $comment): ?>
  <li class="<?= text::alternate("g-even", "g-odd") ?>">
    <img src="<?= $comment->author()->avatar_url(32, $theme->url("images/avatar.jpg", true)) ?>"
         class="g-avatar"
         alt="<?= html::clean_attribute($comment->author_name()) ?>"
         width="32"
         height="32" />
    <?= gallery::date_time($comment->created) ?>
    <?= t('<a href="%url">%author_name</a> said <em>%comment_text</em>',
          array("author_name" => html::clean($comment->author_name()),
                "url" => user_profile::url($comment->author_id),
                "comment_text" => text::limit_words(nl2br(html::purify($comment->text)), 50))); ?>
  </li>
  <? endforeach ?>
</ul>
 |