From fd0c3a283153d6f2d759e5e14888e40e65dc61b7 Mon Sep 17 00:00:00 2001 From: cflip <36554078+cflip@users.noreply.github.com> Date: Wed, 23 Jun 2021 15:19:21 -0600 Subject: Add latest threads to index page --- index.php | 115 ++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 60 insertions(+), 55 deletions(-) mode change 100644 => 100755 index.php (limited to 'index.php') diff --git a/index.php b/index.php old mode 100644 new mode 100755 index ac2dd3e..3b3f21b --- a/index.php +++ b/index.php @@ -1,55 +1,60 @@ - - - -
-- This is the beta test of the forum website, so there are lots of features missing. Since there are no moderation - features built into the website, - for the most part I don't care that much about what is posted here. Some links and buttons may not have any - functionality either! -
-- If you notice a problem or have an idea for a feature that is missing, reply to this thread! -
-Category | -Threads | -Posts | -Latest Thread | -|
---|---|---|---|---|
- = $category->name ?>
- = $category->description ?> - |
- = $category->thread_count ?> | -= $category->post_count ?> | -get_latest_thread(); if ($latest_thread->has_value()): ?> -
- = $latest_thread->subject ?>
- - by = $latest_thread->author->name ?>, = $latest_thread->date_created ?> - |
-
- No threads yet! | - -
Category | +Latest Thread | +|
---|---|---|
+ = $category->name ?>
+ = $category->description ?> + |
+get_latest_thread(); if ($latest_thread->has_value()): ?>
+
+ = $latest_thread->subject ?>
+ + by = $latest_thread->author->name ?>, = $latest_thread->date_created ?> + |
+
+ No threads yet! | + +
Thread | +Category | +Latest Post | +|
---|---|---|---|
+ = $thread->subject ?> + on = date('M d, Y', strtotime($thread->date_created)); ?> + | += $thread->category->name ?> | +get_latest_post(); if ($latest_post->has_value()): ?> ++ by = $latest_post->author->name ?> + on = $latest_post->date_created ?> + | + +No posts yet! | + +