diff options
author | deva <deva> | 2008-10-26 16:18:09 +0000 |
---|---|---|
committer | deva <deva> | 2008-10-26 16:18:09 +0000 |
commit | d2b6d71dfc8f353d4b56f1b76552f6897493bb6d (patch) | |
tree | 5016f75f5b2db04b8e43ff261c1b9e00ead81276 /forum/utils | |
parent | 9d7dbbf351aa7983f0fe499a3f80b59ee2f68547 (diff) |
Small fixes for signature. Only show when actually there. Wrap signature in div/class.
Diffstat (limited to 'forum/utils')
-rw-r--r-- | forum/utils/posts.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/forum/utils/posts.php b/forum/utils/posts.php index 209d316..e9a5d1d 100644 --- a/forum/utils/posts.php +++ b/forum/utils/posts.php @@ -69,7 +69,12 @@ class Post { if(!$client_is_mobile_device) echo "Date: "; echo date("j. M Y - G:i", $this->date) . "</div>\n"; echo $indent . " <div class=\"message\">\n"; - echo parse($this->message . "\n------\n" . $user->signature, $indent . " ") . "\n"; + echo parse($this->message, $indent . " ") . "\n"; + if($user->signature != "\n " && $user->signature != "") { + echo $indent . " <div class=\"signature\">\n"; + echo parse("\n------------------\n" . $user->signature, $indent . " ") . "\n"; + echo $indent . " </div>\n"; + } echo $indent . " </div>\n"; echo $indent . " <div class=\"buttons\">\n"; |