CSS Style Switcher…. part deux
-
I've been a busy beaver tonight. I took Alex's wonderful CSS Style Switcher and added a little twist of my own. I didn't care too much to have all the styles listed in one massive list, and because some of the styles don't markup unlinked bullet items, it was difficult to tell which one actually was selected.
So, I added an additional function, wp_style_switcher_dropdown, which returns the lsit of styles in a dropdown list (see/get/grab/steal code from my site here.
It takes two parameters. The first is $in_list, and works like it does on the original function. If set to 1 (default) the resulting form will be wrapped in- tags (handy for the menu.) If set to 0, then it will not add the
- tags. Second parameter $submit, is the text of the submit button (default is "View Style").
I've got it up on my site if you want to see it running. Comment/Suggestions (both good & bad) are welcome.
TG
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘CSS Style Switcher…. part deux’ is closed to new replies.