Skip to content

Commit

Permalink
MDL-19809 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 90cd54c commit 2d8e042
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions mod/glossary/comments.php
Expand Up @@ -53,10 +53,10 @@

/// comments

print_heading(format_string(get_string('commentson','glossary')." <b>\"$entry->concept\"</b>"));
echo $OUTPUT->heading(format_string(get_string('commentson','glossary')." <b>\"$entry->concept\"</b>"));

if (has_capability('mod/glossary:comment', $context) and $glossary->allowcomments) {
print_heading("<a href=\"comment.php?action=add&amp;entryid=$entry->id\">$straddcomment <img title=\"$straddcomment\" src=\"comment.gif\" class=\"iconsmall\" alt=\"$straddcomment\" /></a>");
echo $OUTPUT->heading("<a href=\"comment.php?action=add&amp;entryid=$entry->id\">$straddcomment <img title=\"$straddcomment\" src=\"comment.gif\" class=\"iconsmall\" alt=\"$straddcomment\" /></a>");
}

if ($comments = $DB->get_records("glossary_comments", array("entryid"=>$entry->id), "timemodified ASC")) {
Expand All @@ -65,7 +65,7 @@
echo '<br />';
}
} else {
print_heading(get_string("nocomments","glossary"));
echo $OUTPUT->heading(get_string("nocomments","glossary"));
}


Expand Down
2 changes: 1 addition & 1 deletion mod/glossary/edit.php
Expand Up @@ -169,7 +169,7 @@
print_header_simple(format_string($glossary->name), "", $navigation, "",
"", true, "", navmenu($course, $cm));

print_heading(format_string($glossary->name));
echo $OUTPUT->heading(format_string($glossary->name));

$mform->display();

Expand Down
2 changes: 1 addition & 1 deletion mod/glossary/export.php
Expand Up @@ -42,7 +42,7 @@
"", "", true, update_module_button($cm->id, $course->id, $strglossary),
navmenu($course, $cm));

print_heading($strexportentries);
echo $OUTPUT->heading($strexportentries);

print_box_start('glossarydisplay generalbox');
?>
Expand Down
2 changes: 1 addition & 1 deletion mod/glossary/formats.php
Expand Up @@ -45,7 +45,7 @@

admin_externalpage_print_header();

print_heading($strmodulename . ': ' . get_string("displayformats","glossary"));
echo $OUTPUT->heading($strmodulename . ': ' . get_string("displayformats","glossary"));

print_simple_box("<center>".get_string("configwarning", 'admin')."</center>", "center", "60%");
echo "<br />";
Expand Down
2 changes: 1 addition & 1 deletion mod/glossary/import.php
Expand Up @@ -49,7 +49,7 @@
"", "", true, update_module_button($cm->id, $course->id, $strglossary),
navmenu($course, $cm));

print_heading($strimportentries);
echo $OUTPUT->heading($strimportentries);

if ( !$step ) {
print_box_start('glossarydisplay generalbox');
Expand Down
3 changes: 2 additions & 1 deletion mod/glossary/lib.php
Expand Up @@ -796,9 +796,10 @@ function glossary_print_entry_default ($entry, $glossary, $cm) {
* @param object $entry
*/
function glossary_print_entry_concept($entry) {
global $OUTPUT;
$options = new object();
$options->para = false;
$text = format_text(print_heading('<span class="nolink">' . $entry->concept . '</span>', '', 3, 'nolink', true), FORMAT_MOODLE, $options);
$text = format_text($OUTPUT->heading('<span class="nolink">' . $entry->concept . '</span>', 3, 'nolink'), FORMAT_MOODLE, $options);
if (!empty($entry->highlight)) {
$text = highlight($entry->highlight, $text);
}
Expand Down
4 changes: 2 additions & 2 deletions mod/glossary/view.php
Expand Up @@ -233,7 +233,7 @@
print_header_simple(format_string($glossary->name), "", $navigation, "", "", true,
update_module_button($cm->id, $course->id, $strglossary), navmenu($course, $cm));

print_heading($strwaitingapproval);
echo $OUTPUT->heading($strwaitingapproval);
} else { /// Print standard header
$navigation = build_navigation('', $cm);
print_header_simple(format_string($glossary->name), "", $navigation, "", "", true,
Expand Down Expand Up @@ -447,7 +447,7 @@
echo '<th >';
}

print_heading($pivottoshow);
echo $OUTPUT->heading($pivottoshow);
echo "</th></tr></table></div>\n";

}
Expand Down

0 comments on commit 2d8e042

Please sign in to comment.