pagination.tpl 1.2 KB

123456789101112131415161718192021222324252627282930
  1. <nav class="bottom-pagination-content clearfix">
  2. <div class="col-md-4">
  3. {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]}
  4. </div>
  5. <div class="pagination">
  6. <ul class="page-list clearfix">
  7. {foreach from=$pagination.pages item="page"}
  8. <li {if $page.current} class="active current" {/if}>
  9. {if $page.type === 'spacer'}
  10. <span class="spacer">&hellip;</span>
  11. {else}
  12. <a
  13. rel="{if $page.type === 'previous'}prev{elseif $page.type === 'next'}next{else}nofollow{/if}"
  14. href="{$page.url}"
  15. class="{if $page.type === 'previous'}previous {elseif $page.type === 'next'}next {/if}{['disabled' => !$page.clickable, 'js-blog-link' => true]|classnames}"
  16. >
  17. {if $page.type === 'previous'}
  18. <i class="icon-angle-left"></i>
  19. {elseif $page.type === 'next'}
  20. <i class="icon-angle-right"></i>
  21. {else}
  22. {$page.page}
  23. {/if}
  24. </a>
  25. {/if}
  26. </li>
  27. {/foreach}
  28. </ul>
  29. </div>
  30. </nav>