diff options
Diffstat (limited to 'mod/messages/views/default/widgets')
-rw-r--r-- | mod/messages/views/default/widgets/messages/edit.php | 0 | ||||
-rw-r--r-- | mod/messages/views/default/widgets/messages/view.php | 13 |
2 files changed, 13 insertions, 0 deletions
diff --git a/mod/messages/views/default/widgets/messages/edit.php b/mod/messages/views/default/widgets/messages/edit.php new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/mod/messages/views/default/widgets/messages/edit.php diff --git a/mod/messages/views/default/widgets/messages/view.php b/mod/messages/views/default/widgets/messages/view.php new file mode 100644 index 000000000..e4d138562 --- /dev/null +++ b/mod/messages/views/default/widgets/messages/view.php @@ -0,0 +1,13 @@ + + <?php + + $num_messages = count_unread_messages(); + + if($num_messages == 0) + echo "<h3 class=\"new_messages_count\">You have no new messages.</h3>"; + else { + echo "<h3 class=\"new_messages_count\">" . $num_messages . " new message(s).</h3>"; + echo "<a href=\"" . $vars['url'] . "pg/messages/" . $_SESSION['user']->username ."\">check them out</a>"; + } + + ?> |