/[drupal]/contributions/modules/views/theme/views-view-list.tpl.php
ViewVC logotype

Contents of /contributions/modules/views/theme/views-view-list.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Tue Sep 30 19:47:11 2008 UTC (13 months, 3 weeks ago) by merlinofchaos
Branch: MAIN
CVS Tags: DRUPAL-6--2-0-RC5, DRUPAL-6--2-0-RC4, DRUPAL-6--2-7, DRUPAL-6--2-6, DRUPAL-6--2-5, DRUPAL-6--2-4, DRUPAL-6--2-3, DRUPAL-6--2-2, DRUPAL-6--2-1, DRUPAL-6--2-0, DRUPAL-6--3-0-ALPHA1, HEAD
Branch point for: DRUPAL-6--2, DRUPAL-6--3, DRUPAL-7--3
Changes since 1.2: +3 -3 lines
File MIME type: text/x-php
#281555: Add row classes (first, last, even, odd, row number) to the unformatted and list styles.
1 <?php
2 // $Id: views-view-list.tpl.php,v 1.2 2008/06/03 22:21:42 merlinofchaos Exp $
3 /**
4 * @file views-view-list.tpl.php
5 * Default simple view template to display a list of rows.
6 *
7 * - $title : The title of this group of rows. May be empty.
8 * - $options['type'] will either be ul or ol.
9 * @ingroup views_templates
10 */
11 ?>
12 <div class="item-list">
13 <?php if (!empty($title)) : ?>
14 <h3><?php print $title; ?></h3>
15 <?php endif; ?>
16 <<?php print $options['type']; ?>>
17 <?php foreach ($rows as $id => $row): ?>
18 <li class="<?php print $classes[$id]; ?>"><?php print $row; ?></li>
19 <?php endforeach; ?>
20 </<?php print $options['type']; ?>>
21 </div>

  ViewVC Help
Powered by ViewVC 1.1.2