I've added a $zebra class to li's on a custom list view theme, but it's only adding "odd" -- no "even" classes. Any ideas? The list theme looks like this:
<div class="item-list" >
<?php if (!empty($title)) : ?>
<h3><?php print $title; ?></h3>
<?php endif; ?>
<<?php print $options['type']; ?>>
<?php foreach ($rows as $row): ?>
<li class="<?php print $zebra; ?>">
<?php print $row ?>
</li>
<?php endforeach; ?>
</<?php print $options['type']; ?>>
</div>
Comments
Comment #1
mndonx commentedWell, I solved that almost immediately after posting. I should have been theming a views-view-field template tpl instead of views-view-list.
Comment #2
zealfire commentedclosing as problem resolved by user who posted it himself