Файл: style/themes/material/tpl/pagination.tpl
Строк: 46
<script type="text/javascript"
src="/style/themes/material/js/jquery.simplePagination.js"></script>
<link
href="/style/themes/material/css/simplePagination.css"
rel="stylesheet">
<script
type="text/javascript">
$(function() {
$('#pages').pagination({
items: {$links.total},
itemsOnPage:
{$links.items_on_page},
displayedPages: 5,
currentPage:
{$links.current},
hrefTextPrefix: "{$links.href}",
cssStyle: 'light-theme',
nextText: '>',
prevText:
'<'
});
});
</script>
<div
class="post" id ="pages">
{if
$links.first}
<a class="page"
href="{$links.href}1">|<-</a>
{else}
<span class="page_no">←</span>
{/if}
{foreach $previous as $key => $value}
<a class="page"
href="{$links.href}{$value}">{$value}</a>
{/foreach}
{if $links.prev}
<a
class="page"
href="{$links.href}{$links.prev}">←</a>
{/if}
<span
class="page_no">{$links.this}</span>
{if
$links.next}
<a class="page"
href="{$links.href}{$links.next}">→</a>
{else}
<span
class="page_no">→</span>
{/if}
{foreach $following as $key => $value}
<a
class="page"
href="{$links.href}{$value}">{$value}</a>
{/foreach}
{if $links.last}
.. <a
class="page"
href="{$links.href}end">{$links.total}</a>
{/if}
</div>