cObj->checkIf($conf['if.'])) { return ''; } $content = ''; $tdRowCount = 0; $tableParams = isset($conf['tableParams.']) ? $this->cObj->stdWrap($conf['tableParams'], $conf['tableParams.']) : $conf['tableParams']; $tableParams = $tableParams ? ' ' . $tableParams : ' border="0" cellspacing="0" cellpadding="0"'; $TDparams = isset($conf['TDParams.']) ? $this->cObj->stdWrap($conf['TDParams'], $conf['TDParams.']) : $conf['TDParams']; $TDparams = $TDparams ? ' ' . $TDparams : ' valign="top"'; $rows = isset($conf['rows.']) ? $this->cObj->stdWrap($conf['rows'], $conf['rows.']) : $conf['rows']; $rows = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($rows, 2, 20); $totalWidth = isset($conf['totalWidth.']) ? (int)$this->cObj->stdWrap($conf['totalWidth'], $conf['totalWidth.']) : (int)$conf['totalWidth']; $totalGapWidth = 0; $gapData = array( 'gapWidth' => isset($conf['gapWidth.']) ? $this->cObj->stdWrap($conf['gapWidth'], $conf['gapWidth.']) : $conf['gapWidth'], 'gapBgCol' => isset($conf['gapBgCol.']) ? $this->cObj->stdWrap($conf['gapBgCol'], $conf['gapBgCol.']) : $conf['gapBgCol'], 'gapLineThickness' => isset($conf['gapLineThickness.']) ? $this->cObj->stdWrap($conf['gapLineThickness'], $conf['gapLineThickness.']) : $conf['gapLineThickness'], 'gapLineCol' => isset($conf['gapLineCol.']) ? $this->cObj->stdWrap($conf['gapLineCol'], $conf['gapLineCol.']) : $conf['gapLineCol'] ); $gapData = $GLOBALS['TSFE']->tmpl->splitConfArray($gapData, $rows - 1); foreach ($gapData as $val) { $totalGapWidth += (int)$val['gapWidth']; } if ($totalWidth) { $columnWidth = ceil(($totalWidth - $totalGapWidth) / $rows); $TDparams .= ' width="' . $columnWidth . '"'; $tableParams .= ' width="' . $totalWidth . '"'; } else { $TDparams .= ' width="' . floor(100 / $rows) . '%"'; $tableParams .= ' width="100%"'; } for ($a = 1; $a <= $rows; $a++) { $tdRowCount++; $content .= ''; $content .= $this->cObj->cObjGetSingle($conf[$a], $conf[$a . '.'], $a); $content .= ''; if ($a < $rows) { $gapConf = $gapData[$a - 1]; $gapWidth = (int)$gapConf['gapWidth']; if ($gapWidth) { $tdPar = $gapConf['gapBgCol'] ? ' bgcolor="' . $gapConf['gapBgCol'] . '"' : ''; $gapLine = (int)$gapConf['gapLineThickness']; if ($gapLine) { $gapSurround = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange(($gapWidth - $gapLine) / 2, 1, 1000); // right gap $content .= ''; $tdRowCount++; // line: $GtdPar = $gapConf['gapLineCol'] ? ' bgcolor="' . $gapConf['gapLineCol'] . '"' : ' bgcolor="black"'; $content .= ''; $tdRowCount++; // left gap $content .= ''; $tdRowCount++; } else { $content .= ''; $tdRowCount++; } } } } $content = '' . $content . ''; $content = '' . $content . ''; if ($conf['after'] || isset($conf['after.'])) { $content .= $this->cObj->cObjGetSingle($conf['after'], $conf['after.'], 'after'); } if (isset($conf['stdWrap.'])) { $content = $this->cObj->stdWrap($content, $conf['stdWrap.']); } return $content; } }