$string['icqnumber'] = 'ICQ number';
$string['idnumber'] = 'ID number';
$string['idnumbercourse'] = 'Course ID number';
+$string['imagealt'] = 'Picture description';
$string['import'] = 'Import';
$string['importactivities'] = 'Import activities from another course';
$string['importdata'] = 'Import course data';
$string['people'] = 'People';
$string['periodending'] = 'Period ending ($a)';
$string['personalprofile'] = 'Personal profile';
+$string['pictureof'] = 'Picture of $a';
$string['phone'] = 'Phone';
$string['phpinfo'] = 'PHP info';
$string['pleaseclose'] = 'Please close this window now.';
$string['scalestip'] = 'To create custom scales, use the \'Scales...\' link in your course administration menu.';
$string['schedule'] = 'Schedule';
$string['scheduledbackupstatus'] = 'Scheduled backup status';
+$string['screenreaderuse'] = 'Screen reader';
+$string['screenreaderno'] = 'No';
+$string['screenreaderyes'] = 'Yes';
$string['screenshot'] = 'Screenshot';
$string['search'] = 'Search';
$string['searchagain'] = 'Search again';
$class .= " defaultuserpic";
$src = "$CFG->pixpath/u/$file.png\"";
}
- if ($user = get_record('user', 'username', 'guest')) {
- $username = fullname($user);
- } else {
- $username = get_string('none');
+ if ($user = get_record('user','id',$userid)) {
+ if (!empty($user->imagealt)) {
+ $imagealt = $user->imagealt;
+ } else {
+ $imagealt = get_string('pictureof','',fullname($user));
+ }
}
$output .= "<img class=\"$class\" align=\"middle\" src=\"$src".
- " border=\"0\" width=\"$size\" height=\"$size\" alt=\"".s(get_string('user').' '.$username)."\" />";
+ " border=\"0\" width=\"$size\" height=\"$size\" alt=\"".$imagealt."\" />";
if ($link) {
$output .= '</a>';
}
?>
</td>
</tr>
+<tr>
+ <th><?php print_string("screenreaderuse") ?>:</th>
+ <td><?php
+ unset($choices);
+ $choices["0"] = get_string("screenreaderno");
+ $choices["1"] = get_string("screenreaderyes");
+ choose_from_menu ($choices, 'screenreader', $user->screenreader, '', '', 0, false) ?>
+ </td>
+</tr>
<tr>
<td colspan="2" style="text-align: center;"><input type="submit" value="<?php print_string("updatemyprofile") ?>" /></td>
</tr>
-
-
<tr>
<td colspan="2" align="center"> <br /><b><?php print_string("followingoptional") ?>:</b></td>
</tr>
</td>
</tr>
<?php } ?>
-
+<tr>
+ <th><?php print_string("imagealt") ?>:</th>
+ <td>
+ <input type="text" name="imagealt" size="30" alt="<?php print_string("imagealt") ?>" maxlength="100" value="<?php p($user->imagealt) ?>" />
+ </td>
+</tr>
<tr>
<th><?php print_string("webpage") ?>:</th>
<td><input type="text" name="url" size="50" alt="<?php print_string("webpage") ?>" maxlength="255" value="<?php p($user->url) ?>" />