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

File

theme/views-view-grouping.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * This template is used to print a single grouping in a view.
  5. *
  6. * It is not actually used in default Views, as this is registered as a theme
  7. * function which has better performance. For single overrides, the template is
  8. * perfectly okay.
  9. *
  10. * Variables available:
  11. * - $view: The view object
  12. * - $grouping: The grouping instruction.
  13. * - $grouping_level: Integer indicating the hierarchical level of the grouping.
  14. * - $rows: The rows contained in this grouping.
  15. * - $title: The title of this grouping.
  16. * - $content: The processed content output that will normally be used.
  17. */
  18. ?>
  19. <div class="view-grouping">
  20. <div class="view-grouping-header"><?php print $title; ?></div>
  21. <div class="view-grouping-content">
  22. <?php print $content; ?>
  23. </div>
  24. </div>