<nav class="pages">
<?php if ($tpl['pages']['first']['active']) : ?>
	<div class="link first"><a href="<?php echo $tpl['pages']['first']['link']; ?>#content"><span>&lt;&lt;</span></a></div>
	<div class="link prev"><a href="<?php echo $tpl['pages']['prev']['link']; ?>#content"><span>&lt;</span></a></div>
<?php else : ?>
	<div class="link first"><span><span>&lt;&lt;</span></span></div>
	<div class="link prev"><span><span>&lt;</span></span></div>
<?php endif; ?>
<?php if ($_GET['section'] != 'item') : ?>
<?php $page = isset($page) ? ++$page : 1; ?>
	<form action="<?php echo $tpl['current_url_pageless']; ?>" method="post" autocomplete="off">
		<label for="page_<?php echo $page; ?>"><?php echo __('Page'); ?></label>
		<input name="anticsrf" type="hidden" value="<?php echo $tpl['anticsrf'](); ?>">
		<input name="anchor" type="hidden" value="content">
		<input id="page_<?php echo $page; ?>" name="page" type="text" value="<?php echo $_GET['page']; ?>" maxlength="12" size="6">
		/
		<span class="count"><?php echo $tpl['pages']['count']; ?></span>
	</form>
<?php endif; ?>
<?php if ($tpl['pages']['last']['active']) : ?>
	<div class="link next"><a href="<?php echo $tpl['pages']['next']['link']; ?>#content"><span>&gt;</span></a></div>
	<div class="link last"><a href="<?php echo $tpl['pages']['last']['link']; ?>#content"><span>&gt;&gt;</span></a></div>
<?php else : ?>
	<div class="link next"><span><span>&gt;</span></span></div>
	<div class="link last"><span><span>&gt;&gt;</span></span></div>
<?php endif; ?>
</nav>