I think this is the place to put this question.
I am configuring the CSS_Switcher plugin and I am having difficulty getting it to work. I believe I have it narrowed down to the problem, but I am at a loss for the solution.
The problem lies in the fact that all of my CSS information are in a template group (EE) and each CSS is a template. So to properly display the css I must use the EE Tag {stylesheet=css/css_file} which is fine, but I am unsure what the proper syntax needs to be so that the string outputed is what is needs to be so the skin is displayed. Here is what I have:
The pi.css_switcher.php file:
var $css = array(
‘1’ => “{stylesheet=css/css-gt}”,
‘2’ => “{stylesheet=css/css-openwheel}”,
‘3’ => “{stylesheet=css/css-rally}”,
‘4’ => “{stylesheet=css/css-stockcar}”,
‘5’ => “{stylesheet=css/css-wsc}”
);
the embedded ee tag:
{exp:css_switcher}
<link rel=‘stylesheet’ type=‘text/css’ media=‘all’ href=’{file}’ />
<style type=‘text/css’ media=‘screen’>@import “{file}”;</style>
{/exp:css_switcher}
this tag doesn’t work though. Any ideas?
Thanks!
Dan
