|
|
|
@ -826,7 +826,7 @@ class IndexManager { |
|
|
|
|
$total_invitations = $number_of_new_messages_of_friend + $group_pending_invitations; |
|
|
|
|
$cant_msg = ''; |
|
|
|
|
if ($number_of_new_messages > 0) { |
|
|
|
|
$cant_msg = ' <span class="badge badge-warning">'.$number_of_new_messages.'</span>'; |
|
|
|
|
$cant_msg = Display::badge($number_of_new_messages); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$link = ''; |
|
|
|
@ -840,9 +840,9 @@ class IndexManager { |
|
|
|
|
if ($total_invitations == 0) { |
|
|
|
|
$total_invitations = ''; |
|
|
|
|
} else { |
|
|
|
|
$total_invitations = ' <span class="badge badge-warning">'.$total_invitations.'</span>'; |
|
|
|
|
$total_invitations = Display::badge($total_invitations); |
|
|
|
|
} |
|
|
|
|
$profile_content .= '<li><a href="'.api_get_path(WEB_PATH).'main/social/invitations.php">'.get_lang('PendingInvitations').' '.$total_invitations.' </a></li>'; |
|
|
|
|
$profile_content .= '<li><a href="'.api_get_path(WEB_PATH).'main/social/invitations.php">'.get_lang('PendingInvitations').Display::badge($total_invitations).'</a></li>'; |
|
|
|
|
} |
|
|
|
|
$profile_content .= '<li><a href="'.api_get_path(WEB_PATH).'main/auth/profile.php">'.get_lang('EditProfile').'</a></li>'; |
|
|
|
|
} |
|
|
|
@ -864,7 +864,6 @@ class IndexManager { |
|
|
|
|
if (!empty($this->tpl->menu_navigation)) { |
|
|
|
|
$main_navigation_content .= '<ul class="menulist">'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($this->tpl->menu_navigation as $section => $navigation_info) { |
|
|
|
|
$current = $section == $GLOBALS['this_section'] ? ' id="current"' : ''; |
|
|
|
|
$main_navigation_content .= '<li'.$current.'>'; |
|
|
|
|