From 15f0a4d411eec7d4d871e340a7f92ea10b8e957f Mon Sep 17 00:00:00 2001 From: Latif Khalifa Date: Mon, 14 Oct 2013 14:54:39 +0200 Subject: [PATCH] Now with avatars --- htdocs/comments.php | 12 ++++++++++-- htdocs/css/singularity/singularity.css | 7 ++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/htdocs/comments.php b/htdocs/comments.php index 9cb88d8..12853bd 100644 --- a/htdocs/comments.php +++ b/htdocs/comments.php @@ -25,13 +25,21 @@ function renderComments($comments) { $del = "id}\">Delete comment "; } + $gid = md5($c->email); + $avatar = (USE_SSL ? "https://secure.gravatar.com" : "http://www.gravatar.com") . "/avatar/$gid?r=x&d=mm&s=48"; + ?> -
+
+
+ +
+
-
+
+