The file name and dimension information need some space for better
separation in the "View Item" window.
Change-Id: I0d737d85b7444747c7292362a43f48528a0d4806
Resolves: #27602
Reviewed-on: http://review.typo3.org/4987
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
$fI = t3lib_div::split_fileref($this->file);
$ext = $fI['fileext'];
$fI = t3lib_div::split_fileref($this->file);
$ext = $fI['fileext'];
+ $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'];
// 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;
}
} else {
$code.= $fileName;
}
- $code.=' <strong>'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:show_item.php.filesize').':</strong> '.t3lib_div::formatSize(@filesize($this->file)).'<br />
+ $code.=' '
+ . '<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)) {
';
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);
}
$this->content.=$this->doc->section('',$code);
$this->content.=$this->doc->divider(2);
table#typo3-showitem {
margin: 10px 0;
table#typo3-showitem {
margin: 10px 0;
+}
+
+#typo3-show-item-php div.fileInfoContainer.fileDimensions {
+ margin-left: 18px;
}
\ No newline at end of file
}
\ No newline at end of file