Files
newwalls.pl/themes/ayon__/templates/_partials/pagination.tpl
2024-12-17 13:43:22 +01:00

39 lines
2.0 KiB
Smarty

<nav class="pagination">
<div class="col-md-12 pr-0 pl-0">
{block name='pagination_page_list'}
{if $pagination.should_be_displayed}
<ul class="page-list clearfix">
{foreach from=$pagination.pages item="page"}
<li {if $page.current} class="current" {/if}>
{if $page.type === 'spacer'}
<span class="spacer">&hellip;</span>
{else}
<a
rel="{if $page.type === 'previous'}prev{elseif $page.type === 'next'}next{else}nofollow{/if}"
href="{$page.url}"
class="{if $page.type === 'previous'}previous {elseif $page.type === 'next'}next {/if}{['disabled' => !$page.clickable, 'js-search-link' => true]|classnames}"
>
{if $page.type === 'previous'}
<i><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><polyline points="15 18 9 12 15 6"></polyline></svg></i>{l s='Previous' d='Shop.Theme.Actions'}
{elseif $page.type === 'next'}
{l s='Next' d='Shop.Theme.Actions'}<i><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg></i>
{else}
{$page.page}
{/if}
</a>
{/if}
</li>
{/foreach}
</ul>
{/if}
{/block}
</div>
<div class="col-md-12 showing">
{block name='pagination_summary'}
{l s='Showing %from%-%to% of %total% item(s)' d='Shop.Theme.Catalog' sprintf=['%from%' => $pagination.items_shown_from ,'%to%' => $pagination.items_shown_to, '%total%' => $pagination.total_items]}
{/block}
</div>
</nav>