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
|
// 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);
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue