views-foundation-clearing.tpl.php in Views Foundation 7.4
Same filename and directory in other branches
Default simple view template to display a list of rows.
Available variables:
- $title : The title of this group of rows. May be empty.
- $fields: The output for the images, thumbnails and captions.
- $class: CSS class for thumbnail border.
File
theme/views-foundation-clearing.tpl.phpView source
<?php
/**
* @file
* Default simple view template to display a list of rows.
*
* Available variables:
* - $title : The title of this group of rows. May be empty.
* - $fields: The output for the images, thumbnails and captions.
* - $class: CSS class for thumbnail border.
*
* @ingroup views_templates
*/
?>
<div class="row">
<div class="small-12 columns">
<?php
if (!empty($title)) {
?>
<h3><?php
print $title;
?></h3>
<?php
}
?>
<ul class="clearing-thumbs" data-clearing>
<?php
foreach ($fields as $field) {
?>
<li><a class="<?php
print $class['link'];
?>" href="<?php
print $field['image'];
?>">
<img<?php
if (!empty($field['caption'])) {
?> data-caption="<?php
print $field['caption'];
?>"<?php
}
?> src="<?php
print $field['thumbnail'];
?>"></a>
</li>
<?php
}
?>
</ul>
</div>
</div>