summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-grid.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-grid.tpl.php')
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-grid.tpl.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-grid.tpl.php b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-grid.tpl.php
index b5dbfac..cd8d39e 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-grid.tpl.php
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/theme/views-view-grid.tpl.php
@@ -1,6 +1,7 @@
<?php
+
/**
- * @file views-view-grid.tpl.php
+ * @file
* Default simple view template to display a rows in a grid.
*
* - $rows contains a nested array of rows. Each row contains an array of
@@ -15,9 +16,9 @@
<table class="<?php print $class; ?>"<?php print $attributes; ?>>
<tbody>
<?php foreach ($rows as $row_number => $columns): ?>
- <tr class="<?php print $row_classes[$row_number]; ?>">
+ <tr <?php if ($row_classes[$row_number]) { print 'class="' . $row_classes[$row_number] .'"'; } ?>>
<?php foreach ($columns as $column_number => $item): ?>
- <td class="<?php print $column_classes[$row_number][$column_number]; ?>">
+ <td <?php if ($column_classes[$row_number][$column_number]) { print 'class="' . $column_classes[$row_number][$column_number] .'"'; } ?>>
<?php print $item; ?>
</td>
<?php endforeach; ?>