Use the theme's avatar as the default if Gravatar doesn't have one.

This commit is contained in:
Bharat Mediratta
2009-01-10 06:18:35 +00:00
parent 5690e58c45
commit 9b90b4b0cd
7 changed files with 21 additions and 13 deletions
+2 -1
View File
@@ -2,7 +2,8 @@
<li id="gComment-<?= $comment->id; ?>">
<p class="gAuthor">
<a href="#">
<img width="40" height="40" src="<?= $user->avatar_url(40) ?>"
<img width="40" height="40"
src="<?= $comment->author()->avatar_url(40, $theme->url("images/avatar.jpg", true)) ?>"
class="gAvatar" alt="<?= $comment->author_name() ?>" />
</a>
<?= t("on ") . date("Y-M-d H:i:s", $comment->created) ?>