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

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% if pages.pageCount > 1 %}
  9.     <ul class="ec-pager">
  10.         {% for page in pages.pagesInRange %}
  11.             {% if page == pages.current %}
  12.                 <li class="ec-pager__item--active"><a href="{{ path(
  13.                     app.request.attributes.get('_route'),
  14.                     app.request.query.all|merge({'pageno': page})) }}"> {{ page }} </a></li>
  15.             {% else %}
  16.                 <li class="ec-pager__item"><a href="{{ path(
  17.                     app.request.attributes.get('_route'),
  18.                     app.request.query.all|merge({'pageno': page})) }}"> {{ page }} </a></li>
  19.             {% endif %}
  20.         {% endfor %}
  21.     </ul>
  22. {% endif %}