I added this around line 100:

<?php
// Add even/odd classes
if($key % 2 || array_search($key, array_keys($links)) % 2) $class .= ' even';
else $class .= ' odd';
?>

I'm not sure why it's not working, though, but here is my feature request...

Comments

sarhansg’s picture

+1

sarhansg’s picture

Is there any way for this module to add Odd/Even classes? The way my menu is designed the odd and even parent links have different background colors. Besides being taxing to CSS them individually, it also isn't practical because each time a new link is added new CSS has to be added.

Any help?

Fidelix’s picture

sarhansg, you can try to use css3 selectors (nth-child), and make it work on IE6-8 with ie9.js or jquery.

sarhansg’s picture

Thanks Fidelix but what you've described seems beyond my capabilities.

sarhansg’s picture

Issue summary: View changes

Syntax Highlighting

mikeegoulding’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)