From 5094d166b7f93246a90e77c7f1a666cce9bfa918 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 24 Apr 2003 16:47:06 +0000 Subject: [PATCH] Changed to show the hidden choices dimmed (bug #364) --- mod/choice/index.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/mod/choice/index.php b/mod/choice/index.php index 6e043dc742..afcff8d1c0 100644 --- a/mod/choice/index.php +++ b/mod/choice/index.php @@ -69,14 +69,19 @@ } else { $section = ""; } - + + //Calculate the href + if (!$choice->visible) { + //Show dimmed if the mod is hidden + $tt_href = "coursemodule\">$choice->name"; + } else { + //Show normal if the mod is visible + $tt_href = "coursemodule\">$choice->name"; + } if ($course->format == "weeks" || $course->format == "topics") { - $table->data[] = array ($section, - "coursemodule\">$choice->name", - $aa); + $table->data[] = array ($section, $tt_href, $aa); } else { - $table->data[] = array ("coursemodule\">$choice->name", - $aa); + $table->data[] = array ($tt_href, $aa); } } echo "
"; -- 2.39.5