Skip to content

Commit

Permalink
MDL-7948 some more messaging accessiblity fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Dec 30, 2006
1 parent 54bb345 commit d53f1cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions message/discussion.php
Original file line number Diff line number Diff line change
Expand Up @@ -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" />';
}
Expand Down
5 changes: 3 additions & 2 deletions message/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? '&nbsp;'.$string : '';

switch ($linktype) {
Expand All @@ -606,7 +607,7 @@ function message_contact_link($userid, $linktype='add', $return=false, $script="
$output = '<span class="'.$linktype.'">'.
'<a href="'.$script.'&amp;'.$command.'='.$userid.
'&amp;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) {
Expand Down Expand Up @@ -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 .= '&nbsp;'.$strmessagehistory;
} else if ($linktext) { // Custom name
$fulllink = $linktext;
Expand Down

0 comments on commit d53f1cd

Please sign in to comment.