views-view-list.tpl.php

  1. 3.x theme/views-view-list.tpl.php
  2. 2.x theme/views-view-list.tpl.php

Default simple view template to display a list of rows.

  • $title : The title of this group of rows. May be empty.
  • $options['type'] will either be ul or ol.

File

theme/views-view-list.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default simple view template to display a list of rows.
  5. *
  6. * - $title : The title of this group of rows. May be empty.
  7. * - $options['type'] will either be ul or ol.
  8. * @ingroup views_templates
  9. */
  10. ?>
  11. <?php print $wrapper_prefix; ?>
  12. <?php if (!empty($title)) : ?>
  13. <h3><?php print $title; ?></h3>
  14. <?php endif; ?>
  15. <?php print $list_type_prefix; ?>
  16. <?php foreach ($rows as $id => $row): ?>
  17. <li class="<?php print $classes_array[$id]; ?>"><?php print $row; ?></li>
  18. <?php endforeach; ?>
  19. <?php print $list_type_suffix; ?>
  20. <?php print $wrapper_suffix; ?>

Related topics