mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
fix for MDL-7436, indicate resource type in the text link.
This commit is contained in:
parent
23ff199c26
commit
78e4f30a72
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user