This plugin is used to add a zebra-stripe effect to items/comments/lists.
| General Plugin info |
| Author: | Frank Truscott |
| Current Version: | 1.1 |
| Download: | n/a |
| Code: | Code |
| Demo: | n/a |
| Forum Thread: | Forum thread |
Download and extract the zip file. Copy the NP_Zebra.php file to the nucleus/plugins directory.
Use the Nucleus Admin
GUI to install the NP_Zebra plugin into Nucleus.
Use <%Zebra%> to add zebra-striping to lists or items.
See more detailed variables below.
Note: all occurrences of these tags need to be within an html element containing the area to be striped, i.e. in a list element or a div like this
<li <%Zebra%> >
or
<div <%Zebra%> >
<%Zebra(class,fred,ethel)%> : stripes the elements according to the
CSS defined in the classes 'fred' and 'ethel'
<%Zebra(comment-style)%> : stripes comments in white, gray, yellow, blue, green depending whether the comment was left by a non-member, a member, the item author, a blog admin, or a super-admin, respectively.
<%Zebra(comment-style,#ccffcc,pink,green,#112233,#332211)%> : stripes comments in #ccffcc, pink, green, #112233, #332211 depending whether the comment was left by a non-member, a member, the item author, a blog admin, or a super-admin, respectively.
<%Zebra(comment-class,fred,ethel,ricky,lucy,littlericky)%> : stripes the elements according to the
CSS defined in the classes 'fred', 'ethel', 'ricky', 'lucy', or 'littlericky' depending whether the comment was left by a non-member, a member, the item author, a blog admin, or a super-admin, respectively.
This plugin is based on an idea and code snippet by Wesley Luyten (wessite). See his post.