|
|
|
@ -599,6 +599,7 @@ class SocialManager extends UserManager |
|
|
|
|
|
|
|
|
|
$skillBlock = $template->get_template('social/avatar_block.tpl'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $template->fetch($skillBlock); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -753,7 +754,7 @@ class SocialManager extends UserManager |
|
|
|
|
|
|
|
|
|
// Chat |
|
|
|
|
//@todo check if user is online and if it's a friend to show the chat link |
|
|
|
|
if (api_is_global_chat_enabled()) { |
|
|
|
|
/*if (api_is_global_chat_enabled()) { |
|
|
|
|
$user_name = $user_info['complete_name']; |
|
|
|
|
|
|
|
|
|
if ($user_friend_relation == USER_RELATION_TYPE_FRIEND) { |
|
|
|
@ -787,7 +788,7 @@ class SocialManager extends UserManager |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
$html .= '</ul></div></div>'; |
|
|
|
|
|
|
|
|
@ -1537,6 +1538,8 @@ class SocialManager extends UserManager |
|
|
|
|
|
|
|
|
|
$template->assign('gamification_points', $gamificationPoints); |
|
|
|
|
} |
|
|
|
|
$chatEnabled = api_is_global_chat_enabled(); |
|
|
|
|
$templateName = $template->assign('chat_enabled', $chatEnabled); |
|
|
|
|
|
|
|
|
|
$templateName = $template->get_template('social/user_block.tpl'); |
|
|
|
|
|
|
|
|
|