Project

General

Profile

Bug #16049 » bug-3258_a.diff

Administrator Admin, 2006-05-30 11:50

View differences:

typo3/sysext/css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php 2006-05-30 11:48:01.000000000 +0200
$images = '';
for ($c = 0; $c < $imageWrapCols; $c++) {
$tmpColspacing = $colspacing;
if (($c==$imageWrapCols-1 && $imagePosition==2) || ($c==0 && $imagePosition==1)) {
if (($c==$imageWrapCols-1 && $imagePosition==2) || ($c==0 && ($imagePosition==1||$imagePosition==0))) {
$tmpColspacing = 0;
}
$GLOBALS['TSFE']->register['columnwidth'] = $columnWidths[$c] + $tmpColspacing + $border*($borderSpace+$borderThickness)*2;
$thisImages = '';
$allRows = '';
$maxImageSpace = 0;
for ($i = $c; $i<count($imgsTag); $i=$i+$imageWrapCols) {
$colPos = $i%$colCount;
if ($separateRows && $colPos == 0) {
......
$GLOBALS['TSFE']->register['imagewidth'] = $origImages[$i][0];
$GLOBALS['TSFE']->register['imagespace'] = $origImages[$i][0] + $border*($borderSpace+$borderThickness)*2;
$GLOBALS['TSFE']->register['imageheight'] = $origImages[$i][1];
if ($origImages[$i][0] + $border*($borderSpace+$borderThickness)*2 > $maxImageSpace) {
$maxImageSpace = $origImages[$i][0] + $border*($borderSpace+$borderThickness)*2;
}
$thisImage = '';
$thisImage .= $this->cObj->stdWrap($imgsTag[$i], $conf['imgTagStdWrap.']);
......
$allRows .= $this->cObj->stdWrap($thisRow, $conf['imageRowStdWrap.']);
}
}
$GLOBALS['TSFE']->register['columnwidth'] = $maxImageSpace + $tmpColspacing + $border*($borderSpace+$borderThickness)*2;
if ($separateRows) {
$thisImages .= $allRows;
} else {
......
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php']);
}
?>
?>
(2-2/2)