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.
1 string reference to the theme hook from views-view-list.tpl.php
File
core/modules/views/templates/views-view-list.tpl.php
View source <?php
* @file
* 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
*/
?>
<?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 ): ?>
<li class=" <?php if (!empty ($row_classes [$id ])) { print implode (' ' , $row_classes [$id ]); } ?> "> <?php print $row ; ?> </li>
<?php endforeach ; ?>
<?php print $list_type_suffix ; ?>
<?php print $wrapper_suffix ; ?>
Related topics