aboutsummaryrefslogtreecommitdiff
path: root/guestbook/comments.php
diff options
context:
space:
mode:
Diffstat (limited to 'guestbook/comments.php')
-rw-r--r--guestbook/comments.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/guestbook/comments.php b/guestbook/comments.php
index 3f65fb9..432c1d2 100644
--- a/guestbook/comments.php
+++ b/guestbook/comments.php
@@ -18,13 +18,19 @@ function echo_comments($page, $Parsedown = null) {
$message = $Parsedown->text($post->message);
$found = htmlentities($post->found);
$website = $post->website;
+ $button = $post->button;
$cool = $post->cool;
$coolsanitized = htmlentities(preg_replace("/https?:\/\//i", "", $cool));
$reply = $Parsedown->text($post->reply);
- $output = $output."<hr><article><div style='grid-area:gb-name;' class='gb-name'>";
- if($website) { $output = $output."<a href='$website'>$name</a>"; }
- else { $output = $output.$name; }
+ $output = $output."<hr><article class='comment'><div style='grid-area:gb-name;' class='gb-name'>";
+ if($website) {
+ if($button) {
+ $output = $output."<a href='$website'><img src='$button' alt='$name'/></a>";
+ } else {
+ $output = $output."<a href='$website'>$name</a>";
+ }
+ } else { $output = $output.$name; }
$output = $output."</div><div style='grid-area:gb-date;' class='gb-date'>$date</div><div style='grid-area:gb-index;' class='gb-index'>Entry #$index</div>";
if($cool) {
$output = $output."<div style='grid-area:gb-cool;' class='gb-cool'><b>cool thing</b>: <a href='$cool'>$coolsanitized</a></div>";