views-view-summary.tpl.php

Same filename in other branches
  1. 7.x-3.x theme/views-view-summary.tpl.php

views-view-summary.tpl.php Default simple view template to display a list of summary lines

File

theme/views-view-summary.tpl.php

View source
<?php


/**
 * @file views-view-summary.tpl.php
 * 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($classes[$id]) ? ' class="' . $classes[$id] . '"' : '';
    ?>><?php

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

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

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

    }
    ?>
    </li>
  <?php

}
?>
  </ul>
</div>

Related topics