diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-04-07 16:24:54 -0600 |
---|---|---|
committer | cflip <36554078+cflip@users.noreply.github.com> | 2021-04-07 16:24:54 -0600 |
commit | 3b0349188c83b24cb8ff7dfe76796dabc3916e83 (patch) | |
tree | c8c3cf77ace1c03cea281baf3e924fe1c4dc6748 /viewthread.php | |
parent | 700449b8d903b9707b2751784dc54b4450a655df (diff) |
Styling and formatting for posts
Diffstat (limited to 'viewthread.php')
-rw-r--r-- | viewthread.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/viewthread.php b/viewthread.php index c8ae99e..64750a5 100644 --- a/viewthread.php +++ b/viewthread.php @@ -22,21 +22,21 @@ if (!isset($_GET['id']) || !filter_var($_GET['id'], FILTER_VALIDATE_INT)) { <!DOCTYPE html> <html> <head> - <title><?php echo $current->subject; ?> - cflip.net forum</title> + <title><?= $current->subject; ?> - cflip.net forum</title> <link rel="stylesheet" href="styles/style.css"> </head> <body> <?php include_once 'templates/header.php';?> - <h1><?php echo $current->subject; ?></h1> - created by <b><?php echo $current->author->name; ?></b> - in <b><?php echo $current->category->name; ?></b> - <abbr title="<?php echo date('M d, Y g:ia', strtotime($current->date_created));?>">3 days ago</abbr> + <h1><?= $current->subject; ?></h1> + created by <b><?= $current->author->name; ?></b> + in <b><?= $current->category->name; ?></b> + <abbr title="<?= date('M d, Y g:ia', strtotime($current->date_created));?>">3 days ago</abbr> <hr> <?php $posts = $current->get_posts($dbc); foreach ($posts as $post) { - $post->display_content(); + $post->display_content($dbc); } ?> <hr> |