';
- $list_path_friends= $list_path_normal_friends = $list_path_parents = array();
+ $social_right_content .= '
';
+ $list_path_normal_friends = $list_path_parents = array();
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = SocialManager::get_friends($user_id, USER_RELATION_TYPE_FRIEND);
$friend_html = '';
$number_of_images = 6;
- $number_friends = 0;
- $list_friends_id = array();
+ $number_friends = 0;
$number_friends = count($friends);
if ($number_friends != 0) {
@@ -380,8 +379,7 @@ if ($show_full_profile) {
if (isset($friends[$k])) {
$friend = $friends[$k];
$name_user = api_get_person_name($friend['firstName'], $friend['lastName']);
- $user_info = api_get_user_info($friend['friend_user_id'], true);
-
+ $user_info = api_get_user_info($friend['friend_user_id'], true);
if ($user_info['user_is_online']) {
$status_icon = Display::div('', array('class' => 'online_user'));
@@ -394,12 +392,7 @@ if ($show_full_profile) {
// the height = 92 must be the sqme in the image_friend_network span style in default.css
$friends_profile = SocialManager::get_picture_user($friend['friend_user_id'], $friend['image'], 92, USER_IMAGE_SIZE_MEDIUM , 'width="85" height="90" ');
-
-
- $friend_html.= '
';
-
-
-
+ $friend_html.= '';
$friend_html.= '
';
$friend_html.= '';
$friend_html.= ''.$name_user.'';
@@ -465,7 +458,7 @@ if ($show_full_profile) {
}
if (count($grid_my_groups) > 0) {
- $social_right_content .= '
';
+ $social_right_content .= '
';
$count_groups = 0;
if (count($results) == 1 ) {
$count_groups = count($results);
@@ -496,7 +489,7 @@ if ($show_full_profile) {
// COURSES LIST
if ( is_array($list) ) {
- $social_right_content .= '
';
+ $social_right_content .= '
';
$social_right_content .= '
'.api_ucfirst(get_lang('MyCourses')).'
';
$social_right_content .= '
';
//Courses whithout sessions
@@ -639,8 +632,10 @@ if ($show_full_profile) {
}
$social_right_content .= '
'; //rounded
}
- $social_right_content .= '
'; // close social-box-main1
+ $social_right_content .= '
'; //
+
}
+$social_right_content .= '
'; //
$tpl = new Template(get_lang('Social'));