lightgallery-view.tpl.php in Lightgallery 7
File
views/lightgallery-view.tpl.php
View source
<?php
$rows = $variables['rows'];
$id = $variables['id'];
$field_labels = $variables['field_labels'];
$row_styles = $variables['row_styles'];
?>
<div class="lightgallery-wrapper">
<ul class="lightgallery" id="lightgallery-<?php
print $id;
?>">
<?php
foreach ($rows as $num => $row) {
?>
<li data-src="<?php
print $row['slide'];
?>" style="<?php
print $row_styles[$num];
?>" data-sub-html="<?php
print $row['title'];
?>">
<?php
if (!empty($field_labels[$num])) {
?>
<div class="field-label">
<label><?php
print $field_labels[$num];
?></label>
</div>
<?php
}
?>
<div class="field-content">
<a href="">
<img class="img-responsive" src="<?php
print $row['thumb'];
?>" />
</a>
</div
</li>
<?php
}
?>
</ul>
</div>