Issue Feature Closed

#16536It would be good to include posibility to add "wrap" property to "includeCSS" resource object.

Dmytro 09/07/06, 13:06 updated 09/05/13, 09:08

Description

For what purpuse do I need it. And I think that not only I need it.
I hope smbd knows about IE conditional comments (http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp).
And thus how IE renders some of CSS styles. So designer have to include additional CSS styles which are not correspond with W3C CSS standarts.
IE conditional statements allows to include these additional CSS (and all another content) like:

Currently I do this with :
headerData.10 = TEXT
headerData.10.value (

)

But it is not very convinient. So it would be good if “wrap” property was implemented for “includeCSS.x” resource, and possibly not only for this object.

I have already changed file class.tslib_pagegen.php for this.
line 550
“
$GLOBALS[‘TSFE’]->content.=‘
<link rel="'.($GLOBALS['TSFE']->pSetup[‘includeCSS.’][$key.’.’][‘alternate’] ? ‘alternate stylesheet’ : ‘stylesheet’).’” type=“text/css” href=”’.htmlspecialchars($ss).’”’.<br /> ($GLOBALS[‘TSFE’]->pSetup[‘includeCSS.’][$key.’.’][‘title’] ? ‘ title=”’.htmlspecialchars($GLOBALS[‘TSFE’]->pSetup[‘includeCSS.’][$key.’.’][‘title’]).’”’ : ‘’).<br /> ($GLOBALS[‘TSFE’]->pSetup[‘includeCSS.’][$key.’.’][‘media’] ? ‘ media=”’.htmlspecialchars($GLOBALS[‘TSFE’]->pSetup[‘includeCSS.’][$key.’.’][‘media’]).’”’ : ‘’).<br /> ‘ />’;<br />“<br />changed for<br />“<br />$includeCSSlink = ‘ <link rel=">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’]).’”’ : ‘’).
‘ />’;
if (!empty($GLOBALS[‘TSFE’]->pSetup[‘includeCSS.’][$key.’.’][‘wrap’])) {
$GLOBALS[‘TSFE’]->content.= ‘
’.$GLOBALS[‘TSFE’]->cObj->wrap($includeCSSlink, $GLOBALS[‘TSFE’]->pSetup[‘includeCSS.’][$key.’.’][‘wrap’]);
} else {
$GLOBALS[‘TSFE’]->content.= ‘
‘.$includeCSSlink;
}
”

For example I use it like:
page.includeCSS.file4.wrap =

And it shows:

(issue imported from #M4172)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.