CSS Switcher Question
Posted: 12 August 2004 12:00 PM   [ Ignore ]  
Lab Assistant
RankRank
Total Posts:  125
Joined  08-09-2004

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

Profile
 
 
Posted: 12 August 2004 03:54 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

For others finding this thread, check out the discussion in the comments for the Plugin.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65102 Total Logged-in Users: 61
Total Topics: 82261 Total Anonymous Users: 41
Total Replies: 442097 Total Guests: 250
Total Posts: 524358    
Members ( View Memberlist )