-
Notifications
You must be signed in to change notification settings - Fork 0
CCS Class Switcher
dollardad/PyroCMS-switcher
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
UPDATE Not required any more for PyroCMS 2.2 + ---------------------------------------------- Switcher is a simple plugin for PyroCMS version 2+ It allows you to allocate a number of alternative css classes to an element that is running within a block of code for example the blog module Installation as per any other plugin for PyroCMS. Syntax {{ switcher:class_row class="red|blue|white" }} Note: That it uses the pipe key between each class. No limit to the number of classes. Example: Within the blog Module, on the page that dislays a list of teasers {{ blog:posts limit="5" order-by="title" order-dir="desc" url="news" }} <!-- Use switcher here --> <div class="{{ switcher:class_row class="red|blue|white" }}"> // Now the rest of your code/markup </div> {{/blog:posts}}
About
CCS Class Switcher
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published