move new messages badge
This commit is contained in:
parent
53a10de5cf
commit
fbdb8ae472
|
@ -9,7 +9,7 @@ function user_unread_messages() {
|
||||||
if (isset($user)) {
|
if (isset($user)) {
|
||||||
$new_messages = sql_num_query("SELECT * FROM `Messages` WHERE isRead='N' AND `RUID`=" . sql_escape($user['UID']));
|
$new_messages = sql_num_query("SELECT * FROM `Messages` WHERE isRead='N' AND `RUID`=" . sql_escape($user['UID']));
|
||||||
if ($new_messages > 0)
|
if ($new_messages > 0)
|
||||||
return '<span class="badge">' . $new_messages . '</span>';
|
return '<span class="badge pull-right">' . $new_messages . '</span>';
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue