views-fluid-grid-plugin-style--courses-overview--page-1.tpl.php

Default view template to display a list of items in a fluid grid.

Available template variables:

  • $view: The view object.
  • $title: Title of the view. May be empty.
  • $rows: Array of items.
  • $list_class: The class for the items list.
  • $classes: Array of classes for each item.
  • $classes_array: Array of classes for each item.

File

profiles/cis/themes/cis-theme/templates/views-fluid-grid-plugin-style--courses-overview--page-1.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default view template to display a list of items in a fluid grid.
  5. *
  6. * Available template variables:
  7. * - $view: The view object.
  8. * - $title: Title of the view. May be empty.
  9. * - $rows: Array of items.
  10. * - $list_class: The class for the items list.
  11. * - $classes: Array of classes for each item.
  12. * - $classes_array: Array of classes for each item.
  13. *
  14. * @ingroup views_templates
  15. */
  16. ?>
  17. <div class="views-fluid-grid">
  18. <?php if (!empty($title)) : ?>
  19. <h3 class="courses-unit-heading"><?php print $title; ?></h3>
  20. <?php endif; ?>
  21. <ul class="<?php print $list_class; ?>">
  22. <?php foreach ($rows as $id => $item): ?>
  23. <li class="views-fluid-grid-inline views-fluid-grid-item <?php print $classes_array[$id]; ?>"><?php print $item; ?></li>
  24. <?php endforeach; ?>
  25. <?php if (!empty($options['list_alignment']) && $options['list_alignment'] == 'justify') : ?>
  26. <li class="views-fluid-grid-inline views-fluid-grid-justify-last"></li>
  27. <?php endif; ?>
  28. </ul>
  29. </div>

Related topics