mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +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
|
@ -39,17 +39,16 @@
|
|||
$strmode = get_string($mode, 'forum');
|
||||
$fullname = fullname($user, has_capability('moodle/site:viewfullnames', $syscontext));
|
||||
|
||||
if ($course->id != SITEID) {
|
||||
print_header("$course->shortname: $fullname: $strmode", $course->fullname,
|
||||
"<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> ->
|
||||
<a href=\"$CFG->wwwroot/user/index.php?id=$course->id\">$strparticipants</a> ->
|
||||
<a href=\"$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id\">$fullname</a> ->
|
||||
$strforumposts -> $strmode");
|
||||
} else {
|
||||
print_header("$course->shortname: $fullname: $strmode", $course->fullname,
|
||||
"<a href=\"$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id\">$fullname</a> ->
|
||||
$strforumposts -> $strmode");
|
||||
}
|
||||
// TODO: add new cookie tail here!
|
||||
$crumbs[] = array('name' => $strparticipants, 'link' => "$CFG->wwwroot/user/index.php?id=$course->id", 'type' => 'core');
|
||||
$crumbs[] = array('name' => $fullname, 'link' => "$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id", 'type' => 'title');
|
||||
$crumbs[] = array('name' => $strforumposts, 'link' => '', 'type' => 'title');
|
||||
$crumbs[] = array('name' => $strmode, 'link' => '', 'type' => 'title');
|
||||
|
||||
$navigation = build_navigation($crumbs, $course);
|
||||
|
||||
print_header("$course->shortname: $fullname: $strmode", $course->fullname,$navigation);
|
||||
|
||||
|
||||
$currenttab = $mode;
|
||||
$showroles = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue