diff options
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>'; } } |