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