]> git.mjollnir.org Git - moodle.git/commitdiff
theme MDL-19824 Updated print_header and build_navigation to OUTPUT and PAGE equivalents
authorsamhemelryk <samhemelryk>
Mon, 7 Sep 2009 02:43:28 +0000 (02:43 +0000)
committersamhemelryk <samhemelryk>
Mon, 7 Sep 2009 02:43:28 +0000 (02:43 +0000)
theme/preview.php

index 17896852bff826b3d7b4e73e140a7beaab1de6fc..a2404424cdde9ad00b9758e488517a837a7a2b80 100644 (file)
@@ -36,14 +36,13 @@ $PAGE->force_theme($preview);
 $strthemes = get_string('themes');
 $strpreview = get_string('preview');
 
-$navlinks = array();
-$navlinks[] = array('name' => $strthemes, 'link' => null, 'type' => 'misc');
-$navlinks[] = array('name' => $strpreview, 'link' => null, 'type' => 'misc');
-$navigation = build_navigation($navlinks);
-print_header("$SITE->shortname: $strpreview", $SITE->fullname, $navigation);
+$PAGE->navbar->add($strthemes);
+$PAGE->navbar->add($strpreview);
+$PAGE->set_title("$SITE->shortname: $strpreview");
+$PAGE->set_heading($SITE->fullname);
 
+echo $OUTPUT->header();
 echo $OUTPUT->box_start();
 echo $OUTPUT->heading($preview);
 echo $OUTPUT->box_end();
-
 echo $OUTPUT->footer();