Project

General

Profile

Bug #20338 ยป 20090422_RFC_10954.diff

Administrator Admin, 2009-04-22 12:33

View differences:

typo3/classes/class.modulemenu.php (working copy)
* @return array icon data array with 'filename', 'size', and 'html'
*/
protected function getModuleIcon($moduleKey) {
$icon = array();
$icon = array(
'filename' => '',
'size' => '',
'title' => '',
'html' => ''
);
$iconFileRelative = $this->getModuleIconRelative($GLOBALS['LANG']->moduleLabels['tabs_images'][$moduleKey]);
$iconFileAbsolute = $this->getModuleIconAbsolute($GLOBALS['LANG']->moduleLabels['tabs_images'][$moduleKey]);
$iconSizes = @getimagesize($iconFileAbsolute);
$iconTitle = $GLOBALS['LANG']->moduleLabels['tabs'][$moduleKey];
$icon['filename'] = $iconFileRelative;
$icon['size'] = $iconSizes[3];
$icon['title'] = htmlspecialchars($iconTitle);
$icon['html'] = '<img src="'.$iconFileRelative.'" '.$iconSizes[3].' title="'.htmlspecialchars($iconTitle).'" alt="'.htmlspecialchars($iconTitle).'" />';
if(!empty($iconFileRelative)) {
$icon['filename'] = $iconFileRelative;
$icon['size'] = $iconSizes[3];
$icon['title'] = htmlspecialchars($iconTitle);
$icon['html'] = '<img src="'.$iconFileRelative.'" '.$iconSizes[3].' title="'.htmlspecialchars($iconTitle).'" alt="'.htmlspecialchars($iconTitle).'" />';
}
return $icon;
}
typo3/sysext/t3skin/stylesheets/modulemenu.css (working copy)
margin-left: 0px;
}
#typo3-menu li div img {
display: none;
}
#typo3-menu li img {
vertical-align: baseline;
}
    (1-1/1)