Bug #14760 » image_align_fix.diff
TYPO3core_3-8.align_fix/typo3/sysext/cms/tslib/class.tslib_content.php 2005-11-08 20:43:13.000000000 +0100 | ||
---|---|---|
$tablecode.='</tr>'; // ending row
|
||
}
|
||
if ($c) {
|
||
// Table-tag is inserted
|
||
$i=$contentPosition;
|
||
$table_align = (($i==16) ? 'align="'.$align.'"' : '');
|
||
switch ($contentPosition) {
|
||
case '0': // above
|
||
case '8': // below
|
||
switch ($align) { // These settings are needed for Firefox
|
||
case 'center':
|
||
$table_align = 'margin-left: auto; margin-right: auto';
|
||
break;
|
||
case 'right':
|
||
$table_align = 'margin-left: auto; margin-right: 0px';
|
||
break;
|
||
default: // Most of all: left
|
||
$table_align = 'margin-left: 0px; margin-right: auto';
|
||
}
|
||
$table_align = 'style="'.$table_align.'"';
|
||
break;
|
||
case '16': // in text
|
||
$table_align = 'align="'.$align.'"';
|
||
break;
|
||
default:
|
||
$table_align = '';
|
||
}
|
||
// Table-tag is inserted
|
||
$tablecode = '<table'.($tableWidth?' width="'.$tableWidth.'"':'').' border="0" cellspacing="0" cellpadding="0" '.$table_align.' class="imgtext-table">'.$tablecode;
|
||
if ($editIconsHTML) { // IF this value is not long since reset.
|
||
$tablecode.='<tr><td colspan="'.$colspan.'">'.$editIconsHTML.'</td></tr>';
|
- « Previous
- 1
- …
- 3
- 4
- 5
- Next »