views-view-grouping.tpl.php
This template is used to print a single grouping in a view.
It is not actually used in default Views, as this is registered as a theme function which has better performance. For single overrides, the template is perfectly okay.
Variables available:
- $view: The view object
- $grouping: The grouping instruction.
- $grouping_level: Integer indicating the hierarchical level of the grouping.
- $rows: The rows contained in this grouping.
- $title: The title of this grouping.
- $content: The processed content output that will normally be used.
1 theme call to views-view-grouping.tpl.php
- views_plugin_style::render_grouping_sets in plugins/
views_plugin_style.inc - Render the grouping sets.
File
View source
<?php
/**
* @file
* This template is used to print a single grouping in a view.
*
* It is not actually used in default Views, as this is registered as a theme
* function which has better performance. For single overrides, the template is
* perfectly okay.
*
* Variables available:
* - $view: The view object
* - $grouping: The grouping instruction.
* - $grouping_level: Integer indicating the hierarchical level of the grouping.
* - $rows: The rows contained in this grouping.
* - $title: The title of this grouping.
* - $content: The processed content output that will normally be used.
*/
?>
<div class="view-grouping">
<div class="view-grouping-header"><?php
print $title;
?></div>
<div class="view-grouping-content">
<?php
print $content;
?>
</div>
</div>