Permalink
Browse files

Update views table template.

  • Loading branch information...
1 parent 90a3f7e commit bf1feddb4178dd3903dc523c40d7bd4246f1ca85 @yhahn yhahn committed Aug 20, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −4 templates/views-view-table.tpl.php
@@ -27,16 +27,14 @@
</thead>
<?php endif; ?>
<tbody>
- <?php $count = 0; ?>
- <?php foreach ($rows as $class => $row): ?>
- <tr class="<?php if (!is_numeric($class)) print $class ?> <?php print is_numeric($count) && ($count % 2 == 0) ? 'even' : 'odd';?>">
+ <?php foreach ($rows as $count => $row): ?>
+ <tr class="<?php print implode(' ', $row_classes[$count]); ?>">
<?php foreach ($row as $field => $content): ?>
<td class="views-field <?php print $fields[$field]; ?>">
<?php print $content; ?>
</td>
<?php endforeach; ?>
</tr>
- <?php $count++; ?>
<?php endforeach; ?>
</tbody>
</table>

0 comments on commit bf1fedd

Please sign in to comment.