print_simple_box_start("center", "60%", "#FFAAAA", 20, "noticebox");
if (count($regrade_hotpots)==1) {
- print_heading(get_string('regradecheck', 'hotpot', $regrade_hotpots[$regrade]->name));
+ echo $OUTPUT->heading(get_string('regradecheck', 'hotpot', $regrade_hotpots[$regrade]->name));
} else {
- print_heading(get_string('regradecheck', 'hotpot', ''));
+ echo $OUTPUT->heading(get_string('regradecheck', 'hotpot', ''));
print '<ul>';
foreach ($regrade_hotpots as $hotpot) {
print "<li>$hotpot->name</li>";
$user_ids = join(',', array_keys($users));
}
if (empty($user_ids)) {
- print_heading(get_string('nousersyet'));
+ echo $OUTPUT->heading(get_string('nousersyet'));
print_footer($course);
exit;
}
// stop now if no attempts were found
if (empty($attempts)) {
- print_heading(get_string('noattemptstoshow','quiz'));
+ echo $OUTPUT->heading(get_string('noattemptstoshow','quiz'));
print_footer($course);
exit;
}
/// report selector menus
function hotpot_print_report_heading(&$course, &$cm, &$hotpot, &$mode) {
+ global $OUTPUT;
$strmodulenameplural = get_string("modulenameplural", "hotpot");
$strmodulename = get_string("modulename", "hotpot");
echo '<div class="allcoursegrades"><a href="' . $CFG->wwwroot . '/grade/report/grader/index.php?id=' . $course->id . '">'
. get_string('seeallcoursegrades', 'grades') . '</a></div>';
}
- print_heading($hotpot->name);
+ echo $OUTPUT->heading($hotpot->name);
}
function hotpot_print_report_selector(&$course, &$hotpot, &$formdata) {
global $CFG, $DB;
$button = update_module_button($cm->id, $course->id, $strmodulename);
print_header($title, $heading, $navigation, "", "", true, $button, navmenu($course, $cm));
print '<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>'; // for overlib
- print_heading($hotpot->name);
+ echo $OUTPUT->heading($hotpot->name);
hotpot_print_attempt_summary($hotpot, $attempt);
hotpot_print_review_buttons($course, $hotpot, $attempt, $context);
$action = has_capability('mod/hotpot:viewreport',$context) ? optional_param('action', '', PARAM_ALPHA) : '';
// get password
} else if ($hotpot->password && empty($hppassword)) {
print_header($title, $heading, $navigation, "", "", true, $button, $loggedinas, false);
- print_heading($hotpot->name);
+ echo $OUTPUT->heading($hotpot->name);
$boxalign = 'center';
$boxwidth = 500;
if (trim(strip_tags($hotpot->summary))) {