Project

General

Profile

Feature #25177 ยป 17766.diff

Administrator Admin, 2011-02-25 14:49

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
$title = $forceTitle;
}
$useLinkTypeAsCssClass = isset($conf['useLinkTypeAsCssClass'])
? $conf['useLinkTypeAsCssClass']
: $this->stdWrap($GLOBALS['TSFE']->config['config']['useLinkTypeAsCssClass'], $GLOBALS['TSFE']->config['config']['useLinkTypeAsCssClass.']);
if($conf['useLinkTypeAsCssClass.']) {
$useLinkTypeAsCssClass = $this->stdWrap($useLinkTypeAsCssClass, $conf['useLinkTypeAsCssClass.']);
}
if($useLinkTypeAsCssClass) {
if(strpos($finalTagParts['aTagParams'], 'class') !== FALSE) {
$finalTagParts['aTagParams'] = preg_replace('/class=\x22([^\x22]*)\x22/', 'class="' . $finalTagParts['TYPE'] . ' $1"', $finalTagParts['aTagParams']);
} elseif($linkClass) {
$linkClass .= ' ' . $finalTagParts['TYPE'];
} else {
$linkClass = $finalTagParts['TYPE'];
}
}
if ($JSwindowParams) {
// Create TARGET-attribute only if the right doctype is used
    (1-1/1)