Advertisement
Amadi90

pagination call smarty view

Apr 9th, 2018
1,627
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 0.50 KB | None | 0 0
  1. mapa_strony.html
  2.  
  3.  
  4. $pagination = pagination($article, 5, $_GET['page']);
  5.  
  6.     $prevLink = $pagination['prevLink'];
  7.     $nextLink = $pagination['nextLink'];
  8.     $articles = $pagination['items'];
  9. ?>
  10.  
  11. {if $prevLink}
  12.     <a class="strona-numer link" href="{$prevLink}">&laquo; Poprzednia</a>
  13. {else}
  14.     <span class="inactive">&laquo; Poprzednia</span>
  15. {/if}
  16.  
  17. {if $nextLink}
  18.     <a class="strona-numer link" href="{$nextLink}">Następna &raquo;</a>
  19. {else}
  20.     <span class="inactive">Następna &raquo;</span>
  21. {/if}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement