Full ELMS Learning Network documentation
views-field-calc-table.tpl.php
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).- cis7 sites/all/modules/local_sandboxes/views_field_calc/views-field-calc-table.tpl.php
- cis7 profiles/cis/modules/sandbox/views_field_calc/views-field-calc-table.tpl.php
views-view-table.tpl.php Template to display a view as a table.
- $title : The title of this group of rows. May be empty.
- $header: An array of header labels keyed by field id.
- $fields: An array of CSS IDs to use for each field id.
- $class: A class or classes to apply to the table, based on settings.
- $rows: An array of row items. Each row is an array of content
- $totals: An array of calculated totals. Each row contains the total for one calculation. keyed by field ID.
2 string references to the theme hook from views-field-calc-table.tpl.php
Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.
- views_field_calc_views_plugins in sites/
all/ modules/ local_sandboxes/ views_field_calc/ views_field_calc.views.inc - Implements hook_views_plugins().
- views_field_calc_views_plugins in profiles/
cis/ modules/ sandbox/ views_field_calc/ views_field_calc.views.inc - Implements hook_views_plugins().
File
profiles/cis/modules/sandbox/views_field_calc/views-field-calc-table.tpl.phpView source
- <?php
- /**
- * @file views-view-table.tpl.php
- * Template to display a view as a table.
- *
- * - $title : The title of this group of rows. May be empty.
- * - $header: An array of header labels keyed by field id.
- * - $fields: An array of CSS IDs to use for each field id.
- * - $class: A class or classes to apply to the table, based on settings.
- * - $rows: An array of row items. Each row is an array of content
- * - $totals: An array of calculated totals. Each row contains the total for one calculation.
- * keyed by field ID.
- * @ingroup views_templates
- */
- if (empty($rows) && empty($totals)) {
- return;
- }
- ?>
- <table class="<?php print $class; ?>">
- <?php if (!empty($title)) : ?>
- <caption><?php print $title; ?></caption>
- <?php endif; ?>
- <thead>
- <tr>
- <?php foreach ($header as $field => $label): ?>
- <th class="views-field views-field-<?php print $fields[$field]; ?> <?php print $options['info'][$field]['align'] ?>">
- <?php print $label; ?>
- </th>
- <?php endforeach; ?>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($rows as $count => $row): ?>
- <tr class="<?php print ($count % 2 == 0) ? 'even' : 'odd';?>">
- <?php foreach ($row as $field => $content): ?>
- <td class="views-field views-field-<?php print $fields[$field]; ?> <?php print $options['info'][$field]['align'] ?>">
- <?php print $content; ?>
- </td>
- <?php endforeach; ?>
- </tr>
- <?php endforeach; ?>
- </tbody>
- <tfoot>
- <tr class="view-subfooter-ftotal">
- <?php foreach($total as $field => $content) :?>
- <td class="view-subfooter views-field views-field-<?php print $fields[$field]; ?> <?php print $options['info'][$field]['align'] ?>">
- <?php print $content; ?>
- </td>
- <?php endforeach; ?>
- </tr>
- </tfoot>
-
- </table>
-