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 --- viewthread.php | 69 ++++++++++++++++++++++++---------------------------------- 1 file changed, 29 insertions(+), 40 deletions(-) (limited to 'viewthread.php') diff --git a/viewthread.php b/viewthread.php index 12b9429..eb1698d 100644 --- a/viewthread.php +++ b/viewthread.php @@ -1,5 +1,7 @@ has_value()) { ?> - - <?= $current->subject; ?> - cflip.net forum - - - - -

subject; ?>

-created by author->name; ?> -in category->name; ?> -3 days ago -is_signed_in()) { - $user = Session::get()->get_current_user(); - - if ($user->level == USER_LEVEL_MODERATOR) { - echo ' + + <?= $current->subject; ?> - cflip.net forum + + + + + + +

subject; ?>

+ created by author->name; ?> + in category->name; ?>, date_created)); ?> +is_signed_in() and Session::get()->get_current_user()->level == USER_LEVEL_MODERATOR): ?>

Moderator Options - + @@ -49,22 +45,15 @@ if (Session::get()->is_signed_in()) {

- '; - } -} -?> -
-get_posts(); - -foreach ($posts as $post) { + +
+get_posts() as $post) { echo $post->get_content(); -} +} ?> -
-

Reply to this thread

+
+

Reply to this thread

-
- -
- -
- +
+ +
+ +
+ -- cgit v1.2.3