From c9169822b2379338d43970a2ef8e947ac8f8ffa2 Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Sun, 4 Sep 2005 22:37:46 +0000 Subject: [PATCH] In course overview in my moodle page, dim hidden courses --- course/lib.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/course/lib.php b/course/lib.php index d3898e0e42e..2dfe9a8ae42 100644 --- a/course/lib.php +++ b/course/lib.php @@ -644,8 +644,13 @@ function print_overview($course) { } $lastaccess = $lastaccess->timeaccess; + $linkcss = ''; + if (empty($course->visible)) { + $linkcss = 'class="dimmed"'; + } + print_simple_box_start("center", '400', '', 5, "coursebox"); - print_heading(''.$course->fullname.''); + print_heading(''.$course->fullname.''); if ($mods = get_course_mods($course->id)) { foreach ($mods as $mod) { if (file_exists(dirname(dirname(__FILE__)).'/mod/'.$mod->modname.'/lib.php')) {