aboutsummaryrefslogtreecommitdiff
path: root/mod/messages/start.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-05 23:31:53 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-05 23:31:53 +0000
commit69b0ce98af32325161010e636ff3e6b852467a71 (patch)
tree6fb9b25d21c64c762dbda3f0a8d13a15a70e483a /mod/messages/start.php
parent66c958c52d410b02a7634187815bee60f380e646 (diff)
downloadelgg-69b0ce98af32325161010e636ff3e6b852467a71.tar.gz
elgg-69b0ce98af32325161010e636ff3e6b852467a71.tar.bz2
fixed new message indicator
git-svn-id: http://code.elgg.org/elgg/trunk@8603 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/messages/start.php')
-rw-r--r--mod/messages/start.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/mod/messages/start.php b/mod/messages/start.php
index 27b6252eb..76acb36a9 100644
--- a/mod/messages/start.php
+++ b/mod/messages/start.php
@@ -31,15 +31,13 @@ function messages_init() {
));
$class = "elgg-icon messages-icon";
- $text = "&nbsp;";
+ $text = "<span class='$class'></span>";
// get unread messages
$num_messages = (int)messages_count_unread();
if ($num_messages != 0) {
- $class .= " new";
- $text = $num_messages;
+ $text .= "<span class=\"messages-new\">$num_messages</span>";
}
- $text = "<span class='$class'>$text</span>";
elgg_register_menu_item('topbar', array(
'name' => 'messages',