Feature #17640 » 20071030_iecondition.patch
typo3/sysext/cms/tslib/class.tslib_pagegen.php (working copy) | ||
---|---|---|
if (!is_array($iCSSfile)) {
|
||
$ss=$GLOBALS['TSFE']->tmpl->getFileName($iCSSfile);
|
||
if ($ss) {
|
||
if ($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['import']) {
|
||
$tsAttr = $GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.'];
|
||
// added IE conditions in 4.2
|
||
if ($tsAttr['ieCondition']) {
|
||
$GLOBALS['TSFE']->content .= "\n\t<!--[if ".$tsAttr['ieCondition']."]>";
|
||
}
|
||
|
||
if ($tsAttr['import']) {
|
||
if (substr($ss,0,1)!='/') { // To fix MSIE 6 that cannot handle these as relative paths (according to Ben v Ende)
|
||
$ss = t3lib_div::dirname(t3lib_div::getIndpEnv('SCRIPT_NAME')).'/'.$ss;
|
||
}
|
||
$GLOBALS['TSFE']->content.='
|
||
$GLOBALS['TSFE']->content .= '
|
||
<style type="text/css">
|
||
<!--
|
||
@import url("'.htmlspecialchars($ss).'") '.htmlspecialchars($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['media']).';
|
||
@import url("'.htmlspecialchars($ss).'") '.htmlspecialchars($tsAttr['media']).';
|
||
-->
|
||
</style>
|
||
';
|
||
';
|
||
} else {
|
||
$GLOBALS['TSFE']->content.='
|
||
<link rel="'.($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['alternate'] ? 'alternate stylesheet' : 'stylesheet').'" type="text/css" href="'.htmlspecialchars($ss).'"'.
|
||
($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['title'] ? ' title="'.htmlspecialchars($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['title']).'"' : '').
|
||
($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['media'] ? ' media="'.htmlspecialchars($GLOBALS['TSFE']->pSetup['includeCSS.'][$key.'.']['media']).'"' : '').
|
||
$GLOBALS['TSFE']->content .= '
|
||
<link rel="'.($tsAttr['alternate'] ? 'alternate stylesheet' : 'stylesheet').'" type="text/css" href="'.htmlspecialchars($ss).'"'.
|
||
($tsAttr['title'] ? ' title="'.htmlspecialchars($tsAttr['title']).'"' : '').
|
||
($tsAttr['media'] ? ' media="'.htmlspecialchars($tsAttr['media']).'"' : '').
|
||
' />';
|
||
}
|
||
if ($tsAttr['ieCondition']) {
|
||
$GLOBALS['TSFE']->content .= "\n\t<![endif]-->\n";
|
||
}
|
||
}
|
||
}
|
||
}
|
- « Previous
- 1
- 2
- 3
- Next »