You are here

views-view-summary.tpl.php in Views (for Drupal 7) 8.3

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

File

theme/views-view-summary.tpl.php
View source
<?php

/**
 * @file
 * Default simple view template to display a list of summary lines.
 *
 * @ingroup views_templates
 */
?>
<div class="item-list">
  <ul class="views-summary">
  <?php

foreach ($rows as $id => $row) {
  ?>
    <li><a href="<?php

  print $row->url;
  ?>"<?php

  print !empty($row_classes[$id]) ? ' class="' . $row_classes[$id] . '"' : '';
  ?>><?php

  print $row->link;
  ?></a>
      <?php

  if (!empty($options['count'])) {
    ?>
        (<?php

    print $row->count;
    ?>)
      <?php

  }
  ?>
    </li>
  <?php

}
?>
  </ul>
</div>

Related topics