app/template/default/Block/pagination.twig line 1

Open in your IDE?
  1. {% if pages.pageCount > 1 %}
  2. <div id="pagination_wrap" class="pagination">
  3.     <ul>
  4.         {% if pages.first is defined and pages.first != pages.current %}
  5.             <!--<li class="pagenation__item-first">
  6.                 <a href="{{ path(app.request.attributes.get('_route'), app.request.query.all|merge({'pageno': pages.first})) }}"
  7.                    aria-label="First"><span aria-hidden="true">&laquo;</span></a>
  8.             </li>-->
  9.         {% endif %}
  10.         {% if pages.previous is defined %}
  11.             <li class="pagenation__item-previous">
  12.                 <a href="{{ path(app.request.attributes.get('_route'), app.request.query.all|merge({'pageno': pages.previous})) }}"
  13.                    aria-label="Previous"><span aria-hidden="true">&lt;</span></a>
  14.             </li>
  15.         {% endif %}
  16.         {% for page in pages.pagesInRange %}
  17.             {% if page == pages.current %}
  18.                 <li class="pagenation__item active"><a href="{{ path(app.request.attributes.get('_route'), app.request.query.all|merge({'pageno': page})) }}"> {{ page }} </a></li>
  19.             {% else %}
  20.                 <li class="pagenation__item"><a href="{{ path(app.request.attributes.get('_route'), app.request.query.all|merge({'pageno': page})) }}"> {{ page }} </a></li>
  21.             {% endif %}
  22.         {% endfor %}
  23.         {% if pages.next is defined %}
  24.             <li class="pagenation__item-next">
  25.                 <a href="{{ path(app.request.attributes.get('_route'), app.request.query.all|merge({'pageno': pages.next})) }}"
  26.                    aria-label="Next"><span aria-hidden="true">&gt;</span></a>
  27.             </li>
  28.         {% endif %}
  29.         {% if pages.last is defined and pages.last != pages.current %}
  30.             <!--<li class="pagenation__item-last">
  31.                 <a href="{{ path(app.request.attributes.get('_route'), app.request.query.all|merge({'pageno': pages.last})) }}"
  32.                    aria-label="Last"><span aria-hidden="true">&raquo;</span></a>
  33.             </li>-->
  34.         {% endif %}
  35.     </ul>
  36. </div>
  37. {% endif %}