diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-03 17:53:05 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-03 17:53:05 +0000 |
commit | 4766f36a4d74924f21ff329c4318ce4e069ffa04 (patch) | |
tree | 969b84632f2a8b0db79788a8a6db8e41d63e5cb4 /mod/messages/views/default/widgets | |
parent | 57a217fd6b708844407486046a1faa23b46cac08 (diff) | |
download | elgg-4766f36a4d74924f21ff329c4318ce4e069ffa04.tar.gz elgg-4766f36a4d74924f21ff329c4318ce4e069ffa04.tar.bz2 |
Pulled in the interface changes.
git-svn-id: http://code.elgg.org/elgg/trunk@5257 36083f99-b078-4883-b0ff-0f9b5a30f544
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>"; + } + + ?> |