<div id="member_page">
	<h2>
		<a href="<?php echo $tpl['link']('user/' . $tpl['member']['id']); ?>"><?php echo $tpl['member']['nickname']; ?></a>
		<span><a href="<?php echo $tpl['member']['group']['link']; ?>"><?php echo $tpl['member']['group']['title']; ?></a></span>
	</h2>
	<div>
<?php if (!isset($_GET['user_id']) || $tpl['user']['id'] == $_GET['user_id']) : ?>
		<ul id="member_menu">
			<li id="member_menu_profile"<?php if ($_GET['section'] == 'user-profile') : ?> class="current"<?php endif; ?>><a href="<?php echo $tpl['link']('user-profile'); ?>"><span><span class="member_menu_icon">&#xe962;</span><span><?php echo __('Modifier mes informations'); ?></span></span></a></li>
			<li id="member_menu_password"<?php if ($_GET['section'] == 'user-password') : ?> class="current"<?php endif; ?>><a href="<?php echo $tpl['link']('user-password'); ?>"><span><span class="member_menu_icon">&#xe98d;</span><span><?php echo __('Changer de mot de passe'); ?></span></span></a></li>
			<li id="member_menu_avatar"<?php if ($_GET['section'] == 'user-avatar') : ?> class="current"<?php endif; ?>><a href="<?php echo $tpl['link']('user-avatar'); ?>"><span><span class="member_menu_icon">&#xe971;</span><span><?php echo __('Changer d\'avatar'); ?></span></span></a></li>
			<li id="member_menu_options"<?php if ($_GET['section'] == 'user-options') : ?> class="current"<?php endif; ?>><a href="<?php echo $tpl['link']('user-options'); ?>"><span><span class="member_menu_icon">&#xf013;</span><span><?php echo __('Options'); ?></span></span></a></li>
<?php if ($tpl['user']['perms']['upload']) : ?>
			<li id="member_menu_upload"<?php if ($_GET['section'] == 'user-upload') : ?> class="current"<?php endif; ?>><a href="<?php echo $tpl['link']('user-upload'); ?>"><span><span class="member_menu_icon">&#xe9c8;</span><span><?php echo __('Ajouter des fichiers'); ?></span></span></a></li>
<?php endif; ?>
<?php if ($tpl['user']['perms']['create_albums']) : ?>
			<li id="member_menu_new_cat"<?php if ($_GET['section'] == 'user-new-cat') : ?> class="current"<?php endif; ?>><a href="<?php echo $tpl['link']('user-new-cat'); ?>"><span><span class="member_menu_icon">&#xe931;</span><span><?php echo __('Créer un album'); ?></span></span></a></li>
<?php endif; ?>
<?php if (Auth::$isAdmin) : ?>
			<li id="member_menu_admin"><a href="<?php echo $tpl['admin']['path']; ?>/"><span><span class="member_menu_icon">&#xe90c;</span><span><?php echo __('Interface d\'administration'); ?></span></span></a></li>
<?php endif; ?>
		</ul>
<?php endif; ?>
		<div id="member_page_content">
<?php include($tpl['template']['content']); ?>
		</div>
	</div>
</div>