<div id="breadcrumb_tools">
<?php include('breadcrumb.tpl.php'); ?>
<?php if ($tpl['pages']['first']['active']
	   || $tpl['category']['admin'] || $tpl['category_edit'] || $tpl['selection']
	   || $tpl['category']['upload'] || $tpl['category']['unlocked']
	   || $tpl['category']['download_album'] || $tpl['category']['download_favorites']
	   || $tpl['category']['user_favorites'] || $tpl['category']['in_favorites']
	   || $tpl['category']['history'] || $tpl['category']['cameras'] || $tpl['diaporama']
	   || $tpl['pages']['last']['active']) : ?>
	<ul id="tools" class="cat">
<?php if ($tpl['pages']['first']['active']) : ?>
		<li id="link_prev">
			<a href="<?php echo $tpl['pages']['prev']['link']; ?>#content">&#xf053;</a>
		</li>
<?php endif; ?>
<?php if ($tpl['category']['admin']) : ?>
		<li id="link_admin">
			<a title="<?php echo __('Administrer'); ?>" href="<?php echo $tpl['category']['admin']; ?>">&#xe90c;</a>
		</li>
<?php endif; ?>
<?php if ($tpl['category_edit']) : ?>
		<li id="link_edit">
			<a data-box="category" title="<?php echo __('Éditer'); ?>" href="javascript:;">&#xe962;</a>
		</li>
<?php endif; ?>
<?php if ($tpl['selection']) : ?>
		<li id="link_selection">
			<a data-box="selection" title="<?php echo __('Sélection'); ?>" href="<?php echo $tpl['selection_params']['link']; ?>#content">&#xea52;</a>
		</li>
<?php endif; ?>
<?php if ($tpl['category']['upload']) : ?>
		<li id="link_upload">
			<a title="<?php echo __('Ajouter des fichiers'); ?>" href="<?php echo $tpl['link']('user-upload/album/' . $_GET['album_id']); ?>">&#xe9c8;</a>
		</li>
<?php endif; ?>
<?php if ($tpl['category']['download_album']) : ?>
		<li id="link_download">
			<a title="<?php echo __('Télécharger l\'album'); ?>" href="<?php echo $tpl['category']['download_link']; ?>">&#xe9c7;</a>
		</li>
<?php elseif ($tpl['category']['download_favorites']) : ?>
		<li id="link_download">
			<a title="<?php echo __('Télécharger mes favoris'); ?>" href="<?php echo $tpl['category']['download_link']; ?>">&#xe9c7;</a>
		</li>
<?php endif; ?>
<?php if ($tpl['category']['unlocked']) : ?>
		<li id="link_logout">
			<a data-id="<?php echo $tpl['category']['id']; ?>" title="<?php echo __('Verrouiller'); ?>" href="<?php echo $tpl['category']['link_logout']; ?>">&#xe92e;</a>
		</li>
<?php endif; ?>
<?php if ($tpl['category']['user_favorites']) : ?>
		<li id="link_delete">
			<a data-box="favorites_delete" title="<?php echo __ ('Supprimer mes favoris'); ?>" href="javascript:;">&#xe9ac;</a>
		</li>
<?php endif; ?>
<?php if ($tpl['category']['in_favorites']) : ?>
		<li id="link_favorites">
			<a title="<?php echo __('Consulter mes favoris'); ?>" href="<?php echo $tpl['category']['link'] . '/user-favorites/' . $tpl['user']['id']; ?>#content">&#xe910;</a>
		</li>
<?php endif; ?>
<?php if ($tpl['category']['history']) : ?>
		<li id="link_history">
			<a title="<?php echo __('Historique'); ?>" href="<?php echo $tpl['link']('history/' . $tpl['category']['id']); ?>">&#xe954;</a>
		</li>
<?php endif; ?>
<?php if ($tpl['category']['cameras']) : ?>
		<li id="link_cameras">
			<a title="<?php echo __('Appareils photos'); ?>" href="<?php echo $tpl['link']('cameras/' . $tpl['category']['id']); ?>">&#xe903;</a>
		</li>
<?php endif; ?>
<?php if ($tpl['diaporama']) : ?>
		<li id="link_diaporama">
			<a title="<?php echo __('Lancer un diaporama'); ?>" href="javascript:;">&#xf04b;</a>
		</li>
<?php endif; ?>
<?php if ($tpl['pages']['last']['active']) : ?>
		<li id="link_next">
			<a href="<?php echo $tpl['pages']['next']['link']; ?>#content">&#xf054;</a>
		</li>
<?php endif; ?>
	</ul>
<?php endif; ?>
</div>
