Feature #23905 ยป class.tx_cms_layout_1.diff
class.tx_cms_layout.php (working copy) | ||
---|---|---|
$editUidList = '';
|
||
}
|
||
|
||
// For EACH column, fit the rendered content into a table cell:
|
||
$out='';
|
||
foreach($cList as $k => $key) {
|
||
if (!$k) {
|
||
$out.= '
|
||
<td><img src="clear.gif" width="'.$lMarg.'" height="1" alt="" /></td>';
|
||
} else {
|
||
$out.= '
|
||
<td><img src="clear.gif" width="4" height="1" alt="" /></td>
|
||
<td bgcolor="#cfcfcf"><img src="clear.gif" width="1" height="1" alt="" /></td>
|
||
<td><img src="clear.gif" width="4" height="1" alt="" /></td>';
|
||
if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tx_cms_layout']['getTable_tt_contentHook'])) {
|
||
foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tx_cms_layout']['getTable_tt_contentHook'] as $classReference) {
|
||
$hookObject =& t3lib_div::getUserObj($classReference);
|
||
$out = $hookObject->getTable_tt_content($cList, $head, $content, $this);
|
||
}
|
||
$out.= '
|
||
<td class="t3-page-column t3-page-column-' . $key . '">' . $head[$key] . $content[$key] . '</td>';
|
||
|
||
// Storing content for use if languageMode is set:
|
||
if ($this->tt_contentConfig['languageMode']) {
|
||
$languageColumn[$key][$lP] = $head[$key].$content[$key];
|
||
if (!$this->defLangBinding) {
|
||
$languageColumn[$key][$lP].='<br /><br />'.$this->newLanguageButton($this->getNonTranslatedTTcontentUids($defLanguageCount[$key],$id,$lP),$lP);
|
||
} else {
|
||
// For EACH column, fit the rendered content into a table cell:
|
||
$out='';
|
||
foreach($cList as $k => $key) {
|
||
if (!$k) {
|
||
$out .= '
|
||
<td><img src="clear.gif" width="' . $lMarg . '" height="1" alt="" /></td>';
|
||
} else {
|
||
$out .= '
|
||
<td><img src="clear.gif" width="4" height="1" alt="" /></td>
|
||
<td bgcolor="#cfcfcf"><img src="clear.gif" width="1" height="1" alt="" /></td>
|
||
<td><img src="clear.gif" width="4" height="1" alt="" /></td>';
|
||
}
|
||
$out .= '
|
||
<td class="t3-page-column t3-page-column-' . $key . '">' . $head[$key] . $content[$key] . '</td>';
|
||
|
||
// Storing content for use if languageMode is set:
|
||
if ($this->tt_contentConfig['languageMode']) {
|
||
$languageColumn[$key][$lP] = $head[$key] . $content[$key];
|
||
if (!$this->defLangBinding) {
|
||
$languageColumn[$key][$lP] .= '<br /><br />' .
|
||
$this->newLanguageButton($this->getNonTranslatedTTcontentUids($defLanguageCount[$key], $id, $lP), $lP);
|
||
}
|
||
}
|
||
}
|
||
|
||
// Wrap the cells into a table row:
|
||
$out = '
|
||
<table border="0" cellpadding="0" cellspacing="0" class="t3-page-columns">
|
||
<tr>' . $out . '
|
||
</tr>
|
||
</table>';
|
||
}
|
||
|
||
// Wrap the cells into a table row:
|
||
$out = '
|
||
<table border="0" cellpadding="0" cellspacing="0" class="t3-page-columns">
|
||
<tr>'.$out.'
|
||
</tr>
|
||
</table>';
|
||
|
||
// CSH:
|
||
$out.= t3lib_BEfunc::cshItem($this->descrTable,'columns_multi',$GLOBALS['BACK_PATH']);
|
||
}
|