$peer[$currentuserid]->lastname = $allocation->authorlastname;
$peer[$currentuserid]->picture = $allocation->authorpicture;
$peer[$currentuserid]->imagealt = $allocation->authorimagealt;
- $peer[$currentuserid]->avatar = print_user_picture($peer[$currentuserid],
- $this->workshop->course, null, 16, true);
$peer[$currentuserid]->submissionid = $allocation->submissionid;
$peer[$currentuserid]->submissiontitle = $allocation->submissiontitle;
$peer[$currentuserid]->submissiongrade = $allocation->submissiongrade;
* @return string HTML code
*/
protected function participant(stdClass $user) {
- $o = print_user_picture($user, $this->page->course->id, null, 35, true);
+ $o = $this->output->user_picture($user, $this->page->course->id);
$o .= fullname($user);
$o .= $this->output->container_start(array('submission'));
if (is_null($user->submissionid)) {
$o .= $this->output->output_start_tag('ul', array());
foreach ($user->reviewedby as $reviewerid => $assessmentid) {
$o .= $this->output->output_start_tag('li', array());
- $o .= print_user_picture($peers[$reviewerid], $this->page->course->id, null, 16, true);
+ $o .= $this->output->user_picture($peers[$reviewerid], $this->page->course->id); // todo display smaller
$o .= fullname($peers[$reviewerid]);
$handler = $this->page->url->out_action(array('mode' => 'del', 'what' => $assessmentid));
$o .= $this->output->output_start_tag('ul', array());
foreach ($user->reviewerof as $authorid => $assessmentid) {
$o .= $this->output->output_start_tag('li', array());
- $o .= print_user_picture($peers[$authorid], $this->page->course->id, null, 16, true);
+ $o .= $this->output->user_picture($peers[$authorid], $this->page->course->id); // todo display smaller
$o .= fullname($peers[$authorid]);
// delete