fix for MDL-7436, indicate resource type in the text link.

This commit is contained in:
toyomoyo 2006-11-28 02:22:17 +00:00
parent 23ff199c26
commit 78e4f30a72

View File

@ -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 '<img src="'.$icon.'"'.
' class="activityicon" alt="'.$mod->modfullname.'" />'.
' <a title="'.$mod->modfullname.'" '.$linkcss.' '.$extra.
' href="'.$CFG->wwwroot.'/mod/'.$mod->modname.'/view.php?id='.$mod->id.'">'.
$instancename.'</a>';
$typestring.$instancename.'</a>';
}
if ($usetracking && $mod->modname == 'forum') {
$groupmode = groupmode($course, $mod);