<p id="page_breadcrumb">
<?php
$category = sprintf($tpl['breadcrumb']['category_text'],
	'<a href="' . $tpl['breadcrumb']['category_link'] . '">' . $tpl['breadcrumb']['category_name'] . '</a>'
);
printf($tpl['breadcrumb']['text'], $category);
?>
</p>

<div id="history_type">
	<p><a<?php if ($_GET['params'][2] == 'date-published') : ?> class="current"<?php endif; ?> href="<?php echo $tpl['history_link_published']; ?>"><?php echo __('Date de publication'); ?></a></p>
	<p><a<?php if ($_GET['params'][2] == 'date-created') : ?> class="current"<?php endif; ?> href="<?php echo $tpl['history_link_created']; ?>"><?php echo __('Date de création'); ?></a></p>
</div>

<?php if ($tpl['history']) : ?>
<?php if ($tpl['history_current_date']) : ?>
<p id="history_current"><?php echo $tpl['history_current_date']; ?></p>
<?php endif; ?>
<div id="history" class="thumbs_items <?php echo $thumbs_items_layout; ?>">
<?php foreach ($tpl['history'] as $date => &$i) : ?>
	<div>
<?php if ($i['link_history']) : ?>
		<div class="history_date"><a href="<?php echo $i['link_history']; ?>"><?php echo $date; ?></a></div>
<?php else : ?>
		<div class="history_date"><?php echo $date; ?></div>
<?php endif; ?>
		<div class="history_thumb" data-id="<?php echo $i['item']['id']; ?>"><a href="<?php echo $i['link_items']; ?>#content"><img alt="<?php echo $i['item']['title']; ?>" src="<?php echo $i['item']['thumb_src']($thumbs_items_size); ?>"<?php if ($i['item']['is_video']) : ?> data-video-id="<?php echo $i['item']['id']; ?>"<?php endif; ?>></a></div>
		<div class="history_count"><a tabindex="-1" href="<?php echo $i['link_items']; ?>"><?php echo $i['count_text']; ?></a></div>
	</div>
<?php endforeach; ?>
</div>
<?php endif; ?>
