EE 1
EE 2
Zoo Zeebra
Developer
3rd Party (Free)
Download v1.1
Compatibility
- LG Addon Updater
- Multi Site Manager
- Stand Alone Entry Form
Requirements
- jQuery for the Control Panel
Tags
Zoo Zeebra is a very simple plugin that adds first and last classes to your lists/entries. It also adds classes for certain intervals (default 2, for odd and even rows).
Attributes
- tips (default: “yes”) (other values: “no”)
- tipsclass (default: “first|last”)
- interval (default: “2”) (other values: numeric, or “no”)
- intervalclass (default: “item-%”) (Can be any value, % will be replaced by the interval)
Usage
Standard usage
{exp:zeebra}
<ul>
{exp:channel:entries}
<li class="{zeebra}">{title}</li>
{/exp:channel:entries}
</ul>
{/exp:zeebra}
Interval attributes
{exp:zeebra tips="no" interval="5" intervalclass="nth-%"}
<ul>
{exp:channel:entries}
<li class="{zeebra}">{title}</li>
{/exp:channel:entries}
</ul>
{/exp:zeebra}
Tips attributes
{exp:zeebra tipsclass="uno|duo" interval="no"}
<ul>
{exp:channel:entries}
<li class="{zeebra}">{title}</li>
{/exp:channel:entries}
</ul>
{/exp:zeebra}
Changelog
1.1
- Better packaging
- Added missing usage information inside EE
Download Zoo Zeebra
| EE Version | Downloads | Add-On Version | Release Date |
|---|---|---|---|
| 2.+ | Download | 1.1 | 2010-09-03 12:00 AM |
This entry was last updated April 13, 2011, 5:03 pm.
Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!


4 Reviews:
ejaeDesign 06.06.11
Quite handy — sure you can use {count} variable or modulo variable too, but this makes it a worthy go-to plugin for quick class outputs for it simplicity alone. Note – do not output two {zeebra} variables in a single loop, as it will throw off the counts.
applesoda 03.10.11
Extremely useful addon!
bennobo 09.22.10
Very useful lines of code.
THANKS A LOT!
ChristopherR 09.01.10
This add-on needs better packaging. You currently have to create the Zeebra folder in your third_party folder and rename the php file to pi.zeebra.php (to include the first dot).
Otherwise the add-on works exactly as advertised.