From 81cdaada93d733aa27cc7ac7d08e20d8e8bc8673 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 24 Apr 2003 15:25:21 +0000 Subject: [PATCH] Changed to show the hidden resources dimmed (bug #364) --- mod/resource/index.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mod/resource/index.php b/mod/resource/index.php index 1fc59cc6a5..f235040fd6 100644 --- a/mod/resource/index.php +++ b/mod/resource/index.php @@ -58,8 +58,15 @@ } else { $tt = "".userdate($resource->timemodified); } - $table->data[] = array ($tt, "coursemodule\">$resource->name", - text_to_html($resource->summary) ); + if (!$resource->visible) { + //Show dimmed if the mod is hidden + $table->data[] = array ($tt, "coursemodule\">$resource->name", + text_to_html($resource->summary) ); + } else { + //Show normal if the mod is visible + $table->data[] = array ($tt, "coursemodule\">$resource->name", + text_to_html($resource->summary) ); + } } echo "
"; -- 2.39.5