<p id="breadcrumb">
<?php foreach ($tpl['breadcrumb'] as &$i) : ?>
	<a<?php if (isset($i['current'])) : ?> class="current"<?php endif; ?> href="<?php echo $i['url']; ?>"><?php echo $i['name']; ?></a>
<?php if (isset($i['current'])) : ?>
<?php if (isset($tpl['objects_count'])) : ?>
	<span id="objects_count">[<?php echo (!isset($tpl['options']['display']) || $tpl['options']['display'] == 'list') ? $tpl['objects_count'] : 0; ?>]</span>
<?php endif; ?>
<?php else : ?>
	/
<?php endif; ?>
<?php endforeach; ?>
<?php if (isset($tpl['gallery_link'])) : ?>
	<a title="<?php echo __('Voir dans la galerie'); ?>" class="obj_gallery_link" href="<?php echo $tpl['gallery_link']; ?>"></a>
<?php endif; ?>
</p>
<?php if (isset($tpl['search']['start'])) : ?>
<p>
<?php if (isset($tpl['search']['invalid'])) : ?>
	<span><?php echo __('Recherche périmée ou invalide'); ?></span>
<?php else : ?>
	<span><?php printf(__('Résultat de la recherche « %s »'), '<span id="search_result_query">' . $tpl['search']['query'] . '</span>'); ?></span>
<?php endif; ?>
	&nbsp;-&nbsp;
	<a href="<?php echo $tpl['search']['exit_link']; ?>"><?php echo __('Sortir de la recherche'); ?></a>
</p>
<?php elseif (isset($tpl['filter'])) : ?>
<p>
	<span>
<?php if (isset($tpl['filter']['object_name'])) : ?>
		<?php
			$a = isset($tpl['filter']['object_link'])
				? '<a id="filter_name" href="' . $tpl['filter']['object_link'] . '">'
				. $tpl['filter']['object_name']
				. '</a>'
				: '<span id="filter_name">' . $tpl['filter']['object_name'] . '</span>';
			printf($tpl['filter']['object_text'], $a);
		?>
<?php else : ?>
		<?php echo $tpl['filter']['object_text']; ?>
<?php endif; ?>
	</span>
	&nbsp;-&nbsp;
	<a href="<?php echo $tpl['filter']['exit_link']; ?>"><?php echo $tpl['filter']['exit_text']; ?></a>
</p>
<?php endif; ?>