echo $output->render($workshopplus->prepare_example_submission($example)); // show instructions for assessing as thay may contain important information // for evaluating the assessment if (trim($workshopplus->instructreviewers)) { $instructions = file_rewrite_pluginfile_urls($workshopplus->instructreviewers, 'pluginfile.php', $PAGE->context->id, 'mod_workshopplus', 'instructreviewers', 0, workshopplus::instruction_editors_options($PAGE->context)); print_collapsible_region_start('', 'workshopplus-viewlet-instructreviewers', get_string('instructreviewers', 'workshopplus')); echo $output->box(format_text($instructions, $workshopplus->instructreviewersformat, array('overflowdiv' => true)), array('generalbox', 'instructions')); print_collapsible_region_end(); } // extend the current assessment record with user details $assessment = $workshopplus->get_assessment_by_id($assessment->id); if ($canmanage and $assessment->weight == 1) { $options = array('showreviewer' => false, 'showauthor' => false, 'showform' => true); $assessment = $workshopplus->prepare_example_reference_assessment($assessment, $mform, $options); $assessment->title = get_string('assessmentreference', 'workshopplus'); echo $output->render($assessment); } else { if ($isreviewer) { $options = array('showreviewer' => true, 'showauthor' => false, 'showform' => true); $assessment = $workshopplus->prepare_example_assessment($assessment, $mform, $options); $assessment->title = get_string('assessmentbyyourself', 'workshopplus'); echo $output->render($assessment); } else { if ($canmanage) { $options = array('showreviewer' => true, 'showauthor' => false, 'showform' => true, 'showweight' => false); $assessment = $workshopplus->prepare_example_assessment($assessment, $mform, $options); echo $output->render($assessment); } } } echo $output->footer();