feat: Add new pagination template for link lists.
This commit is contained in:
parent
c81eab72e5
commit
0bdf95e00a
@ -1,4 +1,7 @@
|
||||
{if="$page_max > 1"}
|
||||
{if="isset($result_count) && $result_count > 0"}
|
||||
{$total=$result_count}
|
||||
{else}
|
||||
{if="$is_logged_in"}
|
||||
{$total="$linkcount"}
|
||||
{else}
|
||||
@ -8,6 +11,7 @@
|
||||
{$total=$linkcount - $privateLinkcount}
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
{$from=($page_current - 1) * $links_per_page + 1}
|
||||
{$to=min($total, ($page_current - 1) * $links_per_page + $links_per_page)}
|
||||
<div class="paging">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user