PDA

View Full Version : if ( skin == X )


Borgs8472
12-12-2005, 12:46 AM
Are there conditionals to use for skins?

You see I have too very similar logos on my board, one for the light skins and one for the darks.

If I want to edit the header, the lighter skins inherit the changes, but I must change each of the darker skins manually because their dark logo is customised in their style.

Is there a conditional for say:

if ( skin = skinfo[dark] )
dark logo
else
light logo
/if

or maybe

if ( skin = skinid[1, 3, 7] )

dark logo
else
light logo
/if

Or anything like that at all?

I know the style system is designed so the board can look and function completely differently depending on style, but I only have CSS colour changes on mine, if only the logo could just occasionally be different without editing the header every time!

Dan
12-12-2005, 01:02 AM
Umm.... Just change the logo in the actual style? If there are more than one style then each one has it's own templates and settings.

Borgs8472
12-12-2005, 01:16 AM
^ ^
yeah but I'm fed up with having to modify my darker headers every time I make a cross-style header modification. Do you see?

merk
12-12-2005, 10:01 AM
So use the header variable in main css settings... (which is by far the best method)


to answer your question, the definition (not variable) is STYLEID

<if condition="STYLEID == X">boo</if>

Borgs8472
12-13-2005, 12:20 AM
^ ^
thanks!

How would I use that for an array of a few styleids?