From: defacer <defacer> Date: Mon, 17 Jan 2005 14:51:18 +0000 (+0000) Subject: Fix for bug 2371: X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=abea5d6940185766d155049b7f743fec575ce304;p=moodle.git Fix for bug 2371: The alt text is now the same as the tooltip for the block control icons in editing mode (i.e., language pack configurable). --- diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 38cdc6b08b..be502709ef 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -286,7 +286,7 @@ class block_base { $pixpath = $path .'/../theme/'. $CFG->theme .'/pix'; } - $movebuttons = '<div style="float: right;">'; + $movebuttons = '<div style="float: right; font-size: 0.75em; margin-top: 0.3em;">'; if ($this->instance->visible) { $icon = '/t/hide.gif'; @@ -300,31 +300,31 @@ class block_base { $script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey)); $movebuttons .= '<a style="margin-right: 6px; margin-left: 2px;" title="'. $title .'" href="'.$script.'&blockaction=toggle">' . - '<img src="'. $pixpath.$icon .'" alt="Hide" /></a>'; + '<img src="'. $pixpath.$icon .'" alt="'.$title.'" /></a>'; if ($options & BLOCK_CONFIGURE) { $movebuttons .= '<a style="margin-right: 6px; margin-left: 2px;" title="'. $this->str->configure .'" href="'.$script.'&blockaction=config">' . - '<img src="'. $pixpath .'/t/edit.gif" alt="Config" /></a>'; + '<img src="'. $pixpath .'/t/edit.gif" alt="'. $this->str->configure .'" /></a>'; } $movebuttons .= '<a style="margin-right: 2px; margin-left: 2px;" title="'. $this->str->delete .'" href="'.$script.'&blockaction=delete">' . - '<img src="'. $pixpath .'/t/delete.gif" alt="Delete" /></a> '; + '<img src="'. $pixpath .'/t/delete.gif" alt="'. $this->str->delete .'" /></a> '; if ($options & BLOCK_MOVE_LEFT) { $movebuttons .= '<a style="margin-right: 2px; margin-left: 2px;" title="'. $this->str->moveleft .'" href="'.$script.'&blockaction=moveleft">' . - '<img src="'. $pixpath .'/t/left.gif" alt="Left" /></a>'; + '<img src="'. $pixpath .'/t/left.gif" alt="'. $this->str->moveleft .'" /></a>'; } if ($options & BLOCK_MOVE_UP) { $movebuttons .= '<a style="margin-right: 2px; margin-left: 2px;" title="'. $this->str->moveup .'" href="'.$script.'&blockaction=moveup">' . - '<img src="'. $pixpath .'/t/up.gif" alt="Up" /></a>'; + '<img src="'. $pixpath .'/t/up.gif" alt="'. $this->str->moveup .'" /></a>'; } if ($options & BLOCK_MOVE_DOWN) { $movebuttons .= '<a style="margin-right: 2px; margin-left: 2px;" title="'. $this->str->movedown .'" href="'.$script.'&blockaction=movedown">' . - '<img src="'. $pixpath .'/t/down.gif" alt="Down" /></a>'; + '<img src="'. $pixpath .'/t/down.gif" alt="'. $this->str->movedown .'" /></a>'; } if ($options & BLOCK_MOVE_RIGHT) { $movebuttons .= '<a style="margin-right: 2px; margin-left: 2px;" title="'. $this->str->moveright .'" href="'.$script.'&blockaction=moveright">' . - '<img src="'. $pixpath .'/t/right.gif" alt="Right" /></a>'; + '<img src="'. $pixpath .'/t/right.gif" alt="'. $this->str->moveright .'" /></a>'; } $movebuttons .= '</div>';