Advertisement
Guest User

Untitled

a guest
Sep 19th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <?php
  2. // $Id: views-view-list.tpl.php,v 1.3.6.3 2010/12/07 17:19:09 dereine 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. $row_count = count($rows);
  12. ?>
  13. <?php print $wrapper_prefix; ?>
  14. <?php if (!empty($title)) : ?>
  15. <h3><?php print $title; ?></h3>
  16. <?php endif; ?>
  17. <?php print $list_type_prefix; ?>
  18. <?php foreach ($rows as $id => $row): ?>
  19. <?php if ($id == floor($row_count / 2)) print $list_type_suffix . str_replace('left', 'right', $list_type_prefix); ?>
  20. <li class="<?php print $classes_array[$id]; ?>"><?php print $row; ?></li>
  21. <?php endforeach; ?>
  22. <?php print $list_type_suffix; ?>
  23. <div class="clear-block"></div>
  24. <?php print $wrapper_suffix; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement