MDL-7434 all images that convey information should have alt text to convey that information - part 1

This commit is contained in:
skodak
2006-11-24 20:16:37 +00:00
parent 536a640218
commit 344044b28e
16 changed files with 42 additions and 36 deletions
+4 -2
View File
@@ -31,11 +31,13 @@ class block_admin_tree extends block_base {
function open_folder($visiblename) {
global $CFG;
$strfolderopened = s(get_string('folderopened'));
for ($i = 0; $i < $this->currentdepth; $i++) {
$this->tempcontent .= "&nbsp;&nbsp;&nbsp;";
}
$this->tempcontent .= '<a href="javascript:toggle(\'vh_span' . $this->spancounter . '\');">';
$this->tempcontent .= '<span id="vh_span' . $this->spancounter . 'indicator"><img src="' . $CFG->wwwroot . '/blocks/admin_tree/open.gif" border="0" alt="[open folder]" /></span> ';
$this->tempcontent .= '<span id="vh_span' . $this->spancounter . 'indicator"><img src="' . $CFG->wwwroot . '/blocks/admin_tree/open.gif" border="0" alt="'.$strfolderopened.'" /></span> ';
$this->tempcontent .= $visiblename . '</a><br /><span id="vh_span' . $this->spancounter . '">' . "\n";
$this->currentdepth++;
$this->spancounter++;
@@ -51,7 +53,7 @@ class block_admin_tree extends block_base {
for ($i = 0; $i < $this->currentdepth; $i++) {
$this->tempcontent .= "&nbsp;&nbsp;&nbsp;";
}
$this->tempcontent .= '<a class="'.$class.'" href="'.$link.'"><img src="'.$icon.'" border="0" alt="[item]" />'.
$this->tempcontent .= '<a class="'.$class.'" href="'.$link.'"><img src="'.$icon.'" border="0" alt="" />'.
$visiblename.'</a><br />'."\n";
}