Bug #21215 ยป rfc12167-v2.diff
typo3/sysext/reports/mod/mod_styles.css (working copy) | ||
---|---|---|
.report-list dt {
|
||
font-weight: bold;
|
||
font-size: 11px;
|
||
background-image: url("moduleicon.gif");
|
||
background-repeat: no-repeat;
|
||
padding: 0px 0px 2px 20px;
|
||
}
|
typo3/sysext/reports/mod/index.php (working copy) | ||
---|---|---|
* @return string list of available reports
|
||
*/
|
||
protected function indexAction() {
|
||
$defaultIcon = t3lib_extMgm::extRelPath('reports') . 'mod/moduleicon.gif';
|
||
$content = '<dl class="report-list">';
|
||
$reports = array();
|
||
... | ... | |
$reportTitle = $GLOBALS['LANG']->sL($report['title']);
|
||
$reportContent = '<dt><a href="' . $link . '">' . $reportTitle. '</a></dt>';
|
||
// Set default report icon
|
||
$icon = $defaultIcon;
|
||
// Check for custom icon
|
||
if (!empty($report['icon'])) {
|
||
$absIconPath = t3lib_div::getFileAbsFilename($report['icon']);
|
||
// If the file indeed exists, assemble relative path to it
|
||
if (file_exists($absIconPath)) {
|
||
$icon = $GLOBALS['BACK_PATH'] . '../' . str_replace(PATH_site, '', $absIconPath);
|
||
}
|
||
}
|
||
$reportContent = '<dt style="background-image: url(\'' . $icon . '\');"><a href="' . $link . '">' . $reportTitle . '</a></dt>';
|
||
$reportContent .= '<dd>' . $GLOBALS['LANG']->sL($report['description']) . '</dd>';
|
||
$reports[$reportTitle] = $reportContent;
|