]> git.mjollnir.org Git - moodle.git/commitdiff
Get rid of old navigation stuff (to finish yet) and use OUTPUT
authorDavid Mudrak <david.mudrak@gmail.com>
Mon, 4 Jan 2010 17:56:44 +0000 (17:56 +0000)
committerDavid Mudrak <david.mudrak@gmail.com>
Mon, 4 Jan 2010 17:56:44 +0000 (17:56 +0000)
mod/workshop/editform.php

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