mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-28 07:19:09 -04:00
Use the theme's avatar as the default if Gravatar doesn't have one.
This commit is contained in:
@@ -2,10 +2,13 @@
|
||||
<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("{{author_name}} said {{comment_text}}",
|
||||
array("author_name" => "<a href=\"#\">$comment->author</a>",
|
||||
"comment_text" => "<i>\"" . text::limit_words($comment->text, 50) . "\"</i>")); ?>
|
||||
<?= 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>
|
||||
|
||||
Reference in New Issue
Block a user