Feature #18826 » 0008487_v3.patch
typo3/sysext/css_styled_content/static/constants.txt (Arbeitskopie) | ||
---|---|---|
jumpurl_secure =
|
||
jumpurl_secure_mimeTypes = pdf=application/pdf, doc=application/msword
|
||
jumpurl =
|
||
# cat=content/cUploads; type=string; label=Labels of file sizes: The labels for bytes, kilobytes, megabytes and gigabytes
|
||
filesizeBytesLabels = " | K| M| G"
|
||
}
|
||
styles.content.mailform {
|
typo3/sysext/css_styled_content/static/setup.txt (Arbeitskopie) | ||
---|---|---|
iconCObject.file.width = 150
|
||
}
|
||
20.filesize {
|
||
bytes = 1
|
||
bytes.labels = {$styles.content.uploads.filesizeBytesLabels}
|
||
wrap = <p>|</p>
|
||
wrap2 = <td class="csc-uploads-fileSize">|</td>
|
||
}
|
||
20.stdWrap {
|
||
editIcons = tt_content: media, layout [table_bgColor|table_border|table_cellspacing|table_cellpadding], filelink_size, imagecaption
|
||
editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.filelist
|
typo3/sysext/css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php (Arbeitskopie) | ||
---|---|---|
// Now, lets render the list!
|
||
$tRows = array();
|
||
foreach($filesData as $key => $fileD) {
|
||
// Formats the size of the file:
|
||
if ($this->cObj->data['filelink_size']) {
|
||
$fileSize = $this->cObj->stdWrap($fileD['filesize'], $conf['filesize.']);
|
||
}
|
||
// Setting class of table row for odd/even rows:
|
||
$oddEven = $key%2 ? 'tr-odd' : 'tr-even';
|
||
... | ... | |
<p>'.$fileD['linkedFilenameParts'][1].'</p>'.
|
||
($fileD['description'] ? '
|
||
<p class="csc-uploads-description">'.htmlspecialchars($fileD['description']).'</p>' : '').'
|
||
</td>'.($this->cObj->data['filelink_size'] ? '
|
||
<td class="csc-uploads-fileSize">
|
||
<p>'.t3lib_div::formatSize($fileD['filesize']).'</p>
|
||
</td>' : '').'
|
||
</td>
|
||
' . $fileSize . '
|
||
</tr>';
|
||
}
|
||