<? 
  global $lang;
  
  $this -> page['language']['seo_link'] ? $link = $this -> page['language']['seo_link'] : $link = 's-' . $this -> page['id'] . '-' . \S::seo( $this -> page['language']['title'] );
?>
<ul class="pager">
  <? if ( $this -> bs > 1 ):?>
    <li>
      <a href="/<?= $link;?>"><?= $lang['pierwsza'];?></a>
    </li>
    <li>
      <? if ( $this -> bs - 1 > 1 ):?>
        <a href="/<?= $link;?>-s-<?= $this -> bs - 1;?>"><?= $lang['poprzednia'];?></a>
      <? else:?>
        <a href="/<?= $link;?>"><?= $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 -> bs ;?> <?= $lang['z'];?> <?= $this -> ls;?></span>
    </li>
  <? if ( $this -> bs < $this -> ls ):?>
    <li>
      <a href="/<?= $link;?>-s-<?= $this -> bs + 1;?>"><?= $lang['nastepna'];?></a>
    </li>
    <li>
      <a href="/<?= $link;?>-s-<?= $this -> ls;?>"><?= $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>