mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Breadcrumbs: course admin changes
- Modified to use build_navigation() for breadcrumb generation. Author: Matt Clarkson <mattc@catalyst.net.nz>
This commit is contained in:
parent
d91f99a655
commit
e1d2eb00e2
2 changed files with 20 additions and 12 deletions
|
@ -646,8 +646,7 @@
|
|||
} else {
|
||||
$pageheading = get_string("addinganew", "moodle", $fullmodulename);
|
||||
}
|
||||
$strnav = '';
|
||||
|
||||
|
||||
$CFG->pagepath = 'mod/'.$module->name;
|
||||
if (!empty($type)) {
|
||||
$CFG->pagepath .= '/' . $type;
|
||||
|
@ -672,10 +671,12 @@
|
|||
} else {
|
||||
$focuscursor = "form.name";
|
||||
}
|
||||
|
||||
print_header_simple($streditinga, '',
|
||||
"<a href=\"$CFG->wwwroot/mod/$module->name/index.php?id=$course->id\">$strmodulenameplural</a> ->
|
||||
$strnav $streditinga", $focuscursor, "", false);
|
||||
|
||||
$crumbs[] = array('name' => $strmodulenameplural, 'link' => "$CFG->wwwroot/mod/$module->name/index.php?id=$course->id", 'type' => 'activity');
|
||||
$crumbs[] = array('name' => $streditinga, 'link' => '', 'type' => 'action');
|
||||
$navigation = build_navigation($crumbs, $course);
|
||||
|
||||
print_header_simple($streditinga, '', $navigation, $focuscursor, "", false);
|
||||
|
||||
if (!empty($cm->id)) {
|
||||
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue