You only need TEMPLATE_PATH in the style.css, because it is loaded through serendipity.css.php and its relative URL is inside the main root directory. Unlike all other CSS files which are loaded through the real path they live in, so you can reference any paths relatively to that CSS file (img/...). So if you like to load a template dependant file, you would need to put the CSS file inside the template directory.
The CSS files are loaded directly, so there is no way for PHP to kick in. If you need any replacement, you would need to use an event plugin with "external_plugin" hook to create a custom URL like index.pph?/plugin/mycss which uses PHP to output/read any CSS files.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
I don't really understand...
I use a event plugin hook inside the event plugin I am working on with case 'css'.
The file style_myplugin_backend.css is located in my plugin folder and in the bulletproof template folder where it is loaded correctly and I can't use url('img/foo.png') nor url('{TEMPLATE_PATH}img/foo.png').
In your 'css' event hook you would need to replace the variables yourself; have a look at how serendipty.css.php parses the path.
There's no smarty parsing, it's only a str_replace() on two fixed variables.
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/