40 lines
1.5 KiB
PHP
40 lines
1.5 KiB
PHP
<? global $lang;?>
|
|
<ul class="pager">
|
|
<? if ( $this -> current_page > 1 ):?>
|
|
<li>
|
|
<a href="/<?= $this -> link;?><? if ( $this -> query_string ) echo '?' . $this -> query_string;?>"><?= $lang['pierwsza'];?></a>
|
|
</li>
|
|
<li>
|
|
<? if ( $this -> current_page - 1 > 1 ):?>
|
|
<a href="/<?= $this -> link;?>/<?= $this -> current_page - 1;?><? if ( $this -> query_string ) echo '?' . $this -> query_string;?>"><?= $lang['poprzednia'];?></a>
|
|
<? else:?>
|
|
<a href="/<?= $this -> link;?><? if ( $this -> query_string ) echo '?' . $this -> query_string;?>"><?= $lang['poprzednia'];?></a>
|
|
<? endif;?>
|
|
</li>
|
|
<? else:?>
|
|
<li>
|
|
<a href="#" class="inactive"><?= $lang['pierwsza'];?></a>
|
|
</li>
|
|
<li>
|
|
<a href="#" class="inactive"><?= $lang['poprzednia'];?></a>
|
|
</li>
|
|
<? endif;?>
|
|
<li>
|
|
<span><?= $this -> current_page;?> <?= $lang['z'];?> <?= $this -> count_pages;?></span>
|
|
</li>
|
|
<? if ( $this -> current_page < $this -> count_pages ):?>
|
|
<li>
|
|
<a href="/<?= $this -> link;?>/<?= $this -> current_page + 1;?><? if ( $this -> query_string ) echo '?' . $this -> query_string;?>"><?= $lang['nastepna'];?></a>
|
|
</li>
|
|
<li>
|
|
<a href="/<?= $this -> link;?>/<?= $this -> count_pages;?><? if ( $this -> query_string ) echo '?' . $this -> query_string;?>"><?= $lang['ostatnia'];?></a>
|
|
</li>
|
|
<? else:?>
|
|
<li>
|
|
<a href="#" class="inactive"><?= $lang['nastepna'];?></a>
|
|
</li>
|
|
<li>
|
|
<a href="#" class="inactive"><?= $lang['ostatnia'];?></a>
|
|
</li>
|
|
<? endif;?>
|
|
</ul>
|