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 // Output starts here
$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 echo $OUTPUT->header();
// todo use outputlib echo $OUTPUT->heading(get_string('strategy' . $workshop->strategy, 'workshop'));
print_header_simple(format_string($workshop->name), '', $navigation, '', '', true, '');
print_heading(get_string('strategy' . $workshop->strategy, 'workshop'));
$mform->display(); $mform->display();
/// Finish the page echo $OUTPUT->footer();
print_footer($course);