Skip to content

Instantly share code, notes, and snippets.

@richardegil
Created October 17, 2012 20:37
Show Gist options
  • Save richardegil/3908001 to your computer and use it in GitHub Desktop.
Save richardegil/3908001 to your computer and use it in GitHub Desktop.
loop
if ($attachments) {
$i = 1;
foreach ($attachments as $attachment) {
echo '<a href="#myCarousel" data-to="' . $i . '" class="carousel-nav-item">' . $i .'</a>';
$i++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment