Greetings,
My site design uses rounded corners. I am displaying a list of upcoming events on the right hand side of my page, and am using the switch command to alternate the background.
The issue arises when I want to put rounded corners at the bottom. As it stands, I have a hard-coded value there. When the number is even, the color is correct and matches that of the final row, when it is odd, it does not.
You can see the incorrect behavior here:
http://www.jeremiahrich.com
I figured what I would need to do was to write a simple plugin that would take a number and return even or odd. That part worked, but I running into a problem when I am trying to issue a command like this:
{exp:stats channel="calendar_events"}
{if {exp:jr_even_or_odd number=absolute_count} == "odd"}
{/exp:stats}It is a pretty minor issue, but I am stumped and would love to have it working. Have any of you come across this before? Thanks!
Also, if you would like my simple odd/even script, feel free to hit me up!