app/Plugin/Recipe/Resource/template/default/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="pager-list">
  10.         {# 前へ #}
  11.         {% if pages.previous is defined %}
  12.             <li class="pager-item -prev">
  13.                 <a href="{{ path(
  14.                 app.request.attributes.get('_route'),
  15.                 app.request.query.all|merge({'pageno': pages.previous})) }}"><span></span></a></li>
  16.         {% endif %}
  17.         {% for page in pages.pagesInRange %}
  18.             {% if page == pages.current %}
  19.                 <li class="pager-item -active"><a href="{{ path(
  20.                     app.request.attributes.get('_route'),
  21.                     app.request.query.all|merge({'pageno': page})) }}"> {{ page }} </a></li>
  22.             {% else %}
  23.                 <li class="pager-item"><a href="{{ path(
  24.                     app.request.attributes.get('_route'),
  25.                     app.request.query.all|merge({'pageno': page})) }}"> {{ page }} </a></li>
  26.             {% endif %}
  27.         {% endfor %}
  28.         {# 次へ #}
  29.         {% if pages.next is defined %}
  30.             <li class="pager-item -next">
  31.                 <a href="{{ path(
  32.                 app.request.attributes.get('_route'),
  33.                 app.request.query.all|merge({'pageno': pages.next})) }}"><span></span></a></li>
  34.         {% endif %}
  35.     </ul>
  36. {% endif %}