mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Breadcrumbs: mod/forum changes
- Modified to use build_navigation() for breadcrumb generation. Author: Matt Clarkson <mattc@catalyst.net.nz>
This commit is contained in:
parent
ad7767be7a
commit
e3f58dfb4e
10 changed files with 107 additions and 132 deletions
|
@ -50,7 +50,6 @@
|
|||
$cm->course = $course->id;
|
||||
$buttontext = "";
|
||||
}
|
||||
|
||||
} else {
|
||||
error('Must specify a course module or a forum ID');
|
||||
}
|
||||
|
@ -65,9 +64,13 @@
|
|||
|
||||
|
||||
/// Print header.
|
||||
$navigation = "<a href=\"index.php?id=$course->id\">$strforums</a> ->";
|
||||
$crumbs[] = array('name' => $strforums, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
$crumbs[] = array('name' => format_string($forum->name), 'link' => "view.php?f=$forum->id", 'type' => 'activityinstance');
|
||||
|
||||
$navigation = build_navigation($crumbs, $course, $cm);
|
||||
|
||||
print_header_simple(format_string($forum->name), "",
|
||||
"$navigation ".format_string($forum->name), "", "", true, $buttontext, navmenu($course, $cm));
|
||||
$navigation, "", "", true, $buttontext, navmenu($course, $cm));
|
||||
|
||||
|
||||
/// Some capability checks.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue