give unread PM count a class, so custom themes can make it red if they wish

This commit is contained in:
Shish 2015-04-18 10:30:08 +01:00
parent 1703cd9caa
commit 97a0aa7e4c

View File

@ -85,7 +85,7 @@ class PrivMsg extends Extension {
global $user;
if(!$user->is_anonymous()) {
$count = $this->count_pms($user);
$h_count = $count > 0 ? " ($count)" : "";
$h_count = $count > 0 ? " <span class='unread'>($count)</span>" : "";
$event->add_link("Private Messages$h_count", make_link("user#private-messages"));
}
}