<?php

	/*
	==================================================================
	expects $images to be populated with the following
		
	
	Array
	(
		[53] => Array
			(
				[ID] => 53
				[img] => stdClass Object
					(
						[url] => http://alphaproddb.goseese.com/wp-content/uploads/2010/07/d82f154bc00ec469a91dd1921110a8ad-11-150x150.jpg
						[html] => <img src = "....." />
						[w] => 100
						[h] => 100
						[title] => d82f154bc00ec469a91dd1921110a8ad-1
					)
	
			)
			
	==================================================================  */
		
	if (!is_array($images) || count($images) < 1 ) { return; }
	?><div class = "gs-alternate-images-sortable"><?php
	foreach ($images as $image)
	{
		?>
		
		<div class = "alternate-image-row" role = "<?php echo $image['ID'];?>">
		<div class = "gsaltimg-icon close" onclick = "gsaltimg.drop_media_ID(this);"></div><div class = "gsaltimg-icon handle"></div>
		<p title = "<?php echo htmlentities(html_entity_decode($image['img']->title)); ?>"><?php echo (strlen($image['img']->title) > 35? substr($image['img']->title,0,32).'&#8230;' : $image['img']->title); ?></p>
		<table style = "width: 95%">
			<tr><td valign = "top" style = "width: 49%" >
				<p>
				ID: <?php echo $image['ID'];?><br>
				Dimensions:<br>
				Width: <?php echo $image['img']->full_size_width;?>px<br>Height:<?php echo $image['img']->full_size_height;?>px
				</p>
			</td>
				<td valign = "top" align = "center" ><?php echo $image['img']->html; ?></td>
			</tr>
		</table>
		
		</div>
		<!-- end of preview for <?php echo $image['ID'];?> -->
	<?php
	} ?>
	</div><!-- end of gs-alternate-images-sortable -->
<?php 
	

