Project

General

Profile

Feature #23827 » t3lib_tceforms_v4.diff

Administrator Admin, 2010-11-15 23:34

View differences:

t3lib/class.t3lib_tceforms.php (Arbeitskopie)
if(!$disabled && !(isset($config['disable_controls']) && t3lib_div::inList($config['disable_controls'], 'upload'))) {
// Adding the upload field:
if ($this->edit_docModuleUpload && $config['uploadfolder']) {
$item .= '<input type="file" name="' . $PA['itemFormElName_file'] . '"' . $this->formWidth() . ' size="60" onchange="' . implode('', $PA['fieldChangeFunc']) . '" />';
$item .= '<input type="file" name="' . $PA['itemFormElName_file'] . '" size="35" onchange="' . implode('', $PA['fieldChangeFunc']) . '" />';
}
}
break;
......
t3lib_iconWorks::getSpriteIcon('actions-selection-delete', array('title' => htmlspecialchars($this->getLL('l_remove_selected')))) .
'</a>';
}
$imagesOnly = FALSE;
if ($params['thumbnails']) {
// In case we have thumbnails, check if only images are allowed.
// In this case, render them below the field, instead of to the right
$allowedExtensionList = t3lib_div::trimExplode(' ', strtolower($params['info']), TRUE);
$imageExtensionList = t3lib_div::trimExplode(',', strtolower($GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']), TRUE);
$imagesOnly = TRUE;
foreach ($allowedExtensionList as $allowedExtension) {
if (!t3lib_div::inArray($imageExtensionList, $allowedExtension)) {
$imagesOnly = FALSE;
break;
}
}
}
if ($imagesOnly) {
$rightbox = '';
$thumbnails = '<div class="imagethumbs">'. $this->wrapLabels($params['thumbnails']) .'</div>';
} else {
$rightbox = $this->wrapLabels($params['thumbnails']);
$thumbnails = '';
}
$str='<table border="0" cellpadding="0" cellspacing="0" width="1">
'.($params['headers']?'
......
<tr>
<td valign="top">'.
$selector.
($params['noList'] ? '' : '<br />'.$this->wrapLabels($params['info'])) .
'</td>
$thumbnails.
($params['noList'] ? '' : '<span class="filetypes">'. $this->wrapLabels($params['info'])) .
'</span></td>
<td valign="top" class="icons">'.
implode('<br />',$icons['L']).'</td>
<td valign="top" class="icons">'.
implode('<br />',$icons['R']).'</td>
<td valign="top" class="thumbnails">'.
$this->wrapLabels($params['thumbnails']).
$rightbox.
'</td>
</tr>
</table>';
typo3/sysext/t3skin/stylesheets/structure/element_tceforms.css (Arbeitskopie)
padding-top: 6px;
}
table.typo3-TCEforms div.imagethumbs {
padding-top: 6px;
white-space: normal;
width: 253px;
}
table.typo3-TCEforms div.imagethumbs br {
display: none;
}
table.typo3-TCEforms div.imagethumbs .nobr {
display: inline-block;
width: 60px;
height: 60px;
overflow: hidden;
margin-right: 3px;
margin-bottom: 1px;
text-align: center;
}
table.typo3-TCEforms div.imagethumbs .nobr a {
display: block;
width: 60px;
height: 60px;
line-height: 58px;
text-align: center;
}
table.typo3-TCEforms div.imagethumbs .nobr a img {
display: inline;
margin-right: auto;
vertical-align: middle;
margin-left: auto;
}
table.typo3-TCEforms div.imagethumbs .nobr span {
display: none;
}
table.typo3-TCEforms span.filetypes {
display: block;
margin-top: 6px;
white-space: normal;
width: 250px;
}
.typo3-TCEforms select.tceforms-multiselect {
min-height: 85px;
}
.typo3-TCEforms-palette .typo3-csh-link img {
padding-top: 3px;
vertical-align: top;
}
.typo3-TCEforms-palette selct.select {
.typo3-TCEforms-palette select.select,
.t3-form-palette-field-container select.select {
margin-top: 2px;
}
typo3/sysext/t3skin/stylesheets/visual/element_tceforms.css (Arbeitskopie)
border:none;
}
table.typo3-TCEforms div.imagethumbs .nobr {
background-color: #CCC;
}
table.typo3-TCEforms span.filetypes {
font-size: 0.8em;
}
input.typo3-TCEforms-suggest-search {
background-image: url('../../icons/gfx/zoom.gif');
background-position: 2px center;
(3-3/3)