From 4bf1c3a5e78cd951f5a4698a87093d7062611d50 Mon Sep 17 00:00:00 2001 From: samhemelryk Date: Mon, 7 Sep 2009 02:43:28 +0000 Subject: [PATCH] theme MDL-19824 Updated print_header and build_navigation to OUTPUT and PAGE equivalents --- theme/preview.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/theme/preview.php b/theme/preview.php index 17896852bff..a2404424cdd 100644 --- a/theme/preview.php +++ b/theme/preview.php @@ -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();