views-view-summary-unformatted.tpl.php

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

Default simple view template to display a group of summary lines.

This wraps items in a span if set to inline, or a div if not.

File

theme/views-view-summary-unformatted.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default simple view template to display a group of summary lines.
  5. *
  6. * This wraps items in a span if set to inline, or a div if not.
  7. *
  8. * @ingroup views_templates
  9. */
  10. ?>
  11. <?php foreach ($rows as $id => $row): ?>
  12. <?php print (!empty($options['inline']) ? '<span' : '<div') . ' class="views-summary views-summary-unformatted">'; ?>
  13. <?php if (!empty($row->separator)) { print $row->separator; } ?>
  14. <a href="<?php print $row->url; ?>"<?php print !empty($row_classes[$id]) ? ' class="' . $row_classes[$id] . '"' : ''; ?>><?php print $row->link; ?></a>
  15. <?php if (!empty($options['count'])): ?>
  16. (<?php print $row->count; ?>)
  17. <?php endif; ?>
  18. <?php print !empty($options['inline']) ? '</span>' : '</div>'; ?>
  19. <?php endforeach; ?>

Related topics