<?php if ($tpl['items']) : ?>
<div class="standalone_help"><p data-help-icon="sort">&nbsp;</p></div>

<form id="thumbs_sort" class="std_thumbs" action="<?php echo $tpl['current_url']; ?>" method="post">
	<div>
<?php foreach ($tpl['items'] as &$i) : ?>
		<dl id="i_<?php echo $i['id']; ?>"<?php if (!$i['activated']) : ?> class="deactivated"<?php endif; ?>>
			<dt>
<?php if ($i['type'] == 'video') : ?>					
				<span class="duration" id="videoduration_<?php echo $i['id']; ?>"><?php echo $i['duration_text']; ?></span>
<?php endif; ?>
				<img src="<?php echo $i['thumb_src'](); ?>">
			</dt>
			<dd>
				<?php echo $i['title']; ?>
			</dd>
		</dl>
<?php endforeach; ?>
	</div>
	<br>
	<div id="submit" class="submit_actions submit_save">
		<div>
			<p id="form_save">
				<input name="anticsrf" type="hidden" value="<?php echo $tpl['anticsrf'](); ?>">
				<input name="serial" type="hidden">
				<input name="save" type="submit" value="<?php echo __('Enregistrer'); ?>">
			</p>
		</div>
	</div>
</form>
<?php else : ?>
<br>
<div class="report_classic">
	<div class="report_msg report_info">
		<p><?php echo __('L\'album ne contient aucun fichier.'); ?></p>
	</div>
</div>
<?php endif; ?>