app/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.     <div class="mod-pagination-01">
  10.         {# 前へ #}
  11.         {% if pages.previous is defined %}
  12.             <span class="prev page-numbers">
  13.                 <a href="{{ path(
  14.                 app.request.attributes.get('_route'),
  15.                 app.request.query.all|merge({'pageno': pages.previous})) }}"><span class="hdnTxt">前へ</span></a></span>
  16.         {% endif %}
  17.         {% for page in pages.pagesInRange %}
  18.         <span class="numberBox">
  19.             {% if page == pages.current %}
  20.                 <span class="current number page-numbers"><a href="{{ path(
  21.                     app.request.attributes.get('_route'),
  22.                     app.request.query.all|merge({'pageno': page})) }}"> {{ page }} </a></span>
  23.             {% else %}
  24.                 <span class="number page-numbers"><a href="{{ path(
  25.                     app.request.attributes.get('_route'),
  26.                     app.request.query.all|merge({'pageno': page})) }}"> {{ page }} </a></span>
  27.             {% endif %}        
  28.         </span>
  29.         {% endfor %}
  30.         {# 次へ #}
  31.         {% if pages.next is defined %}
  32.             <span class="next page-numbers">
  33.                 <a href="{{ path(
  34.                 app.request.attributes.get('_route'),
  35.                 app.request.query.all|merge({'pageno': pages.next})) }}"><span class="hdnTxt">次へ</span></a></span>
  36.         {% endif %}
  37.     </div>
  38. {% endif %}