Get rid of old navigation stuff (to finish yet) and use OUTPUT

This commit is contained in:
David Mudrak 2010-01-04 17:56:44 +00:00
parent 235b31c887
commit b29f0c7d9d

View file

@ -64,27 +64,11 @@ if ($mform->is_cancelled()) {
}
}
// build the navigation and the header
$navlinks = array();
$navlinks[] = array('name' => get_string('modulenameplural', 'workshop'),
'link' => "index.php?id=$course->id",
'type' => 'activity');
$navlinks[] = array('name' => format_string($workshop->name),
'link' => "view.php?id=$cm->id",
'type' => 'activityinstance');
$navlinks[] = array('name' => get_string('editingassessmentform', 'workshop'),
'link' => '',
'type' => 'title');
$navigation = build_navigation($navlinks);
// Output starts here
// OUTPUT STARTS HERE
// todo use outputlib
print_header_simple(format_string($workshop->name), '', $navigation, '', '', true, '');
print_heading(get_string('strategy' . $workshop->strategy, 'workshop'));
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('strategy' . $workshop->strategy, 'workshop'));
$mform->display();
/// Finish the page
print_footer($course);
echo $OUTPUT->footer();