';
echo '- '.$data['title'].'
';
echo '- '.$data['description'].'
';
diff --git a/admin/index.php b/admin/index.php
index de39048f052..b1e7043538e 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -121,8 +121,8 @@ if (!core_tables_exist()) {
$strlicense = get_string('license');
$navigation = build_navigation(array(array('name'=>$strlicense, 'link'=>null, 'type'=>'misc')));
print_header($strinstallation.' - Moodle '.$CFG->target_release, $strinstallation, $navigation, '', '', false, ' ', ' ');
- print_heading('Moodle - Modular Object-Oriented Dynamic Learning Environment');
- print_heading(get_string('copyrightnotice'));
+ echo $OUTPUT->heading('Moodle - Modular Object-Oriented Dynamic Learning Environment');
+ echo $OUTPUT->heading(get_string('copyrightnotice'));
$copyrightnotice = text_to_html(get_string('gpl'));
$copyrightnotice = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $copyrightnotice); // extremely ugly validation hack
print_box($copyrightnotice, 'copyrightnotice');
@@ -136,7 +136,7 @@ if (!core_tables_exist()) {
$strcurrentrelease = get_string('currentrelease');
$navigation = build_navigation(array(array('name'=>$strcurrentrelease, 'link'=>null, 'type'=>'misc')));
print_header($strinstallation.' - Moodle '.$CFG->target_release, $strinstallation, $navigation, '', '', false, ' ', ' ');
- print_heading("Moodle $release");
+ echo $OUTPUT->heading("Moodle $release");
$releasenoteslink = get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/en/Release_Notes');
$releasenoteslink = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $releasenoteslink); // extremely ugly validation hack
print_box($releasenoteslink, 'generalbox boxaligncenter boxwidthwide');
@@ -200,7 +200,7 @@ if ($version > $CFG->version) { // upgrade
$strcurrentrelease = get_string('currentrelease');
$navigation = build_navigation(array(array('name'=>$strcurrentrelease, 'link'=>null, 'type'=>'misc')));
print_header($strcurrentrelease, $strcurrentrelease, $navigation, '', '', false, ' ', ' ');
- print_heading("Moodle $release");
+ echo $OUTPUT->heading("Moodle $release");
$releasenoteslink = get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/en/Release_Notes');
$releasenoteslink = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $releasenoteslink); // extremely ugly validation hack
print_box($releasenoteslink);
@@ -225,7 +225,7 @@ if ($version > $CFG->version) { // upgrade
$strplugincheck = get_string('plugincheck');
$navigation = build_navigation(array(array('name'=>$strplugincheck, 'link'=>null, 'type'=>'misc')));
print_header($strplugincheck, $strplugincheck, $navigation, '', '', false, ' ', ' ');
- print_heading($strplugincheck);
+ echo $OUTPUT->heading($strplugincheck);
print_box_start('generalbox', 'notice');
print_string('pluginchecknotice');
print_box_end();
diff --git a/admin/innodb.php b/admin/innodb.php
index 98e7991e295..6f6f9c0930c 100644
--- a/admin/innodb.php
+++ b/admin/innodb.php
@@ -12,7 +12,7 @@
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
admin_externalpage_print_header();
- print_heading('Convert all MySQL tables from MYISAM to InnoDB');
+ echo $OUTPUT->heading('Convert all MySQL tables from MYISAM to InnoDB');
if ($DB->get_dbfamily() != 'mysql') {
notice('This function is for MySQL databases only!', 'index.php');
diff --git a/admin/lang.php b/admin/lang.php
index c6142f6601e..db5b9724ffd 100644
--- a/admin/lang.php
+++ b/admin/lang.php
@@ -323,9 +323,9 @@
if ($totalcounter->missing > 0) {
$totalcounter->missingpercent = sprintf('%02.1f', ($totalcounter->missing / $totalcounter->strings * 100));
- print_heading(get_string('numberofstrings', 'admin', $totalcounter), '', 4);
+ echo $OUTPUT->heading(get_string('numberofstrings', 'admin', $totalcounter), 4);
} else {
- print_heading($strnomissingstrings, '', 4, 'notifysuccess');
+ echo $OUTPUT->heading($strnomissingstrings, 4, 'notifysuccess');
}
if ($m <> '') {
@@ -501,14 +501,14 @@
if (!isset($editable) || $editable) {
if (!file_exists("$saveto/$currentfile")) {
if (!@touch("$saveto/$currentfile")) {
- print_heading(get_string("filemissing", "", "$saveto/$currentfile"), '', 4, 'error');
+ echo $OUTPUT->heading(get_string("filemissing", "", "$saveto/$currentfile"), 4, 'error');
} else {
- print_heading($strfilecreated, '', 4, 'notifysuccess');
+ echo $OUTPUT->heading($strfilecreated, 4, 'notifysuccess');
}
}
if ($currentlang == "en_utf8" && !$uselocal) {
$editable = false;
- print_heading($streditennotallowed, '', 4);
+ echo $OUTPUT->heading($streditennotallowed, 4);
} elseif ($f = fopen("$saveto/$currentfile","r+")) {
$editable = true;
fclose($f);
@@ -684,12 +684,12 @@
if (LANG_DISPLAY_MISSING_LINKS) {
if ($missingcounter > 0) {
- print_heading(get_string('numberofmissingstrings', 'admin', $missingcounter), '', 4);
+ echo $OUTPUT->heading(get_string('numberofmissingstrings', 'admin', $missingcounter), 4);
if ($editable) {
- print_heading(''.$strgotofirst.'', "", 4);
+ echo $OUTPUT->heading(''.$strgotofirst.'', 4);
}
} else {
- print_heading($strnomissingstrings, '', 4, 'notifysuccess');
+ echo $OUTPUT->heading($strnomissingstrings, 4, 'notifysuccess');
}
}
echo $o;
@@ -885,7 +885,7 @@
if (false && $CFG->debugdisplay && debugging('', DEBUG_DEVELOPER) ) {
echo '
';
- print_heading('Debugging info');
+ echo $OUTPUT->heading('Debugging info');
echo '';
print_r($dbg);
print_r("\n\$currentfile = $currentfile");
diff --git a/admin/mnet/access_control.php b/admin/mnet/access_control.php
index 2b8a8e08e2d..ef43d196d53 100644
--- a/admin/mnet/access_control.php
+++ b/admin/mnet/access_control.php
@@ -160,7 +160,7 @@ $acl = $DB->get_records('mnet_sso_access_control', null, "$sort $dir", '*'); //,
$aclcount = $DB->count_records('mnet_sso_access_control');
if (!$acl) {
- print_heading(get_string('noaclentries','mnet'));
+ echo $OUTPUT->heading(get_string('noaclentries','mnet'));
$table = NULL;
} else {
$table->head = $headings;
diff --git a/admin/mnet/delete.html b/admin/mnet/delete.html
index 4ff22fad551..f1523002fc6 100644
--- a/admin/mnet/delete.html
+++ b/admin/mnet/delete.html
@@ -6,7 +6,7 @@ $navlinks[] = array('name' => get_string('deletehost', 'mnet'), 'link' => null,
$navigation = build_navigation($navlinks);
print_header("$site->shortname: $strmnetsettings", "$site->fullname", $navigation);
-print_heading(get_string('mnetsettings', 'mnet'));
+echo $OUTPUT->heading(get_string('mnetsettings', 'mnet'));
?>
diff --git a/admin/mnet/mnet_themes.html b/admin/mnet/mnet_themes.html
index 2e1c4a2e3ab..bdeeaea44bb 100644
--- a/admin/mnet/mnet_themes.html
+++ b/admin/mnet/mnet_themes.html
@@ -1,6 +1,6 @@
heading(get_string('themes'));
$original_theme = fullclone($THEME);
$logurl = $CFG->wwwroot.
'/course/report/log/index.php?chooselog=1&showusers=1&showcourses=1&host_course='.$mnet_peer->id.
diff --git a/admin/modules.php b/admin/modules.php
index 2f125de65c5..09e0f5cd53b 100644
--- a/admin/modules.php
+++ b/admin/modules.php
@@ -72,7 +72,7 @@
if (!empty($delete) and confirm_sesskey()) {
admin_externalpage_print_header();
- print_heading($stractivities);
+ echo $OUTPUT->heading($stractivities);
$strmodulename = get_string("modulename", "$delete");
@@ -179,7 +179,7 @@
}
admin_externalpage_print_header();
- print_heading($stractivities);
+ echo $OUTPUT->heading($stractivities);
/// Get and sort the existing modules
diff --git a/admin/multilangupgrade.php b/admin/multilangupgrade.php
index da5ee8a1bc9..158747ef0a5 100644
--- a/admin/multilangupgrade.php
+++ b/admin/multilangupgrade.php
@@ -12,7 +12,7 @@ $go = optional_param('go', 0, PARAM_BOOL);
###################################################################
admin_externalpage_print_header();
-print_heading(get_string('multilangupgrade', 'admin'));
+echo $OUTPUT->heading(get_string('multilangupgrade', 'admin'));
$strmultilangupgrade = get_String('multilangupgradeinfo', 'admin');
diff --git a/admin/oacleanup.php b/admin/oacleanup.php
index ae3e6923cec..e7e7d9d798a 100644
--- a/admin/oacleanup.php
+++ b/admin/oacleanup.php
@@ -16,10 +16,10 @@ if (!isset($CFG)) {
function online_assignment_cleanup($output=false) {
- global $CFG, $DB;
+ global $CFG, $DB, $OUTPUT;
if ($output) {
- print_heading('Online Assignment Cleanup');
+ echo $OUTPUT->heading('Online Assignment Cleanup');
echo '';
}
@@ -48,7 +48,7 @@ function online_assignment_cleanup($output=false) {
foreach ($courses as $course) {
$fullname = empty($course->fullname) ? 'Course: '.$course->id : $course->fullname;
- if ($output) print_heading($fullname);
+ if ($output) echo $OUTPUT->heading($fullname);
/// retrieve a list of sections beyond what is currently being shown
$sql = "SELECT *
diff --git a/admin/portfolio.php b/admin/portfolio.php
index a7db7142308..af4ccab4f57 100644
--- a/admin/portfolio.php
+++ b/admin/portfolio.php
@@ -62,12 +62,12 @@ if (!empty($edit) || !empty($new)) {
}
$savedstr = get_string('instancesaved', 'portfolio');
admin_externalpage_print_header();
- print_heading($savedstr);
+ echo $OUTPUT->heading($savedstr);
redirect($baseurl, $savedstr, 3);
exit;
} else {
admin_externalpage_print_header();
- print_heading(get_string('configplugin', 'portfolio'));
+ echo $OUTPUT->heading(get_string('configplugin', 'portfolio'));
print_simple_box_start();
$mform->display();
print_simple_box_end();
@@ -94,7 +94,7 @@ if (!empty($edit) || !empty($new)) {
}
if ($instance->delete()) {
$deletedstr = get_string('instancedeleted', 'portfolio');
- print_heading($deletedstr);
+ echo $OUTPUT->heading($deletedstr);
redirect($baseurl, $deletedstr, 3);
} else {
print_error('instancenotdeleted', 'portfolio', $baseurl);
diff --git a/admin/qtypes.php b/admin/qtypes.php
index ae378b8a39d..40ac6c791fc 100644
--- a/admin/qtypes.php
+++ b/admin/qtypes.php
@@ -121,7 +121,7 @@
if (!optional_param('confirm', '', PARAM_BOOL)) {
$qtypename = $QTYPES[$delete]->local_name();
admin_externalpage_print_header();
- print_heading(get_string('deleteqtypeareyousure', 'admin', $qtypename));
+ echo $OUTPUT->heading(get_string('deleteqtypeareyousure', 'admin', $qtypename));
notice_yesno(get_string('deleteqtypeareyousuremessage', 'admin', $qtypename),
admin_url('qtypes.php?delete=' . $delete . '&confirm=1&sesskey=' . sesskey()),
admin_url('qtypes.php'), NULL, NULL, 'post', 'get');
@@ -131,7 +131,7 @@
// Do the deletion.
admin_externalpage_print_header();
- print_heading(get_string('deletingqtype', 'admin', $qtypename));
+ echo $OUTPUT->heading(get_string('deletingqtype', 'admin', $qtypename));
// Delete any configuration records.
if (!unset_all_config_for_plugin('qtype_' . $delete)) {
@@ -158,7 +158,7 @@
/// Print the page heading.
admin_externalpage_print_header();
- print_heading(get_string('manageqtypes', 'admin'));
+ echo $OUTPUT->heading(get_string('manageqtypes', 'admin'));
/// Set up the table.
$table = new flexible_table('qtypeadmintable');
diff --git a/admin/register.php b/admin/register.php
index fc6b62b0b13..9f77f88c9e4 100644
--- a/admin/register.php
+++ b/admin/register.php
@@ -36,7 +36,7 @@
$navlinks[] = array('name' => $strregistration, 'link' => null, 'type' => 'misc');
$navigation = build_navigation($navlinks);
- print_heading($strregistration);
+ echo $OUTPUT->heading($strregistration);
print_simple_box($strregistrationinfo, "center", "70%");
diff --git a/admin/replace.php b/admin/replace.php
index ff145dc2721..2e75a5947b1 100644
--- a/admin/replace.php
+++ b/admin/replace.php
@@ -13,7 +13,7 @@ $replace = optional_param('replace', '', PARAM_RAW);
###################################################################
admin_externalpage_print_header();
-print_heading('Search and replace text throughout the whole database');
+echo $OUTPUT->heading('Search and replace text throughout the whole database');
if (!data_submitted() or !$search or !$replace or !confirm_sesskey()) { /// Print a form
diff --git a/admin/report/backups/index.php b/admin/report/backups/index.php
index ef93e70f0d7..cb077b5673a 100644
--- a/admin/report/backups/index.php
+++ b/admin/report/backups/index.php
@@ -43,7 +43,7 @@
/// Decide when to show last execution logs or detailed logs
/// Lastlog view
if (!$courseid) {
- print_heading($backuploglaststatus);
+ echo $OUTPUT->heading($backuploglaststatus);
print_simple_box_start('center');
/// Now, get every record from backup_courses
$courses = $DB->get_records("backup_courses");
@@ -85,10 +85,10 @@
print_simple_box_end();
/// Detailed View !!
} else {
- print_heading($backuplogdetailed);
+ echo $OUTPUT->heading($backuplogdetailed);
$coursename = $DB->get_field("course", "fullname", array("id"=>"$courseid"));
- print_heading("$strcourse: $coursename");
+ echo $OUTPUT->heading("$strcourse: $coursename");
print_simple_box_start('center');
diff --git a/admin/report/capability/index.php b/admin/report/capability/index.php
index 7256f8b7640..3c701c8f3b1 100644
--- a/admin/report/capability/index.php
+++ b/admin/report/capability/index.php
@@ -71,7 +71,7 @@ if (count($cleanedroleids) == count($allroles)) {
// Print the settings form.
print_box_start('generalbox boxwidthwide boxaligncenter centerpara');
echo '';
- print_heading($reportoptions[$report]);
+ echo $OUTPUT->heading($reportoptions[$report]);
if (!empty($report) && !empty($time)) {
diff --git a/admin/report/questioninstances/index.php b/admin/report/questioninstances/index.php
index d4852422ca4..202fc671152 100644
--- a/admin/report/questioninstances/index.php
+++ b/admin/report/questioninstances/index.php
@@ -30,7 +30,7 @@ foreach ($QTYPES as $qtype) {
// Print the settings form.
print_box_start('generalbox boxwidthwide boxaligncenter centerpara');
echo '