MDL-15402: display title attribut for show/hide image in the repository administration
This commit is contained in:
@@ -14,6 +14,8 @@ $string['attachment'] = 'Attachment';
|
||||
$string['back'] = '< Back';
|
||||
$string['cacheexpire'] = 'Cache expire';
|
||||
$string['cachecleared'] = 'Cached files are removed';
|
||||
$string['clicktohide'] = 'Click here to hide';
|
||||
$string['clicktoshow'] = 'Click here to show';
|
||||
$string['close'] = 'Close';
|
||||
$string['cleancache'] = 'Clean my cache files';
|
||||
$string['copying'] = 'Copying';
|
||||
|
||||
+4
-2
@@ -5655,10 +5655,12 @@ class admin_setting_managerepository extends admin_setting {
|
||||
}
|
||||
$delete = '<a href="' . $this->baseurl . '&delete=' . $i->get_typename() . '">'
|
||||
. $deletestr . '</a>' . "\n";
|
||||
|
||||
|
||||
$hidetitle = $i->get_visible() ? get_string('clicktohide', 'repository') : get_string('clicktoshow', 'repository');
|
||||
$hiddenshow = ' <a href="' . $this->baseurl . '&hide=' . $i->get_typename() . '">'
|
||||
.'<img src="' . $CFG->pixpath . '/i/' . ($i->get_visible() ? 'hide' : 'show') . '.gif"'
|
||||
.' alt="' . get_string($i->get_visible() ? 'hide' : 'show') . '" />'
|
||||
.' alt="' . $hidetitle . '" '
|
||||
.' title="' . $hidetitle . '" />'
|
||||
.'</a>' . "\n";
|
||||
|
||||
// display up/down link
|
||||
|
||||
Reference in New Issue
Block a user