mirror of
https://github.com/openvk/openvk
synced 2024-11-14 19:19:14 +03:00
b1407ba823
* Groups: Update groups layot * We don't use crowdin anymore, why it's still there? * Locales: Delete unnecessary LICENSE We already have COPYING in the root directory :/ * Locales: Localize strings for updated group layout Localized strings: open_new_group, open_group_desc, search_group, search_by_groups, search_group_desc (we already have search_for_groups but idk, I'll leave it for now) * Global: Fix tabs * Groups: Fix tabs and div block I have SO many questions... * Groups: Update layot New counter, info and actions blocks and some stye fixes * Global: Fix tabs * Locales: Localize strings for updated group layout Localized strings: check_community, groups_list * Update Groups.xml * Update Groups.xml Co-authored-by: veselcraft <veselcraft@icloud.com> Co-authored-by: Ilya Prokopenko <dsrev@protonmail.com> Co-authored-by: celestora <kitsuruko@gmail.com>
18 lines
1 KiB
XML
18 lines
1 KiB
XML
{var $space = 2}
|
|
{var $pageCount = ceil($conf->count / $conf->perPage)}
|
|
|
|
<div n:if="!($conf->page === 1 && $conf->count <= $conf->perPage)" style="padding: 8px;">
|
|
<div n:class="paginator, ($conf->atBottom ?? false) ? paginator-at-bottom">
|
|
{if $conf->page > $space}
|
|
<a n:attr="class => ($conf->page === 1 ? 'active')" href="?{http_build_query(array_merge($_GET, ['p' => 1]), 'k', '&', PHP_QUERY_RFC3986)}">«</a>
|
|
{/if}
|
|
{for $j = $conf->page - ($space-1); $j <= $conf->page + ($space-1); $j++}
|
|
{if $j > 0 && $j <= $pageCount}
|
|
<a n:attr="class => ($conf->page === $j ? 'active')" href="?{http_build_query(array_merge($_GET, ['p' => $j]), 'k', '&', PHP_QUERY_RFC3986)}">{$j}</a>
|
|
{/if}
|
|
{/for}
|
|
{if $conf->page <= $pageCount-$space}
|
|
<a n:attr="class => ($conf->page === $pageCount ? 'active')" href="?{http_build_query(array_merge($_GET, ['p' => $pageCount]), 'k', '&', PHP_QUERY_RFC3986)}">»</a>
|
|
{/if}
|
|
</div>
|
|
</div>
|