course-combolist MDL-24300 Added CSS to dim categories on the combolist.
[moodle.git] / course / renderer.php
index 9c90eac..777487b 100644 (file)
@@ -98,6 +98,9 @@ class core_course_renderer extends plugin_renderer_base {
         if ($category->parent != 0) {
             $classes[] = 'subcategory';
         }
+        if (empty($category->visible)) {
+            $classes[] = 'dimmed_category';
+        }
         if ($hassubcategories || $hascourses) {
             $classes[] = 'with_children';
             if ($depth > 1) {