Project

General

Profile

Feature #19208 ยป additionalStyleSheets.diff

Administrator Admin, 2008-08-10 21:25

View differences:

typo3/template.php (working copy)
var $scriptID=''; // Script ID.
var $bodyTagId=''; // Id which can be set for the body tag. Default value is based on script ID
var $bodyTagAdditions=''; // You can add additional attributes to the body-tag through this variable.
var $additionalStyleSheets=array(); // Additional CSS files that will be included in header of document
var $inDocStyles=''; // Additional CSS styles which will be added to the <style> section in the header
var $inDocStylesArray=array(); // Like $inDocStyles but for use as array with associative keys to prevent double inclusion of css code
var $form_rowsToStylewidth = 9.58; // Multiplication factor for formWidth() input size (default is 48* this value).
......
$this->inDocStylesArray[]=' BODY { background-image: url('.$this->backPath.$this->backGroundImage.'); }';
}
$additionalStyleSheets = '';
foreach ($this->additionalStyleSheets as $stylesheet) {
$additionalStyleSheets .= '<link rel="stylesheet" type="text/css" href="' . $this->backPath . $stylesheet . '" />
';
}
// Add inDoc styles variables as well:
$this->inDocStylesArray[] = $this->inDocStyles;
$this->inDocStylesArray[] = $this->inDocStyles_TBEstyle;
......
',$this->inDocStylesArray);
// The default color scheme should also in full be represented in the stylesheet.
$style=trim('
'.($this->styleSheetFile?'<link rel="stylesheet" type="text/css" href="'.$this->backPath.$this->styleSheetFile.'" />':'').'
'.($this->styleSheetFile2?'<link rel="stylesheet" type="text/css" href="'.$this->backPath.$this->styleSheetFile2.'" />':'').'
$style = trim('
' . ($this->styleSheetFile ? '<link rel="stylesheet" type="text/css" href="' . $this->backPath.$this->styleSheetFile . '" />' : '') . '
' . ($this->styleSheetFile2 ? '<link rel="stylesheet" type="text/css" href="' . $this->backPath.$this->styleSheetFile2 . '" />' : '') . '
'. $additionalStyleSheets .'
<style type="text/css" id="internalStyle">
/*<![CDATA[*/
'.trim($inDocStyles).'
......
/*]]>*/
</style>
'.($this->styleSheetFile_post?'<link rel="stylesheet" type="text/css" href="'.$this->backPath.$this->styleSheetFile_post.'" />':'')
)
;
);
$this->inDocStyles='';
$this->inDocStylesArray=array();
    (1-1/1)