Feature #16972 » 4963_v1.patch
typo3/sysext/cms/tslib/class.tslib_content.php (working copy) | ||
---|---|---|
}
|
||
if ($JSwindowParams) {
|
||
|
||
$uniqueTargetString = md5($finalTagParts['url']);
|
||
$winTarget = $conf['JSwindow.']['altTargetName'] ? $conf['JSwindow.']['altTargetName'] : 'jsWin' . $uniqueTargetString;
|
||
$winObj = $conf['JSwindow.']['altWinObjName'] ? $conf['JSwindow.']['altWinObjName'] : 'vHWin_' . $uniqueTargetString;
|
||
// Create TARGET-attribute only if the right doctype is used
|
||
if (!t3lib_div::inList('xhtml_strict,xhtml_11,xhtml_2', $GLOBALS['TSFE']->xhtmlDoctype)) {
|
||
$target = ' target="FEopenLink"';
|
||
$target = ' target="' . $winTarget . '"';
|
||
} else {
|
||
$target = '';
|
||
}
|
||
$onClick = "vHWin=window.open('" . $GLOBALS['TSFE']->baseUrlWrap($finalTagParts['url']) .
|
||
"','FEopenLink','" . $JSwindowParams . "');vHWin.focus();return FALSE;";
|
||
|
||
$onClick = $winObj . "=window.open('" . $GLOBALS['TSFE']->baseUrlWrap($finalTagParts['url']) .
|
||
"','" . $winTarget . "','" . $JSwindowParams . "');" . $winObj . ".focus();return false;";
|
||
$res = '<a href="' . htmlspecialchars($finalTagParts['url']) . '"' .
|
||
$target . ' onclick="' . htmlspecialchars($onClick) . '"' .
|
||
($title ? ' title="' . $title . '"' : '') .
|
- « Previous
- 1
- 2
- 3
- 4
- Next »