<?
  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;?>" class="pager__last" title="pierwsza">
      <i class="fa-solid fa-backward-fast"></i>
    </a>
  </li>
  <li>
    <? if ( $this -> bs - 1 > 1 ):?>
    <a href="/<?= $link;?>/s/<?= $this -> bs - 1;?>" class="pager__back" title="poprzednia">
      <i class="fa-solid fa-caret-left"></i>
    </a>
    <? else:?>
    <a href="/<?= $link;?>" class="pager__back" title="poprzednia">
      <i class="fa-solid fa-caret-left"></i>
    </a>
    <? endif;?>
  </li>
  <? else:?>
  <!-- <li>
    <a href="#" class="inactive"><?= $lang['pierwsza'];?></a>
  </li>
  <li>
    <a href="#" class="inactive"><?= $lang['poprzednia'];?></a>
  </li> -->
  <? endif;?>
  <li class="pager__text">
    <span><?= $this -> bs ;?> <?= $lang['z'];?> <?= $this -> ls;?></span>
  </li>
  <? if ( $this -> bs < $this -> ls ):?>
  <li>
    <a href="/<?= $link;?>/s/<?= $this -> bs + 1;?>" class="pager__back" title="nastepna">
      <i class="fa-solid fa-caret-right"></i>
    </a>
  </li>
  <li>
    <a href="/<?= $link;?>/s/<?= $this -> ls;?>" class="pager__last" title="ostatnia">
      <i class="fa-solid fa-forward-fast"></i>
    </a>
  </li>
  <? else:?>
  <!-- <li>
    <a href="#" class="inactive"><?= $lang['nastepna'];?></a>
  </li>
  <li>
    <a href="#" class="inactive"><?= $lang['ostatnia'];?></a>
  </li> -->
  <? endif;?>
</ul>