<table border="0" cellspacing="0" cellpadding="0" width="100%" class="ccm-gallery">
<tbody>
<tr>
<td>
<?php for($i=0;$i<count($images);$i++){ ?>
<?php $imgInfo = $images[$i]; ?>
<?php $f = File::getByID($imgInfo['fID']); ?>
<?php $caption = array_key_exists('caption', $imgInfo) ? $imgInfo['caption'] : $f->getTitle();?>
<?php if($i % $thumbnailPerRow == 0) {?>
</td>
</tr>
<tr>
<?php } ?>
<td id="file_<?php echo $imgInfo['fID'];?>" class="galleryImages">
<a href="<?php echo $f->getRelativePath()?>" title="<?php echo $imgInfo['caption']?>"><?php $ih->outputThumbnail($f,$thumbnailWidth,$thumbnailHeight,''); ?></a>
Easy to use! Best use of $15!