aboutsummaryrefslogtreecommitdiff
path: root/mod/messages/start.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-12-02 07:19:25 -0500
committerCash Costello <cash.costello@gmail.com>2011-12-02 07:22:39 -0500
commit9a63bf008a0b6d7770c1fb3c8687129291bd7265 (patch)
tree16279483b40b150a981a1f90bc722a85e0f0fbf1 /mod/messages/start.php
parent31fe96fa61b1ec489994e8819336fda8746a4386 (diff)
parent3e1698928137fbf651f82e7e784252ea69dffa7b (diff)
downloadelgg-9a63bf008a0b6d7770c1fb3c8687129291bd7265.tar.gz
elgg-9a63bf008a0b6d7770c1fb3c8687129291bd7265.tar.bz2
Merge pull request #99 from ashward/ticket_4170
Fixes #4170: Messages icon on top bar doesn't have a title attribute
Diffstat (limited to 'mod/messages/start.php')
-rw-r--r--mod/messages/start.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/messages/start.php b/mod/messages/start.php
index e4ef4d43a..1a2709324 100644
--- a/mod/messages/start.php
+++ b/mod/messages/start.php
@@ -125,11 +125,13 @@ function messages_notifier() {
if (elgg_is_logged_in()) {
$class = "elgg-icon elgg-icon-mail";
$text = "<span class='$class'></span>";
-
+ $tooltip = elgg_echo("messages");
+
// get unread messages
$num_messages = (int)messages_count_unread();
if ($num_messages != 0) {
$text .= "<span class=\"messages-new\">$num_messages</span>";
+ $tooltip .= " (" . elgg_echo("messages:unreadcount", array($num_messages)) . ")";
}
elgg_register_menu_item('topbar', array(
@@ -137,6 +139,7 @@ function messages_notifier() {
'href' => 'messages/inbox/' . elgg_get_logged_in_user_entity()->username,
'text' => $text,
'priority' => 600,
+ 'title' => $tooltip,
));
}
}