mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
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).
This commit is contained in:
parent
4ee6e69aaf
commit
abea5d6940
@ -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>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user