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