Projet

Général

Profil

Révision 5d12d676

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/theme/views-view-table.tpl.php
16 16
 *   $rows are keyed by row number, fields within rows are keyed by field ID.
17 17
 * - $field_classes: An array of classes to apply to each field, indexed by
18 18
 *   field id, then row number. This matches the index in $rows.
19
 *
19 20
 * @ingroup views_templates
20 21
 */
21 22
?>
22
<table <?php if ($classes) { print 'class="'. $classes . '" '; } ?><?php print $attributes; ?>>
23
   <?php if (!empty($title) || !empty($caption)) : ?>
23
<table <?php if ($classes): ?> class="<?php print $classes; ?>"<?php endif ?><?php print $attributes; ?>>
24
   <?php if (!empty($title) || !empty($caption)): ?>
24 25
     <caption><?php print $caption . $title; ?></caption>
25 26
  <?php endif; ?>
26 27
  <?php if (!empty($header)) : ?>
27 28
    <thead>
28 29
      <tr>
29 30
        <?php foreach ($header as $field => $label): ?>
30
          <th <?php if ($header_classes[$field]) { print 'class="'. $header_classes[$field] . '" '; } ?> scope="col">
31
          <th <?php if ($header_classes[$field]): ?> class="<?php print $header_classes[$field]; ?>"<?php endif; ?> scope="col">
31 32
            <?php print $label; ?>
32 33
          </th>
33 34
        <?php endforeach; ?>
......
36 37
  <?php endif; ?>
37 38
  <tbody>
38 39
    <?php foreach ($rows as $row_count => $row): ?>
39
      <tr <?php if ($row_classes[$row_count]) { print 'class="' . implode(' ', $row_classes[$row_count]) .'"';  } ?>>
40
      <tr <?php if ($row_classes[$row_count]): ?> class="<?php print implode(' ', $row_classes[$row_count]); ?>"<?php endif; ?>>
40 41
        <?php foreach ($row as $field => $content): ?>
41
          <td <?php if ($field_classes[$field][$row_count]) { print 'class="'. $field_classes[$field][$row_count] . '" '; } ?><?php print drupal_attributes($field_attributes[$field][$row_count]); ?>>
42
          <td <?php if ($field_classes[$field][$row_count]): ?> class="<?php print $field_classes[$field][$row_count]; ?>"<?php endif; ?><?php print drupal_attributes($field_attributes[$field][$row_count]); ?>>
42 43
            <?php print $content; ?>
43 44
          </td>
44 45
        <?php endforeach; ?>

Formats disponibles : Unified diff