mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 23:42:11 +02:00
mod-resource MDL-19814 Updated print_header_simple and build_navigation to OUTPUT and PAGE equivalents
This commit is contained in:
parent
44391f9fe2
commit
ef8869c7fe
@ -44,8 +44,8 @@ $strlastmodified = get_string('lastmodified');
|
||||
$PAGE->set_url('mod/resource/index.php', array('id' => $course->id));
|
||||
$PAGE->set_title($course->shortname.': '.$strresources);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$navlinks = array(array('name' => $strresources, 'link' => '', 'type' => 'activityinstance'));
|
||||
echo $OUTPUT->header(build_navigation($navlinks), navmenu($course));
|
||||
$PAGE->navbar->add($strresources);
|
||||
echo $OUTPUT->header();
|
||||
|
||||
if (!$resources = get_all_instances_in_course('resource', $course)) {
|
||||
notice(get_string('thereareno', 'moodle', $strresources), "$CFG->wwwroot/course/view.php?id=$course->id");
|
||||
|
@ -264,7 +264,7 @@ function resource_print_header($resource, $cm, $course) {
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->set_activity_record($resource);
|
||||
$PAGE->set_button(update_module_button($cm->id, '', get_string('modulename', 'resource')));
|
||||
echo $OUTPUT->header(build_navigation('', $cm), navmenu($course, $cm));
|
||||
echo $OUTPUT->header();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user