[pmwiki-users] php advice needed

noskule noskule at gmx.net
Wed Nov 12 11:05:12 CST 2008


hi list
In my skin I render css files via php useing variables instead of fixed color 
values. Here how it works (simplified)


style.css file:
<?php
return<<<EOF

a {
	color:$links_color;
}

EOF;
?>


skin.php file:
<?php 
$links_color = "red";

$css_output = include(style.css);

$HTMLHeaderFmt['cssgenerator'] = "<style type='text/css'><!--
\n".$css_output."\n--></style>";


this works just fine. But I'm looking for a way to avoid the EOF  part in 
style.css. Does anyone have a clue how to do that?

thanks for any hints 
nos



More information about the pmwiki-users mailing list