// Enable activity completion on page view. $completion = new completion_info($course); $completion->set_module_viewed($cm); // Show header and navigation if ($viewcontext == "box" || $viewcontext == "box_solid") { $PAGE->set_pagelayout('embedded'); $turnitintooltwoview->output_header($cm, $course, $url, '', '', array(), "", "", true, '', ''); } else { $turnitintooltwoview->output_header($cm, $course, $url, $turnitintooltwoassignment->turnitintooltwo->name, $SITE->fullname, array(), "", "", true, $OUTPUT->update_module_button($cm->id, "turnitintooltwo"), ''); // Dropdown to filter by groups. $groupmode = groups_get_activity_groupmode($cm); if ($groupmode) { groups_get_activity_group($cm, true); groups_print_activity_menu($cm, $CFG->wwwroot . '/mod/turnitintooltwo/view.php?id=' . $id . '&do=' . $do); } $turnitintooltwoview->draw_tool_tab_menu($cm, $do); } echo html_writer::start_tag('div', array('class' => 'mod_turnitintooltwo')); // Include the css for if javascript isn't enabled when a student is logged in. if (!$istutor) { $noscriptcss = html_writer::tag('link', '', array("rel" => "stylesheet", "type" => "text/css", "href" => $CFG->wwwroot . "/mod/turnitintooltwo/css/student_noscript.css")); echo html_writer::tag('noscript', $noscriptcss); } if (!is_null($notice)) { echo $turnitintooltwoview->show_notice($notice); } // Show a warning (and hide the rest of the output) if javascript is not enabled while a tutor is logged in. if ($istutor) { echo html_writer::tag('noscript', get_string('noscript', 'turnitintooltwo'), array("class" => "warning")); } // Determine if javascript is required and apply class which will hide/show appropriate content.