summaryrefslogtreecommitdiff
path: root/modules/comment/views/comment.html.php
blob: c7957c151fbe4380a57cb05587f00247000499d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php defined("SYSPATH") or die("No direct script access.") ?>
<li id="g-comment-<?= $comment->id; ?>">
  <p class="g-author">
    <a href="#">
      <img src="<?= $comment->author()->avatar_url(40, $theme->url("images/avatar.jpg", true)) ?>"
           class="g-avatar"
           alt="<?= html::clean_attribute($comment->author_name()) ?>"
           width="40"
           height="40" />
    </a>
    <?= t("on %date_time, %author_name said",
          array("date_time" => gallery::date_time($comment->created),
                "author_name" => html::clean($comment->author_name()))) ?>
  </p>
  <div>
  <?= nl2br(html::purify($comment->text)) ?>
  </div>
</li>