updated contrib modules
This commit is contained in:
@@ -16,18 +16,19 @@
|
||||
* $rows are keyed by row number, fields within rows are keyed by field ID.
|
||||
* - $field_classes: An array of classes to apply to each field, indexed by
|
||||
* field id, then row number. This matches the index in $rows.
|
||||
*
|
||||
* @ingroup views_templates
|
||||
*/
|
||||
?>
|
||||
<table <?php if ($classes) { print 'class="'. $classes . '" '; } ?><?php print $attributes; ?>>
|
||||
<?php if (!empty($title) || !empty($caption)) : ?>
|
||||
<table <?php if ($classes): ?> class="<?php print $classes; ?>"<?php endif ?><?php print $attributes; ?>>
|
||||
<?php if (!empty($title) || !empty($caption)): ?>
|
||||
<caption><?php print $caption . $title; ?></caption>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($header)) : ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<?php foreach ($header as $field => $label): ?>
|
||||
<th <?php if ($header_classes[$field]) { print 'class="'. $header_classes[$field] . '" '; } ?> scope="col">
|
||||
<th <?php if ($header_classes[$field]): ?> class="<?php print $header_classes[$field]; ?>"<?php endif; ?> scope="col">
|
||||
<?php print $label; ?>
|
||||
</th>
|
||||
<?php endforeach; ?>
|
||||
@@ -36,9 +37,9 @@
|
||||
<?php endif; ?>
|
||||
<tbody>
|
||||
<?php foreach ($rows as $row_count => $row): ?>
|
||||
<tr <?php if ($row_classes[$row_count]) { print 'class="' . implode(' ', $row_classes[$row_count]) .'"'; } ?>>
|
||||
<tr <?php if ($row_classes[$row_count]): ?> class="<?php print implode(' ', $row_classes[$row_count]); ?>"<?php endif; ?>>
|
||||
<?php foreach ($row as $field => $content): ?>
|
||||
<td <?php if ($field_classes[$field][$row_count]) { print 'class="'. $field_classes[$field][$row_count] . '" '; } ?><?php print drupal_attributes($field_attributes[$field][$row_count]); ?>>
|
||||
<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]); ?>>
|
||||
<?php print $content; ?>
|
||||
</td>
|
||||
<?php endforeach; ?>
|
||||
|
Reference in New Issue
Block a user