Révision eefc2ac0
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/themes/bootstrap/templates/views/views-view-table.tpl.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
2 | 3 |
/** |
3 | 4 |
* @file |
4 | 5 |
* Template to display a view as a table. |
... | ... | |
23 | 24 |
<?php if ($responsive): ?> |
24 | 25 |
<div class="table-responsive"> |
25 | 26 |
<?php endif; ?> |
26 |
<table <?php if ($classes): print 'class="' . $classes . '" '; endif; ?><?php print $attributes; ?>>
|
|
27 |
<?php if (!empty($title) || !empty($caption)) : ?>
|
|
27 |
<table <?php print $classes ? 'class="' . $classes . '" ' : ''; ?><?php print $attributes; ?>>
|
|
28 |
<?php if (!empty($title) || !empty($caption)) : ?> |
|
28 | 29 |
<caption><?php print $caption . $title; ?></caption> |
29 | 30 |
<?php endif; ?> |
30 | 31 |
<?php if (!empty($header)) : ?> |
31 | 32 |
<thead> |
32 | 33 |
<tr> |
33 | 34 |
<?php foreach ($header as $field => $label): ?> |
34 |
<th <?php if ($header_classes[$field]): print 'class="' . $header_classes[$field] . '" '; endif; ?>>
|
|
35 |
<th <?php print $header_classes[$field] ? 'class="' . $header_classes[$field] . '" ' : ''; ?>>
|
|
35 | 36 |
<?php print $label; ?> |
36 | 37 |
</th> |
37 | 38 |
<?php endforeach; ?> |
... | ... | |
40 | 41 |
<?php endif; ?> |
41 | 42 |
<tbody> |
42 | 43 |
<?php foreach ($rows as $row_count => $row): ?> |
43 |
<tr <?php if ($row_classes[$row_count]): print 'class="' . implode(' ', $row_classes[$row_count]) . '"'; endif; ?>>
|
|
44 |
<tr <?php print $row_classes[$row_count] ? 'class="' . implode(' ', $row_classes[$row_count]) . '"' : ''; ?>>
|
|
44 | 45 |
<?php foreach ($row as $field => $content): ?> |
45 |
<td <?php if ($field_classes[$field][$row_count]): print 'class="' . $field_classes[$field][$row_count] . '" '; endif; ?><?php print drupal_attributes($field_attributes[$field][$row_count]); ?>>
|
|
46 |
<td <?php print $field_classes[$field][$row_count] ? 'class="' . $field_classes[$field][$row_count] . '" ' : ''; ?><?php print drupal_attributes($field_attributes[$field][$row_count]); ?>>
|
|
46 | 47 |
<?php print $content; ?> |
47 | 48 |
</td> |
48 | 49 |
<?php endforeach; ?> |
Formats disponibles : Unified diff
Weekly update of contrib modules