openvk/Web/Presenters/templates/components/paginator.xml

15 lines
691 B
XML
Raw Normal View History

2020-06-07 19:04:43 +03:00
<div n:if="!($conf->page === 1 && $conf->count <= $conf->perPage)" class="paginator">
<hr/>
<center>
<a n:if="$conf->page != 1"
href="?{http_build_query(array_merge($_GET, ['p' => ($conf->page - 1)]), 'k', '&', PHP_QUERY_RFC3986)}"
2020-08-20 17:05:00 +03:00
style="float: left;">&lt;&lt; {_paginator_back}</a>
2020-06-07 19:04:43 +03:00
2020-08-20 17:05:00 +03:00
{tr("paginator_page", $conf->page)}
2020-06-07 19:04:43 +03:00
<a n:if="$conf->count > (($conf->page - 1) * $conf->perPage + $conf->amount) && $conf->amount > 0"
href="?{http_build_query(array_merge($_GET, ['p' => ($conf->page + 1)]), 'k', '&', PHP_QUERY_RFC3986)}"
2020-08-20 17:05:00 +03:00
style="float: right;">{_paginator_next} &gt;&gt;</a>
2020-06-07 19:04:43 +03:00
</center>
</div>