(teacher view). See bug 802.
}
foreach ($attendances as $attendance) {
- $link = "<A HREF=\"view.php?id=$attendance->coursemodule\">$attendance->name</A>";
+ if (!$attendance->visible) {
+ //Show dimmed if the mod is hidden
+ $link = "<A class=\"dimmed\" HREF=\"view.php?id=$attendance->coursemodule\">$attendance->name</A>";
+ } else {
+ //Show normal if the mod is visible
+ $link = "<A HREF=\"view.php?id=$attendance->coursemodule\">$attendance->name</A>";
+ }
if ($course->format == "weeks" or $course->format == "topics") {
$table->data[] = array ($attendance->section, $link);
}
foreach ($chats as $chat) {
- $link = "<a href=\"view.php?id=$chat->coursemodule\">$chat->name</a>";
-
+ if (!$chat->visible) {
+ //Show dimmed if the mod is hidden
+ $link = "<a class=\"dimmed\" href=\"view.php?id=$chat->coursemodule\">$chat->name</a>";
+ } else {
+ //Show normal if the mod is visible
+ $link = "<a href=\"view.php?id=$chat->coursemodule\">$chat->name</a>";
+ }
if ($course->format == "weeks" or $course->format == "topics") {
if ($chat->section) {
$table->data[] = array ($chat->section, $link);
}
foreach ($glossarys as $glossary) {
- $link = "<A HREF=\"view.php?id=$glossary->coursemodule\">$glossary->name</A>";
+ if (!$glossary->visible) {
+ //Show dimmed if the mod is hidden
+ $link = "<A class=\"dimmed\" HREF=\"view.php?id=$glossary->coursemodule\">$glossary->name</A>";
+ } else {
+ //Show normal if the mod is visible
+ $link = "<A HREF=\"view.php?id=$glossary->coursemodule\">$glossary->name</A>";
+ }
if ($course->format == "weeks" or $course->format == "topics") {
$table->data[] = array ($glossary->section, $link);
$submitted = "<FONT COLOR=red>".userdate($submission->timecreated)."</FONT>";
}
$due = userdate($workshop->deadline);
- $link = "<A HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</A><BR>".
- "($submission->title)";
+ if (!$workshop->visible) {
+ //Show dimmed if the mod is hidden
+ $link = "<A class=\"dimmed\" HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</A><BR>".
+ "($submission->title)";
+ } else {
+ //Show normal if the mod is visible
+ $link = "<A HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</A><BR>".
+ "($submission->title)";
+ }
if ($course->format == "weeks" or $course->format == "topics") {
$table->data[] = array ($workshop->section, $link, $due, $submitted);
}
else {
$submitted = get_string("no");
$due = userdate($workshop->deadline);
- $link = "<A HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</A>";
+ if (!$workshop->visible) {
+ //Show dimmed if the mod is hidden
+ $link = "<A class=\"dimmed\" HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</A>";
+ } else {
+ //Show normal if the mod is visible
+ $link = "<A HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</A>";
+ }
if ($course->format == "weeks" or $course->format == "topics") {
$table->data[] = array ($workshop->section, $link, $due, $submitted);
}