コード例 #1
0
ファイル: profile.php プロジェクト: KRCM13/chamilo-lms
         if (empty($value[2])) {
             //if out of any session
             $my_courses .= $value[1];
             $i++;
         }
     }
     $social_course_block .= $my_courses;
     //$social_course_block = Display::panel($my_courses, get_lang('MyCourses'));
 }
 //Block Social Sessions
 if (count($sessionList) > 0) {
     //$social_session_block = $htmlSessionList;
     $social_session_block = $sessionList;
 }
 // Block Social User Feeds
 $user_feeds = SocialManager::get_user_feeds($user_id);
 if (!empty($user_feeds)) {
     $social_rss_block = Display::panel($user_feeds, get_lang('RSSFeeds'));
 }
 // Productions
 $production_list = UserManager::build_production_list($user_id);
 // Images uploaded by course
 $file_list = '';
 if (is_array($course_list_code) && count($course_list_code) > 0) {
     foreach ($course_list_code as $course) {
         $file_list .= UserManager::get_user_upload_files_by_course($user_id, $course['code'], $resourcetype = 'images');
     }
 }
 $count_pending_invitations = 0;
 if (!isset($_GET['u']) || isset($_GET['u']) && $_GET['u'] == api_get_user_id()) {
     $pending_invitations = SocialManager::get_list_invitation_of_friends_by_user_id(api_get_user_id());