We've been switching between an odd/even classes during a foreach loop like this:
<?php
$count = 0;
foreach ($pages as $page) { ?>
<div class="row <php echo (++$count%2 ? "odd" : "even") ?>">
...page_list or product_list output
</div>
<php } ?>
But how would we switch between 3 or more css classes?
Any pointers in the right direction would be much appreciated.
Cheers
Ben