mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Fixing the alt attributes for the icons used to move/hide etc. blocks when
editing is on. Also a few minor corrections for things inside comments.
This commit is contained in:
parent
f218c95ebc
commit
67677908a0
@ -1,8 +1,8 @@
|
||||
<?php // $Id$
|
||||
|
||||
/**
|
||||
* This file contains the parent class for moodle blocks, MoodleBlock,
|
||||
* as well as the MoodleBlock_Nuke subclass.
|
||||
* This file contains the parent class for moodle blocks, block_base,
|
||||
* as well as the block_nuke subclass.
|
||||
*
|
||||
* @author Jon Papaioannou
|
||||
* @version $Id$
|
||||
@ -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=\"\" /></a>';
|
||||
'<img src="'. $pixpath.$icon .'" alt="Hide" /></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=\"\" /></a>';
|
||||
'<img src="'. $pixpath .'/t/edit.gif" alt="Config" /></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=\"\" /></a> ';
|
||||
'<img src="'. $pixpath .'/t/delete.gif" alt="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=\"\" /></a>';
|
||||
'<img src="'. $pixpath .'/t/left.gif" alt="Left" /></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=\"\" /></a>';
|
||||
'<img src="'. $pixpath .'/t/up.gif" alt="Up" /></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=\"\" /></a>';
|
||||
'<img src="'. $pixpath .'/t/down.gif" alt="Down" /></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=\"\" /></a>';
|
||||
'<img src="'. $pixpath .'/t/right.gif" alt="Right" /></a>';
|
||||
}
|
||||
|
||||
$movebuttons .= '</div>';
|
||||
@ -479,7 +479,7 @@ class block_base {
|
||||
/**
|
||||
* This function is called on your subclass right after an instance is loaded
|
||||
* Use this function to act on instance data just after it's loaded and before anything else is done
|
||||
* For instance: if your block will have different title's dependant on location (site, course, blog, etc)
|
||||
* For instance: if your block will have different title's depending on location (site, course, blog, etc)
|
||||
*/
|
||||
function specialization() {
|
||||
// Just to make sure that this method exists.
|
||||
|
Loading…
x
Reference in New Issue
Block a user