<p><?php print_string("paymentrequired") ?></p>
<p><b><?php echo get_string("cost").": $CFG->enrol_currency $cost"; ?></b></p>
-<p><img alt="PayPal" src="https://www.paypal.com/en_US/i/logo/PayPal_mark_60x38.gif" /></p>
+<p><img alt="<?php print_string('paypalaccepted', 'enrol_paypal') ?>" src="https://www.paypal.com/en_US/i/logo/PayPal_mark_60x38.gif" /></p>
<p><?php print_string("paymentinstant") ?></p>
<?php
$paypalurl = empty($CFG->usepaypalsandbox) ? 'https://www.paypal.com/cgi-bin/webscr' : 'https://www.sandbox.paypal.com/cgi-bin/webscr';
function printfilelist($filelist) {
global $CFG, $basedir;
+ $strfolder = get_string("folder");
+ $strfile = get_string("file");
+
foreach ($filelist as $file) {
if (is_dir($basedir.'/'.$file)) {
- echo "<img src=\"$CFG->pixpath/f/folder.gif\" height=\"16\" width=\"16\" alt=\"\" /> $file<br />";
+ echo "<img src=\"$CFG->pixpath/f/folder.gif\" height=\"16\" width=\"16\" alt=\"$strfolder\" /> $file<br />";
$subfilelist = array();
$currdir = opendir($basedir.'/'.$file);
while (false !== ($subfile = readdir($currdir))) {
} else {
$icon = mimeinfo("icon", $file);
- echo "<img src=\"$CFG->pixpath/f/$icon\" height=\"16\" width=\"16\" alt=\"\" /> $file<br />";
+ echo "<img src=\"$CFG->pixpath/f/$icon\" height=\"16\" width=\"16\" alt=\"$strfile\" /> $file<br />";
}
}
}
$strunzip = get_string("unzip");
$strlist = get_string("list");
$strrestore= get_string("restore");
- $strchoose = get_string("choose");
+ $strchoose = get_string("choose");
+ $strfolder = get_string("folder");
+ $strfile = get_string("file");
echo "<form action=\"index.php\" method=\"post\" name=\"dirform\">";
if ($dir == '..') {
$fileurl = rawurlencode(dirname($wdir));
print_cell();
- print_cell('left', '<a href="index.php?id='.$id.'&wdir='.$fileurl.'&choose='.$choose.'"><img src="'.$CFG->pixpath.'/f/parent.gif" height="16" width="16" alt="'.get_string('parentfolder').'" /></a> <a href="index.php?id='.$id.'&wdir='.$fileurl.'&choose='.$choose.'">'.get_string('parentfolder').'</a>', 'name');
+ // alt attribute intentionally empty to prevent repetition in screen reader
+ print_cell('left', '<a href="index.php?id='.$id.'&wdir='.$fileurl.'&choose='.$choose.'"><img src="'.$CFG->pixpath.'/f/parent.gif" height="16" width="16" alt=" " /> '.get_string('parentfolder').'</a>', 'name');
print_cell();
print_cell();
print_cell();
$filesize = display_size(get_directory_size("$fullpath/$dir"));
$filedate = userdate(filemtime($filename), "%d %b %Y, %I:%M %p");
print_cell("center", "<input type=\"checkbox\" name=\"file$count\" value=\"$fileurl\" />", 'checkbox');
- print_cell("left", "<a href=\"index.php?id=$id&wdir=$fileurl&choose=$choose\"><img src=\"$CFG->pixpath/f/folder.gif\" height=\"16\" width=\"16\" border=\"0\" alt=\"Folder\" /></a> <a href=\"index.php?id=$id&wdir=$fileurl&choose=$choose\">".htmlspecialchars($dir)."</a>", 'name');
+ print_cell("left", "<a href=\"index.php?id=$id&wdir=$fileurl&choose=$choose\"><img src=\"$CFG->pixpath/f/folder.gif\" height=\"16\" width=\"16\" border=\"0\" alt=\"$strfolder\" /> ".htmlspecialchars($dir)."</a>", 'name');
print_cell("right", $filesize, 'size');
print_cell("right", $filedate, 'date');
print_cell("right", "<a href=\"index.php?id=$id&wdir=$wdir&file=$filesafe&action=rename&choose=$choose\">$strrename</a>", 'commands');
$ffurl = str_replace('//', '/', "/file.php?file=/$id/$fileurl");
}
link_to_popup_window ($ffurl, "display",
- "<img src=\"$CFG->pixpath/f/$icon\" height=\"16\" width=\"16\" border=\"0\" alt=\"File\" />",
- 480, 640);
- echo ' ';
- link_to_popup_window ($ffurl, "display",
- htmlspecialchars($file),
+ "<img src=\"$CFG->pixpath/f/$icon\" height=\"16\" width=\"16\" border=\"0\" alt=\"$strfile\" /> ".htmlspecialchars($file),
480, 640);
echo "</td>";
global $CFG;
$output = "";
+ $origtex = $tex;
if ($tex) {
$tex = str_replace('&','&',$tex);
$tex = str_replace('<','<',$tex);
$output .= urlencode($tex) . "', 'popup', 'menubar=0,location=0,scrollbars,";
$output .= "resizable,width=300,height=240', 0);\">";
}
- $output .= "<img border=\"0\" $title $height $width alt=\"\" src=\"";
+ $output .= "<img border=\"0\" $title $height $width alt=\"".s($origtex)."\" src=\"";
if ($CFG->slasharguments) { // Use this method if possible for better caching
$output .= "$CFG->wwwroot/$CFG->algebrafilterdir/pix.php/$imagefile";
} else {
global $CFG;
$output = "";
+ $origtex = $tex;
if ($tex) {
$tex = str_replace('&','&',$tex);
$tex = str_replace('<','<',$tex);
$output .= urlencode($tex) . "', 'popup', 'menubar=0,location=0,scrollbars,";
$output .= "resizable,width=300,height=240', 0);\">";
}
- $output .= "<img class=\"texrender\" border=\"0\" $title $height $width alt=\"\" src=\"";
+ $output .= "<img class=\"texrender\" border=\"0\" $title $height $width alt=\"".s($origtex)."\" src=\"";
if ($CFG->slasharguments) { // Use this method if possible for better caching
$output .= "$CFG->wwwroot/$CFG->texfilterdir/pix.php/$imagefile";
} else {
$string['costorkey'] = 'Please choose one of the following methods of enrolment.';
$string['description'] = 'The PayPal module allows you to set up paid courses. If the cost for any course is zero, then students are not asked to pay for entry. There is a site-wide cost that you set here as a default for the whole site and then a course setting that you can set for each course individually. The course cost overrides the site cost.';
$string['enrolname'] = 'PayPal';
+$string['paypalaccepted'] = 'PayPal payments accepted';
$string['sendpaymentbutton'] = 'Send payment via PayPal';
?>
$string['firstdayofweek'] = '0';
$string['firstname'] = 'First name';
$string['firsttime'] = 'Is this your first time here?';
+$string['folder'] = 'Folder';
$string['folderclosed'] = 'Closed folder';
$string['folderopened'] = 'Opened folder';
$string['followingoptional'] = 'The following items are optional';
if($this->is_collapsible) {
if(!empty($this->sess->collapse[$column])) {
- $icon_hide = ' <a href="'.$this->baseurl.$this->request[TABLE_VAR_SHOW].'='.$column.'"><img src="'.$CFG->pixpath.'/t/switch_plus.gif" title="'.get_string('show').' '.$this->headers[$index].'" /></a>';
+ $icon_hide = ' <a href="'.$this->baseurl.$this->request[TABLE_VAR_SHOW].'='.$column.'"><img src="'.$CFG->pixpath.'/t/switch_plus.gif" title="'.get_string('show').' '.$this->headers[$index].'" alt="'.get_string('show').'" /></a>';
}
else if($this->headers[$index] !== NULL) {
- $icon_hide = ' <a href="'.$this->baseurl.$this->request[TABLE_VAR_HIDE].'='.$column.'"><img src="'.$CFG->pixpath.'/t/switch_minus.gif" title="'.get_string('hide').' '.$this->headers[$index].'" /></a>';
+ $icon_hide = ' <a href="'.$this->baseurl.$this->request[TABLE_VAR_HIDE].'='.$column.'"><img src="'.$CFG->pixpath.'/t/switch_minus.gif" title="'.get_string('hide').' '.$this->headers[$index].'" alt="'.get_string('hide').'" /></a>';
}
}
$icon_sort_first = $icon_sort_last = '';
if($primary_sort_column == 'firstname') {
if($primary_sort_order == SORT_ASC) {
- $icon_sort_first = ' <img src="'.$CFG->pixpath.'/t/down.gif" />';
+ $icon_sort_first = ' <img src="'.$CFG->pixpath.'/t/down.gif" alt="'.get_string('asc').'" />';
}
else {
- $icon_sort_first = ' <img src="'.$CFG->pixpath.'/t/up.gif" />';
+ $icon_sort_first = ' <img src="'.$CFG->pixpath.'/t/up.gif" alt="'.get_string('desc').'" />';
}
}
else if($primary_sort_column == 'lastname') {
if($primary_sort_order == SORT_ASC) {
- $icon_sort_last = ' <img src="'.$CFG->pixpath.'/t/down.gif" />';
+ $icon_sort_last = ' <img src="'.$CFG->pixpath.'/t/down.gif" alt="'.get_string('asc').'" />';
}
else {
- $icon_sort_last = ' <img src="'.$CFG->pixpath.'/t/up.gif" />';
+ $icon_sort_last = ' <img src="'.$CFG->pixpath.'/t/up.gif" alt="'.get_string('desc').'" />';
}
}
$this->headers[$index] = '<a href="'.$this->baseurl.$this->request[TABLE_VAR_SORT].'=firstname">'.get_string('firstname').'</a> '.$icon_sort_first.' / '.
if($this->is_sortable) {
if($primary_sort_column == $column) {
if($primary_sort_order == SORT_ASC) {
- $icon_sort = ' <img src="'.$CFG->pixpath.'/t/down.gif" />';
+ $icon_sort = ' <img src="'.$CFG->pixpath.'/t/down.gif" alt="'.get_string('asc').'" />';
}
else {
- $icon_sort = ' <img src="'.$CFG->pixpath.'/t/up.gif" />';
+ $icon_sort = ' <img src="'.$CFG->pixpath.'/t/up.gif" alt="'.get_string('desc').'" />';
}
}
$this->headers[$index] = '<a href="'.$this->baseurl.$this->request[TABLE_VAR_SORT].'='.$column.'">'.$this->headers[$index].'</a>';
$class .= " defaultuserpic";
$src = "$CFG->pixpath/u/$file.png\"";
}
+ if ($user = get_record('user', 'username', 'guest')) {
+ $username = fullname($user);
+ } else {
+ $username = get_string('none');
+ }
$output .= "<img class=\"$class\" align=\"middle\" src=\"$src".
- " border=\"0\" width=\"$size\" height=\"$size\" alt=\"\" />";
+ " border=\"0\" width=\"$size\" height=\"$size\" alt=\"".s(get_string('user').' '.$username)."\" />";
if ($link) {
$output .= '</a>';
}
if ($group->picture) { // Print custom group picture
if ($CFG->slasharguments) { // Use this method if possible for better caching
$output .= '<img class="grouppicture" align="middle" src="'.$CFG->wwwroot.'/user/pixgroup.php/'.$group->id.'/'.$file.'.jpg"'.
- ' border="0" width="'.$size.'" height="'.$size.'" alt="" title="'.s($group->name).'"/>';
+ ' border="0" width="'.$size.'" height="'.$size.'" alt="'.s(get_string('group').' '.$group->name).'" title="'.s($group->name).'"/>';
} else {
$output .= '<img class="grouppicture" align="middle" src="'.$CFG->wwwroot.'/user/pixgroup.php?file=/'.$group->id.'/'.$file.'.jpg"'.
- ' border="0" width="'.$size.'" height="'.$size.'" alt="" title="'.s($group->name).'"/>';
+ ' border="0" width="'.$size.'" height="'.$size.'" alt="'.s(get_string('group').' '.$group->name).'" title="'.s($group->name).'"/>';
}
}
if ($link or has_capability('moodle/site:accessallgroups', $context)) {
$class = 'activity '.$mod->mod;
$class .= ($cmid == $mod->cm) ? ' selected' : '';
$menu[] = '<li class="'.$class.'">'.
- '<img src="'.$CFG->modpixpath.'/'.$mod->mod.'/icon.gif" border="0" />'.
+ '<img src="'.$CFG->modpixpath.'/'.$mod->mod.'/icon.gif" border="0" alt=""/>'.
'<a href="'.$CFG->wwwroot.'/mod/'.$url.'">'.$mod->name.'</a></li>';
$previousmod = $mod;
}
$iconpath = $CFG->wwwroot . '/pix/docs.gif';
}
- $str .= '<img src="' .$iconpath. '" alt="Docs" />' .$text. '</a>';
+ // alt left blank intentionally to prevent repetition in screenreaders
+ $str .= '<img src="' .$iconpath. '" alt=" " />' .$text. '</a>';
return $str;
}
echo fullname($user1);
echo '</td>';
echo '<td align="center">';
- echo '<img src="'.$CFG->wwwroot.'/pix/t/left.gif">';
- echo '<img src="'.$CFG->wwwroot.'/pix/t/right.gif">';
+ echo '<img src="'.$CFG->wwwroot.'/pix/t/left.gif" alt="'.get_string('from').'">';
+ echo '<img src="'.$CFG->wwwroot.'/pix/t/right.gif" alt="'.get_string('to').'">';
echo '</td>';
echo '<td align="center">';
echo print_user_picture($user2->id, SITEID, $user2->picture, 100, true, true, 'userwindow').'<br />';
}
$emailswitch = " <a title=\"$switchclick\" ".
"href=\"view.php?id=$user->id&course=$course->id&$switchparam=1\">".
- "<img border=\"0\" width=\"11\" height=\"11\" src=\"$CFG->pixpath/t/$switchpix\" alt=\"\" /></a>";
+ "<img border=\"0\" width=\"11\" height=\"11\" src=\"$CFG->pixpath/t/$switchpix\" alt=\"$switchclick\" /></a>";
} else if ($currentuser) { /// Can only re-enable an email this way
if ($user->emailstop) { // Include link that tells how to re-enable their email
if ($user->skype && !isset($hiddenfields['skypeid'])) {
print_row(get_string('skypeid').':','<a href="callto:'.urlencode($user->skype).'">'.s($user->skype).
- ' <img src="http://mystatus.skype.com/smallicon/'.urlencode($user->skype).'" alt="status" '.
+ ' <img src="http://mystatus.skype.com/smallicon/'.urlencode($user->skype).'" alt="'.get_string('status').'" '.
' height="16" width="16" /></a>');
}
if ($user->yahoo && !isset($hiddenfields['yahooid'])) {