Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // $Id: views-view-list.tpl.php,v 1.3.6.3 2010/12/07 17:19:09 dereine Exp $
- /**
- * @file views-view-list.tpl.php
- * Default simple view template to display a list of rows.
- *
- * - $title : The title of this group of rows. May be empty.
- * - $options['type'] will either be ul or ol.
- * @ingroup views_templates
- */
- $row_count = count($rows);
- ?>
- <?php print $wrapper_prefix; ?>
- <?php if (!empty($title)) : ?>
- <h3><?php print $title; ?></h3>
- <?php endif; ?>
- <?php print $list_type_prefix; ?>
- <?php foreach ($rows as $id => $row): ?>
- <?php if ($id == floor($row_count / 2)) print $list_type_suffix . str_replace('left', 'right', $list_type_prefix); ?>
- <li class="<?php print $classes_array[$id]; ?>"><?php print $row; ?></li>
- <?php endforeach; ?>
- <?php print $list_type_suffix; ?>
- <div class="clear-block"></div>
- <?php print $wrapper_suffix; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement