NP_Zebra.php

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

Requirements

Upgrading

Installing

  1. Download and extract the zip file. Copy the NP_Zebra.php file to the nucleus/plugins directory.
  2. Use the Nucleus Admin GUI to install the NP_Zebra plugin into Nucleus.

How to use the plugin

Use <%Zebra%> to add zebra-striping to lists or items. See more detailed variables below.

SkinVars / TemplateVars

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%> >

Available in any template (including comments)
  • <%Zebra%> : stripes elements with white and gray
  • <%Zebra(style,#ccffcc,pink)%> : stripes the elements in #ccffcc and pink
  • <%Zebra(class,fred,ethel)%> : stripes the elements according to the CSS defined in the classes 'fred' and 'ethel'
Available in any comment template only
  • <%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.

Support and Bug Reports

Please report bugs and request support at the forum thread.

Credits

This plugin is based on an idea and code snippet by Wesley Luyten (wessite). See his post.

History

zebra.txt · Last modified: 2009/02/11 21:00 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki