aboutsummaryrefslogtreecommitdiff
path: root/guestbook/comments.php
diff options
context:
space:
mode:
Diffstat (limited to 'guestbook/comments.php')
-rw-r--r--guestbook/comments.php35
1 files changed, 28 insertions, 7 deletions
diff --git a/guestbook/comments.php b/guestbook/comments.php
index b0acbae..92505e3 100644
--- a/guestbook/comments.php
+++ b/guestbook/comments.php
@@ -13,7 +13,7 @@ function echo_comments($page, $Parsedown = null) {
foreach($postlist as $post) {
if($post->entry === $page and $post->modstatus > 0) {
$output = "";
- $date = date("Y-m-d h:iA", $post->date);
+ $date = date("Y-m-d", $post->date);
$name = htmlentities($post->name);
$message = $Parsedown->text($post->message);
$found = htmlentities($post->found);
@@ -23,7 +23,28 @@ function echo_comments($page, $Parsedown = null) {
$coolsanitized = htmlentities(preg_replace("/https?:\/\//i", "", $cool));
$reply = $Parsedown->text($post->reply);
- $output = $output."<hr><article class='comment'><div style='grid-area:gb-name;' class='gb-name'>";
+ $nice = "";
+ switch($index) {
+ case 42:
+ $nice = "scifi reference ayo???";
+ break;
+ case 67:
+ $nice = "six sevennn";
+ break;
+ case 69:
+ $nice = "nice";
+ break;
+ case 420:
+ $nice = "blaze it";
+ break;
+ case 911:
+ $nice = "ohhhh nine eleven";
+ break;
+ default:
+ $nice = "#$index";
+ }
+
+ $output = $output."<article class='comment'><div class='gb-head'><p class='gb-name'>";
if($website) {
if($button) {
$output = $output."<a href='$website'><img src='$button' alt='$name'/></a>";
@@ -31,16 +52,16 @@ function echo_comments($page, $Parsedown = null) {
$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>";
+ $output = $output."</p><p class='gb-date'>$date</p><p class='gb-index'>$nice</p></div>";
if($cool) {
- $output = $output."<div style='grid-area:gb-cool;' class='gb-cool'><b>cool thing</b>: <a href='$cool'>$coolsanitized</a></div>";
+ $output = $output."<div class='gb-cool'><p><b>cool thing</b>: <a href='$cool'>$coolsanitized</a></p></div>";
}
if($found) {
- $output = $output."<div style='grid-area:gb-found;' class='gb-found'><b>How did you find me?</b><br>$found</div>";
+ $output = $output."<div class='gb-found'><p><b>How did you find me?</b></p><p>$found</p></div>";
}
- $output = $output."<div style='grid-area:gb-message;'>$message</div>";
+ $output = $output."<div class='gb-message'>$message</div>";
if($reply) {
- $output = $output."<div style='grid-area:gb-reply;' class='reply'><b>Reply</b>:$reply</div>";
+ $output = $output."<div class='gb-reply'><p><b>Reply</b>:</p><div>$reply</div></div>";
}
$output = $output."</article>";
$index++;