Feature #54031 ยป setWidthHeightAttr.patch
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer_new.php Do Nov 28 12:43:09 2013 | ||
---|---|---|
} else {
|
||
$params = isset($conf['params.']) ? ' ' . $this->stdWrap($conf['params'], $conf['params.']) : '';
|
||
}
|
||
$theValue = '<img src="' . htmlspecialchars($source) . '" width="' . $info[0] . '" height="' . $info[1] . '"' . $info[1] . '"' . $this->getBorderAttr(' border="' . intval($conf['border']) . '"') . $params . $altParam . (!empty($GLOBALS['TSFE']->xhtmlDoctype) ? ' /' : '') . '>';
|
||
if (isset($conf['setWidthHeightAttr']) && !$conf['setWidthHeightAttr']) {
|
||
$widthHeightAttr = '';
|
||
} else {
|
||
$widthHeightAttr = 'width="' . $info[0] . '" height="' . $info[1] . '"';
|
||
}
|
||
$theValue = '<img src="' . htmlspecialchars($source) . '" '. $widthHeightAttr . $info[1] . '"' . $this->getBorderAttr(' border="' . intval($conf['border']) . '"') . $params . $altParam . (!empty($GLOBALS['TSFE']->xhtmlDoctype) ? ' /' : '') . '>';
|
||
$linkWrap = isset($conf['linkWrap.']) ? $this->stdWrap($conf['linkWrap'], $conf['linkWrap.']) : $conf['linkWrap'];
|
||
if ($linkWrap) {
|
||
$theValue = $this->linkWrap($theValue, $linkWrap);
|