From: toyomoyo Date: Tue, 28 Nov 2006 02:22:17 +0000 (+0000) Subject: fix for MDL-7436, indicate resource type in the text link. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=78e4f30a722ca4b09aa8e165ac488ea55f165b65;p=moodle.git fix for MDL-7436, indicate resource type in the text link. --- diff --git a/course/lib.php b/course/lib.php index a23096959c..3bcfd8a2b7 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1158,12 +1158,19 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, } } else { // Normal activity + + if ($USER->screenreader) { + $typestring = '('.get_string('modulename',$mod->modname).') '; + } else { + $typestring = ''; + } + $linkcss = $mod->visible ? "" : " class=\"dimmed\" "; echo ''.$mod->modfullname.''. ' '. - $instancename.''; + $typestring.$instancename.''; } if ($usetracking && $mod->modname == 'forum') { $groupmode = groupmode($course, $mod);