diff options
| author | Hannah Isopod <me@bathynomus.xyz> | 2025-06-25 21:40:34 -0600 |
|---|---|---|
| committer | Hannah Isopod <me@bathynomus.xyz> | 2025-06-25 21:40:34 -0600 |
| commit | 2645f9c733fcab7491238c88a27826fb090aa6b0 (patch) | |
| tree | bd2649a771eb9184d0c39d86f029ab626cb8716d /guestbook/comments.php | |
| parent | 54dac74821cca8bb84af32bece3779eb59dcf5ef (diff) | |
guestbook reflects .well-known/button in your site
also:
- moved johnvertisement and mothverisement to landing
page
- minor css fixes and other routine updates
Diffstat (limited to 'guestbook/comments.php')
| -rw-r--r-- | guestbook/comments.php | 12 |
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>"; |
