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 .= '