From 2ae22c4a438dc3c1822b8d909a4b38a211427bee Mon Sep 17 00:00:00 2001 From: cflip <36554078+cflip@users.noreply.github.com> Date: Sat, 5 Jun 2021 11:57:12 -0600 Subject: Use different syntax for conditions in HTML --- viewcategory.php | 71 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 35 insertions(+), 36 deletions(-) (limited to 'viewcategory.php') diff --git a/viewcategory.php b/viewcategory.php index e68bab2..e9927f9 100644 --- a/viewcategory.php +++ b/viewcategory.php @@ -18,40 +18,39 @@ if (!$current->has_value()) { ?> - - <?= $current->name; ?> - cflip.net forum - - - - -

name; ?>

-

description; ?>

-thread_count . ' threads, ' . $current->post_count . ' posts'; ?> -

Threads

- - - - - - get_threads(); - - foreach ($threads as $thread) { - $latest_post = $thread->get_latest_post(); - - echo ''; - echo ''; - - if (!is_null($latest_post)) { - echo ''; - } else { - echo ''; - } - - echo ''; - } - ?> -
Thread NameLatest Post
' . $thread->subject . ''; - echo ' by ' . $thread->author->name . ' on ' . date('M d, Y', strtotime($thread->date_created)) . 'by ' . $latest_post->author->name . ' on ' . $latest_post->date_created . 'No posts yet!
- + + <?= $current->name; ?> - cflip.net forum + + + + + + +

name; ?>

+

description; ?>

+ thread_count . ' threads, ' . $current->post_count . ' posts'; ?> +

Threads

+ + + + + + + +get_threads() as $thread): ?> + + + + +get_latest_post(); if ($latest_post->has_value()): ?> + + + + + + +
ThreadAuthorDateLatest Post
+ subject ?> + author->name ?>date_created ?>by author->name ?> on date_created ?>No posts yet!
+ -- cgit v1.2.3