Feature #23888 ยป tslib_content_CLEARGIF.diff
typo3/sysext/cms/tslib/content/class.tslib_content_cleargif.php (revision ) | ||
---|---|---|
* @return string Output
|
||
*/
|
||
public function render($conf = array()) {
|
||
$w = $this->cObj->stdWrap($conf['width'], $conf['width.']);
|
||
$h = $this->cObj->stdWrap($conf['height'], $conf['height.']);
|
||
$w = $w ? $w : 1;
|
||
$h = $h ? $h : 1;
|
||
$wrap = $conf['wrap'] ? $conf['wrap'] : '|<br />';
|
||
$theValue = $this->cObj->wrap(
|
||
'<img src="' . $GLOBALS['TSFE']->absRefPrefix . 'clear.gif" width="' . $w . '" height="' . $h . '"' .
|
||
$width = isset($conf['width.']) ? $this->cObj->stdWrap($conf['width'], $conf['width.']) : $conf['width'];
|
||
$height = isset($conf['height.']) ? $this->cObj->stdWrap($conf['height'], $conf['height.']) : $conf['height'];
|
||
$width = $width ? $width : 1;
|
||
$height = $height ? $height : 1;
|
||
$wrap = isset($conf['wrap']) ? (isset($conf['wrap.']) ? $this->cObj->stdWrap($conf['wrap'], $conf['wrap.']) : $conf['wrap']) : '|<br />';
|
||
$theValue = $this->cObj->wrap('<img src="' . $GLOBALS['TSFE']->absRefPrefix . 'clear.gif" width="' . $width . '" height="' . $height . '"' .
|
||
$this->cObj->getBorderAttr(' border="0"') . ' alt="" title="" />',
|
||
$wrap
|
||
);
|
||
|
||
return $this->cObj->stdWrap($theValue, $conf['stdWrap.']);
|
||
$wrap);
|
||
if (isset($conf['stdWrap.'])) {
|
||
$theValue = $this->cObj->stdWrap($theValue, $conf['stdWrap.']);
|
||
}
|
||
}
|
||
return $theValue;
|
||
}
|
||
|
||
}
|
||
|