diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-04-07 15:24:15 -0600 |
---|---|---|
committer | cflip <36554078+cflip@users.noreply.github.com> | 2021-04-07 15:24:15 -0600 |
commit | 700449b8d903b9707b2751784dc54b4450a655df (patch) | |
tree | 438db8c9baaa026f46a35e3f6f149d7aaa32db1e /model/Post.php | |
parent | d61a18a93bc1b39d91725497ebb2fe85c4785ead (diff) |
Style and layout changes
Diffstat (limited to 'model/Post.php')
-rw-r--r-- | model/Post.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/model/Post.php b/model/Post.php index d10a505..ef2fe4f 100644 --- a/model/Post.php +++ b/model/Post.php @@ -37,7 +37,7 @@ class Post { } function display_content() { - echo '<div>#' . $this->id . ' Posted by <a href="viewuser.php?id='. $this->author->id.'">' . $this->author->name . '</a> on ' . date('m/d/Y g:ia', strtotime($this->date)) . '<br></div>'; + echo '<div class="header">#' . $this->id . ' Posted by <a href="viewuser.php?id='. $this->author->id.'">' . $this->author->name . '</a> on ' . date('m/d/Y g:ia', strtotime($this->date)) . '<br></div>'; $post_content = $this->content; @@ -54,7 +54,7 @@ class Post { // Replace other URLs with links. $post_content = preg_replace('@\b(http(s)?://)([^\s]*?(?:\.[a-z\d?=/_-]+)+)(?![^<]*?(?:</\w+>|/?>))@i', '<a href="http$2://$3">$0</a>', $post_content); - echo $post_content; + echo '<p class="post-content">' . $post_content . '</p>'; } } |