MDL-20447 - add heading to the page

This commit is contained in:
Rossiani Wijaya
2010-05-28 02:30:14 +00:00
parent 66b250fd9d
commit 91bc072a31
7 changed files with 18 additions and 8 deletions
+5 -1
View File
@@ -88,9 +88,13 @@ $bodytag .= 'if (typeof('.$editorobj.') != \'undefined\') { currEditor = '.$edit
$bodytag .= 'currTextarea = document.getElementById(\'tempform\').template;';
$bodytag .= '" ';
$PAGE->navbar->add(get_string($mode,'data'));
if ($mode == 'singletemplate') {
$PAGE->navbar->add(get_string($mode,'data'));
}
$PAGE->requires->js('/mod/data/data.js');
$PAGE->set_title($data->name);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($data->name));