Created
June 18, 2013 22:11
-
-
Save chadsten/5809928 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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