<p id="page_breadcrumb">
<?php
$category = sprintf($tpl['breadcrumb']['category_text'],
	'<a href="' . $tpl['breadcrumb']['category_link'] . '">' . $tpl['breadcrumb']['category_name'] . '</a>'
);
if (isset($tpl['breadcrumb']['user_link']))
{
	$user = '<a href="' . $tpl['breadcrumb']['user_link'] . '">' . $tpl['breadcrumb']['user_name'] . '</a>';
	printf($tpl['breadcrumb']['text'], $user, $category);
}
else
{
	printf($tpl['breadcrumb']['text'], $category);
}
?>
	[<?php echo $tpl['comments_count']; ?>]
</p>

<?php if ($tpl['pages']['count'] > 1) : ?>
<div id="pages_top">
<?php include('pagination.tpl.php'); ?>
</div>
<?php endif; ?>

<?php if ($tpl['comments_messages']) : ?>
<div id="page_comments">
<?php foreach ($tpl['comments_messages'] as &$i) : ?>
	<div class="comment" data-comment-id="<?php echo $i['id']; ?>" data-user-id="<?php echo $i['user']['id']; ?>">
		<div class="comment_top">
			<div class="comment_thumb<?php if ($i['item']['is_video']) : ?> video<?php endif; ?>">
				<a title="<?php echo $i['item']['title']; ?>" href="<?php echo $i['item']['link']; ?>#content"><img alt="<?php echo $i['item']['title']; ?>" src="<?php echo $i['item']['thumb_src']($thumbs_items_size); ?>"></a>
			</div>
			<div class="comment_infos">
				<div>
					<p class="comment_author">
						<span class="comment_name"><?php if ($i['user']['link']) : ?><a href="<?php echo $i['user']['link']; ?>"><?php endif; ?><?php echo $i['user']['name']; ?><?php if ($i['user']['link']) : ?></a><?php endif; ?></span>
<?php if ($i['user']['website']) : ?>
						<span class="comment_website">(<a href="<?php echo $i['user']['website']; ?>"><?php echo __('site'); ?></a>)</span>
<?php endif; ?>
					</p>
<?php if ($i['user']['edit']) : ?>
					<p class="comment_edit">
						<a data-box="comment" title="<?php echo __('Éditer'); ?>" href="javascript:;">&#xe962;</a>
					</p>
<?php endif; ?>
				</div>
				<div>
					<p class="comment_date">
						<span><?php echo $i['date']; ?></span>
						<span><?php echo $i['date_short']; ?></span>
					</p>
					<p class="comment_num">
						<a href="<?php echo $i['item']['link_comment']; ?>">#<?php echo $i['num']; ?></a>
					</p>
				</div>
			</div>
		</div>
		<p class="comment_message"><?php echo $tpl['format_comment']($i['message']); ?></p>
	</div>
<?php endforeach; ?>
</div>
<?php else : ?>
<p class="message_info"><?php echo __('Aucun commentaire.'); ?></p><br>
<?php endif; ?>

<?php if ($tpl['pages']['count'] > 1) : ?>
<div id="pages_bottom">
<?php include('pagination.tpl.php'); ?>
</div>
<?php endif; ?>
