mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-10870 All files updated to new build_navigation() method.
This commit is contained in:
parent
5bf243d131
commit
73c24ef80b
12 changed files with 161 additions and 98 deletions
|
@ -15,7 +15,7 @@
|
|||
}
|
||||
// Initialize the session variables
|
||||
calendar_session_vars();
|
||||
|
||||
|
||||
/// If data submitted, then process and store.
|
||||
|
||||
if ($form = data_submitted()) {
|
||||
|
@ -58,13 +58,14 @@
|
|||
$strcalendar = get_string('calendar', 'calendar');
|
||||
$strpreferences = get_string('preferences', 'calendar');
|
||||
|
||||
$navlinks = array();
|
||||
if ($course->id != SITEID) {
|
||||
$navigation = "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> ->
|
||||
<a href=\"view.php\">$strcalendar</a> -> $strpreferences";
|
||||
} else {
|
||||
$navigation = "<a href=\"view.php\">$strcalendar</a> -> $strpreferences";
|
||||
$navlinks[] = array('name' => $course->shortname,
|
||||
'link' => "$CFG->wwwroot/course/view.php?id=$course->id",
|
||||
'type' => 'misc');
|
||||
}
|
||||
|
||||
$navlinks[] = array('name' => $strpreferences, 'link' => 'view.php', 'type' => 'misc');
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header("$site->shortname: $strcalendar: $strpreferences", $strcalendar, $navigation,
|
||||
'', '', true, '', user_login_string($site));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue