mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-9615: Correct incorrect use of term breadcrumbs
- $crumbs -> $navlinks Author: Matt Clarkson <mattc@catalyst.net.nz>
This commit is contained in:
parent
7994464178
commit
3b27b0fe21
99 changed files with 471 additions and 547 deletions
|
@ -25,8 +25,8 @@
|
|||
$strreport = get_string("report",'scorm');
|
||||
$strlastmodified = get_string("lastmodified");
|
||||
|
||||
$crumbs[] = array('name' => $strscorms, 'link' => '', 'type' => 'activity');
|
||||
$navigation = build_navigation($crumbs);
|
||||
$navlinks[] = array('name' => $strscorms, 'link' => '', 'type' => 'activity');
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header_simple("$strscorms", "", $navigation,
|
||||
"", "", true, "", navmenu($course));
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
// The module SCORM/AICC activity with the first id is the course
|
||||
$firstscorm = current($scorms);
|
||||
if (!(($course->format == 'scorm') && ($firstscorm->id == $scorm->id))) {
|
||||
$crumbs[] = array('name' => $strscorms, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
$navlinks[] = array('name' => $strscorms, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -59,8 +59,8 @@
|
|||
$pagetitle = strip_tags("$course->shortname: ".format_string($scorm->name));
|
||||
|
||||
if (!$cm->visible and !has_capability('moodle/course:viewhiddenactivities', get_context_instance(CONTEXT_COURSE,$course->id))) {
|
||||
$crumbs[] = array('name' => format_string($scorm->name,true), 'link' => "view.php?id=$cm->id", 'type' => 'activityinstance');
|
||||
$navigation = build_navigation($crumbs);
|
||||
$navlinks[] = array('name' => format_string($scorm->name,true), 'link' => "view.php?id=$cm->id", 'type' => 'activityinstance');
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header($pagetitle, $course->fullname, $navigation,
|
||||
'', '', true, update_module_button($cm->id, $course->id, $strscorm), '', false);
|
||||
|
@ -125,8 +125,8 @@
|
|||
$bodyscript = 'onunload="main.close();"';
|
||||
}
|
||||
|
||||
$crumbs[] = array('name' => format_string($scorm->name,true), 'link' => "view.php?id=$cm->id", 'type' => 'activityinstance');
|
||||
$navigation = build_navigation($crumbs);
|
||||
$navlinks[] = array('name' => format_string($scorm->name,true), 'link' => "view.php?id=$cm->id", 'type' => 'activityinstance');
|
||||
$navigation = build_navigation($navlinks);
|
||||
$exitlink = '<a href="'.$CFG->wwwroot.'/course/view.php?id='.$scorm->course.'" title="'.$strexit.'">'.$strexit.'</a> ';
|
||||
|
||||
print_header($pagetitle, $course->fullname,
|
||||
|
|
|
@ -64,29 +64,29 @@
|
|||
$strattempt = get_string('attempt', 'scorm');
|
||||
$strname = get_string('name');
|
||||
|
||||
$crumbs[] = array('name' => $strscorms, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
$crumbs[] = array('name' => format_string($scorm->name,true), 'link' => "view.php?id=$cm->id", 'type' => 'activityinstance');
|
||||
$navlinks[] = array('name' => $strscorms, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
$navlinks[] = array('name' => format_string($scorm->name,true), 'link' => "view.php?id=$cm->id", 'type' => 'activityinstance');
|
||||
|
||||
if (empty($b)) {
|
||||
if (empty($a)) {
|
||||
$navigation = build_navigation($crumbs);
|
||||
$navigation = build_navigation($navlinks);
|
||||
print_header("$course->shortname: ".format_string($scorm->name), $course->fullname,$navigation,
|
||||
'', '', true);
|
||||
} else {
|
||||
|
||||
$crumbs[] = array('name' => $strreport, 'link' => "report.php?id=$cm->id", 'type' => 'title');
|
||||
$crumbs[] = array('name' => "$strattempt $attempt - ".fullname($userdata), 'link' => '', 'type' => 'title');
|
||||
$navigation = build_navigation($crumbs);
|
||||
$navlinks[] = array('name' => $strreport, 'link' => "report.php?id=$cm->id", 'type' => 'title');
|
||||
$navlinks[] = array('name' => "$strattempt $attempt - ".fullname($userdata), 'link' => '', 'type' => 'title');
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header("$course->shortname: ".format_string($scorm->name), $course->fullname,
|
||||
$navigation, '', '', true);
|
||||
}
|
||||
} else {
|
||||
|
||||
$crumbs[] = array('name' => $strreport, 'link' => "report.php?id=$cm->id", 'type' => 'title');
|
||||
$crumbs[] = array('name' => "$strattempt $attempt - ".fullname($userdata), 'link' => "report.php?a=$a&user=$user&attempt=$attempt", 'type' => 'title');
|
||||
$crumbs[] = array('name' => $sco->title, 'link' => '', 'type' => 'title');
|
||||
$navigation = build_navigation($crumbs);
|
||||
$navlinks[] = array('name' => $strreport, 'link' => "report.php?id=$cm->id", 'type' => 'title');
|
||||
$navlinks[] = array('name' => "$strattempt $attempt - ".fullname($userdata), 'link' => "report.php?a=$a&user=$user&attempt=$attempt", 'type' => 'title');
|
||||
$navlinks[] = array('name' => $sco->title, 'link' => '', 'type' => 'title');
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header("$course->shortname: ".format_string($scorm->name), $course->fullname, $navigation,
|
||||
'', '', true);
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
// The module SCORM activity with the least id is the course
|
||||
$firstscorm = current($scorms);
|
||||
if (!(($course->format == 'scorm') && ($firstscorm->id == $scorm->id))) {
|
||||
$crumbs[] = array('name' => $strscorms, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
$navlinks[] = array('name' => $strscorms, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -63,8 +63,8 @@
|
|||
//
|
||||
// Print the page header
|
||||
//
|
||||
$crumbs[] = array('name' => format_string($scorm->name,true), 'link' => "view.php?id=$cm->id", 'type' => 'activityinstance');
|
||||
$navigation = build_navigation($crumbs);
|
||||
$navlinks[] = array('name' => format_string($scorm->name,true), 'link' => "view.php?id=$cm->id", 'type' => 'activityinstance');
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header($pagetitle, $course->fullname, $navigation,
|
||||
'', '', true, update_module_button($cm->id, $course->id, $strscorm), navmenu($course, $cm));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue