$strimportquestions = get_string("importquestions", "lesson");
$strlessons = get_string("modulenameplural", "lesson");
- $navigation = build_navigation($strimportquestions, $cm);
- print_header_simple("$strimportquestions", " $strimportquestions", $navigation);
+ $PAGE->navbar->add($strimportquestions);
+ $PAGE->set_title($strimportquestions);
+ $PAGE->set_heading($strimportquestions);
+ echo $OUTPUT->header();
if ($form = data_submitted()) { /// Filename
$strimportppt = get_string("importppt", "lesson");
$strlessons = get_string("modulenameplural", "lesson");
- $navigation = build_navigation($strimportppt, $cm);
- print_header_simple("$strimportppt", " $strimportppt", $navigation);
+ $PAGE->navbar->add($strimportppt);
+ $PAGE->set_title($strimportppt);
+ $PAGE->set_heading($strimportppt);
+ echo $OUTPUT->header();
if ($form = data_submitted()) { /// Filename
/// Print the header
- $navlinks = array();
- $navlinks[] = array('name' => $strlessons, 'link' => '', 'type' => 'activity');
-
- $navigation = build_navigation($navlinks);
-
- print_header("$course->shortname: $strlessons", $course->fullname, $navigation, "", "", true, "", navmenu($course));
+ $PAGE->navbar->add($strlessons);
+ $PAGE->set_title("$course->shortname: $strlessons");
+ $PAGE->set_heading($course->fullname);
+ echo $OUTPUT->header();
/// Get all the appropriate data
}
/// Header setup
- $navigation = build_navigation(array(), $cm);
- print_header($title, $course->fullname, $navigation, '', '', true, $buttons, navmenu($course, $cm));
+ $PAGE->set_title($title);
+ $PAGE->set_heading($course->fullname);
+ $PAGE->set_button($buttons);
+ echo $OUTPUT->header();
if (has_capability('mod/lesson:manage', $context)) {
print_heading_with_help($activityname, 'overview', 'lesson');
$mimetype = mimeinfo("type", $lesson->mediafile);
if (!is_url($lesson->mediafile) and !in_array($mimetype, array('text/plain', 'text/html'))) {
- print_header($course->shortname);
+ $PAGE->set_title($course->shortname);
+ echo $OUTPUT->header();
}
if ($printclose) { // this is for framesets
if ($lesson->mediaclose) {
- print_header($course->shortname);
+ $PAGE->set_title($course->shortname);
+ echo $OUTPUT->header();
echo '<div class="lessonmediafilecontrol">
<form>
<div>