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 --- index.php | 104 +++++++++++++++++++++++++++++++------------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index dadef39..ac2dd3e 100644 --- a/index.php +++ b/index.php @@ -1,55 +1,55 @@ - + -
-- 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 | -|
---|---|---|---|---|
';
- echo '' . $category->name . '';
- echo ' ' . $category->description . ''; - echo ' | ';
- echo '' . $category->thread_count . ' | '; - echo '' . $category->post_count . ' | '; - if ($latest_thread->has_value()) { - echo '' . $latest_thread->subject . ' '; - echo 'by ' . $latest_thread->author->name . ', ' . $latest_thread->date_created . ' | ';
- } else {
- echo 'No threads yet! | '; - } - echo '
+ 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! | + +