MDL-19810 Migrated calls to print_heading
This commit is contained in:
@@ -99,9 +99,9 @@
|
||||
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>";
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
$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;
|
||||
}
|
||||
@@ -249,7 +249,7 @@
|
||||
|
||||
// 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;
|
||||
}
|
||||
@@ -423,6 +423,7 @@ function hotpot_delete_selected_attempts(&$hotpot, $del) {
|
||||
/// report selector menus
|
||||
|
||||
function hotpot_print_report_heading(&$course, &$cm, &$hotpot, &$mode) {
|
||||
global $OUTPUT;
|
||||
$strmodulenameplural = get_string("modulenameplural", "hotpot");
|
||||
$strmodulename = get_string("modulename", "hotpot");
|
||||
|
||||
@@ -449,7 +450,7 @@ function hotpot_print_report_heading(&$course, &$cm, &$hotpot, &$mode) {
|
||||
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;
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
$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) : '';
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@
|
||||
// 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))) {
|
||||
|
||||
Reference in New Issue
Block a user