<?if(isset($images) && isset($folder)):?>
	<?foreach($images as $i):?>
	    <a href="/public/gallery/<?=$folder?>/<?=$i?>" class="fancy" title="<?=$i?>" rel="group">
			<img src="/public/gallery/<?=$folder?>/thumbs/<?=$i?>" alt="<?=$i?>" />
		</a>
	<?endforeach;?>
<?endif;?>