43 lines
1.4 KiB
Smarty
43 lines
1.4 KiB
Smarty
{% if pageCount > 1 %}
|
|
<ul class="pagination">
|
|
{% if first is defined and current != first %}
|
|
<li class="first">
|
|
<a href="{{ current_url }}&{{ pageParameterName ~ '=' ~first }}"><<
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% if previous is defined %}
|
|
<li class="previous">
|
|
<a class="hidden-xs" href="{{ current_url }}&{{ pageParameterName ~ '=' ~previous }}">
|
|
<
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% for page in pagesInRange %}
|
|
{% if page != current %}
|
|
<li class="page">
|
|
<a href="{{ current_url }}&{{ pageParameterName ~ '=' ~page }}">{{ page }}</a>
|
|
</li>
|
|
{% else %}
|
|
<li class="current active">
|
|
<a>{{ page }} <span class="sr-only">(current)</span>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% if next is defined %}
|
|
<li class="next">
|
|
<a class="hidden-xs" href="{{ current_url }}&{{ pageParameterName ~ '=' ~next }}">></a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% if last is defined and current != last %}
|
|
<li class="last">
|
|
<a href="{{ current_url }}&{{ pageParameterName ~ '=' ~last }}">>></a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
{% endif %} |