Skip to content

Commit

Permalink
MDL-19810 Migrated calls to print_heading
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Aug 6, 2009
1 parent 867aeea commit bd9df7b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions mod/hotpot/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>";
Expand Down
7 changes: 4 additions & 3 deletions mod/hotpot/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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");

Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion mod/hotpot/review.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) : '';
Expand Down
2 changes: 1 addition & 1 deletion mod/hotpot/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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))) {
Expand Down

0 comments on commit bd9df7b

Please sign in to comment.