Project

General

Profile

Bug #27602 » show_item.php.patch

Tomas Norre Mikkelsen, 2011-09-15 23:12

View differences:

typo3/show_item.php
$fI = t3lib_div::split_fileref($this->file);
$ext = $fI['fileext'];
$code = '';
$code = '<div class="fileInfoContainer">';
// Setting header:
$fileName = t3lib_iconWorks::getSpriteIconForFile($ext) . '<strong>' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:show_item.php.file', TRUE) . ':</strong> ' . $fI['file'];
......
} else {
$code.= $fileName;
}
$code.=' &nbsp;&nbsp;<strong>'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:show_item.php.filesize').':</strong> '.t3lib_div::formatSize(@filesize($this->file)).'<br />
$code.=' &nbsp;&nbsp;<strong>'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:show_item.php.filesize').':</strong> '.t3lib_div::formatSize(@filesize($this->file)).'</div>
';
if (is_array($imgInfo)) {
$code.= '<strong>'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:show_item.php.dimensions').':</strong> '.$imgInfo[0].'x'.$imgInfo[1].' '.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:show_item.php.pixels');
$code.= '<div class="fileInfoContainer fileDimensions"><strong>'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:show_item.php.dimensions').':</strong> '.$imgInfo[0].'x'.$imgInfo[1].' '.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:show_item.php.pixels').'</div>';
}
$this->content.=$this->doc->section('',$code);
$this->content.=$this->doc->divider(2);
(3-3/3)