Project

General

Profile

Actions

Feature #16536

closed

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

Added by Dmytro about 18 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-09-07
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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).'"'.
($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']).'"' : '').
' />';
"
changed for
"
$includeCSSlink = ' <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']).'"' : '').
' />';
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)

Actions

Also available in: Atom PDF