Skip to content

Instantly share code, notes, and snippets.

@chadsten
Created June 18, 2013 22:11
Show Gist options
  • Select an option

  • Save chadsten/5809928 to your computer and use it in GitHub Desktop.

Select an option

Save chadsten/5809928 to your computer and use it in GitHub Desktop.
<?php
print "<ul class='full-images jquery-load'>\n";
$n = 1;
foreach ($data->_field_data['nid']['entity']->field_image_set[und] as $img) {
$render = image_style_url('thumbnail', $img['uri']);
print "<li class='full-image fullsize-item-" . $n . " jquery-load' data-full='$render'>";
if ($n == 1) {
print "<img src='" . $render . "' alt='" . $img['alt'] . "' />";
}
print "</li>\n";
$n++;
}
print "</ul>\n";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment