From f5e972c030675f46cda543e13da1b787457e070b Mon Sep 17 00:00:00 2001 From: cflip <36554078+cflip@users.noreply.github.com> Date: Wed, 23 Jun 2021 15:21:12 -0600 Subject: Add the rest of the changes --- viewcategory.php | 113 +++++++++++++++++++++++++++---------------------------- 1 file changed, 56 insertions(+), 57 deletions(-) mode change 100644 => 100755 viewcategory.php (limited to 'viewcategory.php') diff --git a/viewcategory.php b/viewcategory.php old mode 100644 new mode 100755 index 832d953..acca740 --- a/viewcategory.php +++ b/viewcategory.php @@ -1,57 +1,56 @@ -has_value()) { - http_response_code(404); - include('includes/templates/404.php'); - die(); -} -?> - - -
-= $current->description; ?>
- = $current->thread_count . ' threads, ' . $current->post_count . ' posts'; ?> - -Thread | -Author | -Date | -Latest Post | -|
---|---|---|---|---|
- = $thread->subject ?> - | -= $thread->author->name ?> | -= $thread->date_created ?> | -get_latest_post(); if ($latest_post->has_value()): ?> -by = $latest_post->author->name ?> on = $latest_post->date_created ?> | - -No posts yet! | - -
= $current->description; ?>
+ = $current->thread_count . ' threads, ' . $current->post_count . ' posts'; ?> +Thread | +Author | +Latest Post | +|
---|---|---|---|
+ = $thread->subject ?> + on = date('M d, Y', strtotime($thread->date_created)); ?> + | += $thread->author->name ?> | +get_latest_post(); if ($latest_post->has_value()): ?> ++ by = $latest_post->author->name ?> + on = $latest_post->date_created ?> + | + +No posts yet! | + +