Projet

Général

Profil

Paste
Télécharger (1001 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / views / theme / views-view-grid.tpl.php @ 5d12d676

1
<?php
2

    
3
/**
4
 * @file
5
 * Default simple view template to display a rows in a grid.
6
 *
7
 * - $rows contains a nested array of rows. Each row contains an array of
8
 *   columns.
9
 *
10
 * @ingroup views_templates
11
 */
12
?>
13
<?php if (!empty($title)) : ?>
14
  <h3><?php print $title; ?></h3>
15
<?php endif; ?>
16
<table class="<?php print $class; ?>"<?php print $attributes; ?>>
17
  <?php if (!empty($caption)) : ?>
18
    <caption><?php print $caption; ?></caption>
19
  <?php endif; ?>
20

    
21
  <tbody>
22
    <?php foreach ($rows as $row_number => $columns): ?>
23
      <tr <?php if ($row_classes[$row_number]):?> class="<?php print $row_classes[$row_number]; ?>"<?php endif; ?>>
24
        <?php foreach ($columns as $column_number => $item): ?>
25
          <td <?php if ($column_classes[$row_number][$column_number]): ?> class="<?php print $column_classes[$row_number][$column_number]; ?>"<?php endif; ?>>
26
            <?php print $item; ?>
27
          </td>
28
        <?php endforeach; ?>
29
      </tr>
30
    <?php endforeach; ?>
31
  </tbody>
32
</table>