[TYPO3] avoid spacer-gif and br
Tapio Markula
tapio.markula at xetpoint.fi
Fri Aug 10 13:48:36 CEST 2007
Ilaria De Marinis kirjoitti:
> I commented these two lines in
> typo3/sysext/cms/tslib/class.tslib_content.php
>
> /function wrapSpace($content, $wrap) {
> $result = $content;
> if (trim($wrap)) {
> $wrapArray = explode('|',$wrap);
> $wrapBefore = intval($wrapArray[0]);
> $wrapAfter = intval($wrapArray[1]);
> if ($wrapBefore) {/
> * #ILARIA$result = '<img
> src="'.$GLOBALS['TSFE']->absRefPrefix.'clear.gif" width="1"
> height="'.$wrapBefore.'"'.$this->getBorderAttr('* border="0"').'
> class="spacer-gif" alt="" title="" /><br />'.$result;
> / }
> if ($wrapAfter) {/
> * #ILARIA$result.='<img
> src="'.$GLOBALS['TSFE']->absRefPrefix.'clear.gif" width="1"
> height="'.$wrapAfter.'"'.$this->getBorderAttr('* border="0"').'
> class="spacer-gif" alt="" title="" /><br />';
> /}
> }
> return $result;
> }/
> I think I won't need anytime these two tags.
> Hope help someone
that's bad practise. wpapBefore and and wrapAfter are in some
TS Template - and they should be defined using approriate Template setup.
More information about the TYPO3-english
mailing list