<?php
/*
 * ARI Media Gallery Joomla! module
 *
 * @package		ARI Data Tables Joomla! module.
 * @version		1.0.0
 * @author		ARI Soft
 * @copyright	Copyright (c) 2009 www.ari-soft.com. All rights reserved
 * @license		GNU/GPL (http://www.gnu.org/copyleft/gpl.html)
 * 
 */

(defined('_JEXEC') && defined('ARI_FRAMEWORK_LOADED')) or die;

$data = isset($params['data']) ? $params['data'] : null;
$isCurrentPage = $params['isCurrentPage'];
?>
<div class="ari-media-gallery-page<?php if (!$isCurrentPage):?> page-hidden<?php endif; ?>">
<?php
	if ($data): 
		foreach ($data as $dataItem): 
?>
	<div class="ari-media-gallery-item">
		<div class="item-outer">
			<div class="item-shadow">&nbsp;</div>
			<div class="item-inner">
				<div class="item-content">
					<?php echo $dataItem['__item']; ?>
					<div class="item-marker"></div>
				</div>
			</div>
		</div>
		<div class="item-title"><?php echo isset($dataItem['Title']) ? $dataItem['Title'] : ''; ?></div>
	</div>
<?php
		endforeach;
	endif;
?>
</div>