Breadcrumbs: mod/exercise changes
- Modified to use build_navigation() for breadcrumb generation. Author: Matt Clarkson <[email protected]>
This commit is contained in:
@@ -62,9 +62,13 @@
|
||||
$strassessments = get_string("assessments", "exercise");
|
||||
|
||||
// ... print the header and...
|
||||
print_header_simple(format_string($exercise->name), "",
|
||||
"<a href=\"index.php?id=$course->id\">$strexercises</a> ->
|
||||
<a href=\"view.php?id=$cm->id\">".format_string($exercise->name,true)."</a> -> $strassessments",
|
||||
$crumbs[] = array('name' => $strexercises, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
$crumbs[] = array('name' => format_string($exercise->name), 'link' => "view.php?id=$cm->id", 'type' => 'activityinstance');
|
||||
$crumbs[] = array('name' => $strassessments, 'link' => '', 'type' => 'title');
|
||||
|
||||
$navigation = build_navigation($crumbs, $course);
|
||||
|
||||
print_header_simple(format_string($exercise->name), "", $navigation,
|
||||
"", "", true);
|
||||
|
||||
//...get the action
|
||||
|
||||
@@ -23,8 +23,11 @@
|
||||
$strgrade = get_string("grade");
|
||||
$strdeadline = get_string("deadline", "exercise");
|
||||
$strsubmitted = get_string("submitted", "assignment");
|
||||
|
||||
print_header_simple("$strexercises", "", "$strexercises", "", "", true, "", navmenu($course));
|
||||
|
||||
$crumbs[] = array('name' => $strexercises, 'link' => '', 'type' => 'activity');
|
||||
$navigation = build_navigation($crumbs, $course);
|
||||
|
||||
print_header_simple("$strexercises", "", $navigation, "", "", true, "", navmenu($course));
|
||||
|
||||
if (! $exercises = get_all_instances_in_course("exercise", $course)) {
|
||||
notice("There are no exercises", "../../course/view.php?id=$course->id");
|
||||
|
||||
@@ -50,9 +50,12 @@
|
||||
$strsubmissions = get_string("submissions", "exercise");
|
||||
|
||||
// ... print the header and...
|
||||
print_header_simple(format_string($exercise->name), "",
|
||||
"<a href=\"index.php?id=$course->id\">$strexercises</a> ->
|
||||
<a href=\"view.php?id=$cm->id\">".format_string($exercise->name,true)."</a> -> $strsubmissions",
|
||||
$crumbs[] = array('name' => $strexercises, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
$crumbs[] = array('name' => format_string($exercise->name), 'link' => "view.php?id=$cm->id", 'type' => 'activityinstance');
|
||||
$crumbs[] = array('name' => $strsubmissions, 'link' => '', 'type' => 'title');
|
||||
|
||||
$navigation = build_navigation($crumbs, $course);
|
||||
print_header_simple(format_string($exercise->name), "", $navigation,
|
||||
"", "", true);
|
||||
|
||||
|
||||
|
||||
@@ -28,9 +28,12 @@
|
||||
$strexercise = get_string("modulename", "exercise");
|
||||
$strupload = get_string("upload");
|
||||
|
||||
print_header_simple(format_string($exercise->name)." : $strupload", "",
|
||||
"<a href=\"index.php?id=$course->id\">$strexercises</a> ->
|
||||
<a href=\"view.php?id=$cm->id\">".format_string($exercise->name,true)."</a> -> $strupload",
|
||||
$crumbs[] = array('name' => $strexercises, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
$crumbs[] = array('name' => format_string($exercise->name), 'link' => "view.php?id=$cm->id", 'type' => 'activityinstance');
|
||||
$crumbs[] = array('name' => $strupload, 'link' => '', 'type' => 'title');
|
||||
$navigation = build_navigation($crumbs, $course);
|
||||
|
||||
print_header_simple(format_string($exercise->name)." : $strupload", "", $navigation,
|
||||
"", "", true);
|
||||
|
||||
// check that this is not a "rapid" second submission, caused by using the back button
|
||||
|
||||
@@ -47,8 +47,11 @@
|
||||
$strexercise = get_string("modulename", "exercise");
|
||||
|
||||
// ...display header...
|
||||
print_header_simple(format_string($exercise->name), "",
|
||||
"<a href=\"index.php?id=$course->id\">$strexercises</a> -> ".format_string($exercise->name),
|
||||
$crumbs[] = array('name' => $strexercises, 'link' => "index.php?id=$course->id", 'type' => 'activity');
|
||||
$crumbs[] = array('name' => format_string($exercise->name), 'link' => '', 'type' => 'activityinstance');
|
||||
$navigation = build_navigation($crumbs, $course);
|
||||
|
||||
print_header_simple(format_string($exercise->name), "", $navigation,
|
||||
"", "", true, update_module_button($cm->id, $course->id, $strexercise), navmenu($course, $cm));
|
||||
|
||||
if (isteacher($course->id)) {
|
||||
|
||||
Reference in New Issue
Block a user