mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Get rid of old navigation stuff (to finish yet) and use OUTPUT
This commit is contained in:
parent
235b31c887
commit
b29f0c7d9d
1 changed files with 4 additions and 20 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue