summaryrefslogtreecommitdiff
path: root/modules/comment/views/admin_block_recent_comments.html.php
blob: 39d39929906fff13e9fcaebba954d42fed60b934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php defined("SYSPATH") or die("No direct script access.") ?>
<ul>
  <? foreach ($comments as $comment): ?>
  <li>
    <img src="<?= $comment->author()->avatar_url(40, $theme->url("images/avatar.jpg", true)) ?>"
         class="gAvatar"
         alt="<?= $comment->author_name() ?>"
         width="40"
         height="40" />
    <?= date("Y-M-d H:i:s", $comment->created) ?>
    <?= t("<a href=#>%author_name</a> said <em>%comment_text</em>",
          array("author_name" => $comment->author_name(),
                "comment_text" => text::limit_words($comment->text, 50))); ?>
  </li>
  <? endforeach ?>
</ul>