Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update views table template.

  • Loading branch information...
commit bf1feddb4178dd3903dc523c40d7bd4246f1ca85 1 parent 90a3f7e
@yhahn yhahn authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 templates/views-view-table.tpl.php
View
6 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>
Please sign in to comment.
Something went wrong with that request. Please try again.