public static function getActivityContentHTML($act) { // Ok, the activity could be an upload OR a wall comment. In the future, the content should // indicate which is which $html = ''; $param = new CParameter($act->params); $action = $param->get('action', false); if ($action == 'events.create') { return CEvents::getEventSummary($act->cid, $param); } else { if ($action == 'event.join' || $action == 'event.attendence.attend') { return CEvents::getEventSummary($act->cid, $param); } else { if ($action == 'event.wall.create' || $action == 'events.wall.create') { $wallid = $param->get('wallid', 0); $html = CWallLibrary::getWallContentSummary($wallid); return $html; } } } return $html; }