Style Switcher 2

The Style Switcher module takes the fuss out of creating themes or building sites with alternate stylesheets. Themer can provide a theme with alternate stylesheets. Site builder can add alternate stylesheets found in the internet right in the admin section. And this module presents all those styles to site users as a block with a list of links. So any site user is able to choose the style of the site he/she prefers.

How to provide form elements on your settings page?

Add a conditional

Settings can be added to your settings page the usual way. If you declare the Style (CSS) Settings module only as a soft-dependency (thus not required), it makes sense to show settings only if the Style Settings module is enabled by wrapping all Style Settings specific form elements inside a conditional:

  if (module_exists('style_settings')) { ... }

Code example

Code example for developers to add UI configurable CSS to their project using the Style Settings module.

Operators Explained

=
equals (exact value of a property, consider ThemeKey Debug to get an impression of the possible values)
!
not equals
*
contains
!*
not contains
<
less than (alphanumeric values are treated in alphabetical order: "A" is less than "B" but "B" is less than "a")
<=
less than or equal to (alphanumeric values are treated in alphabetical order: "a" is less than "b" but "B" is less than "a" and "A" is less than "a")
>

Pages

Subscribe with RSS Subscribe to RSS - Designers/themers