mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-7948 some more messaging accessiblity fixes
This commit is contained in:
parent
54bb345831
commit
d53f1cdb82
@ -281,9 +281,13 @@
|
||||
if (empty($allmessages)) {
|
||||
echo get_string('nomessagesfound', 'message');
|
||||
} else {
|
||||
echo '<ul class="messagelist">';
|
||||
foreach ($allmessages as $message) {
|
||||
echo '<li>';
|
||||
echo $message;
|
||||
echo '</li>';
|
||||
}
|
||||
echo '</ul>';
|
||||
if ($playbeep and get_user_preferences('message_beepnewmessage', 0)) {
|
||||
echo '<embed src="bell.wav" autostart="true" hidden="true" name="bell" />';
|
||||
}
|
||||
|
@ -586,6 +586,7 @@ function message_contact_link($userid, $linktype='add', $return=false, $script="
|
||||
|
||||
$command = $linktype.'contact';
|
||||
$string = $str->{$command};
|
||||
$alttext = $text ? '' : $string;
|
||||
$text = $text ? ' '.$string : '';
|
||||
|
||||
switch ($linktype) {
|
||||
@ -606,7 +607,7 @@ function message_contact_link($userid, $linktype='add', $return=false, $script="
|
||||
$output = '<span class="'.$linktype.'">'.
|
||||
'<a href="'.$script.'&'.$command.'='.$userid.
|
||||
'&sesskey='.sesskey().'" title="'.s($string).'">'.
|
||||
'<img src="'.$CFG->pixpath.$icon.'" height="11" width="11" border="0" alt="'.s($string).'" />'.
|
||||
'<img src="'.$CFG->pixpath.$icon.'" height="11" width="11" border="0" alt="'.s($alttext).'" />'.
|
||||
$text.'</a></span>';
|
||||
|
||||
if ($return) {
|
||||
@ -639,7 +640,7 @@ function message_history_link($userid1, $userid2=0, $returnstr=false, $keywords=
|
||||
if ($linktext == 'icon') { // Icon only
|
||||
$fulllink = '<img src="'.$CFG->pixpath.'/t/log.gif" height="11" width="11" border="0" alt="'.$strmessagehistory.'" />';
|
||||
} else if ($linktext == 'both') { // Icon and standard name
|
||||
$fulllink = '<img src="'.$CFG->pixpath.'/t/log.gif" height="11" width="11" border="0" alt="'.$strmessagehistory.'" />';
|
||||
$fulllink = '<img src="'.$CFG->pixpath.'/t/log.gif" height="11" width="11" border="0" alt="" />';
|
||||
$fulllink .= ' '.$strmessagehistory;
|
||||
} else if ($linktext) { // Custom name
|
||||
$fulllink = $linktext;
|
||||
|
Loading…
x
Reference in New Issue
Block a user