app/template/kaorime/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.         {% if pages.previous is defined %}
  11.             <span class="prev page-numbers">
  12.              <a href="{{ path(
  13.                  app.request.attributes.get('_route'),
  14.                  app.request.query.all|merge({'pageno': pages.first})) }}">{{ '最初へ'|trans }}</a>
  15.             </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">{{ page }}</span>
  21.             {% else %}
  22.                 <span class="number page-numbers"><a href="{{ path(
  23.                         app.request.attributes.get('_route'),
  24.                         app.request.query.all|merge({'pageno': page})) }}"> {{ page }} </a>
  25.                 </span>
  26.             {% endif %}
  27.             </span>
  28.         {% endfor %}
  29.         {% if pages.next is defined %}
  30.             <span class="next page-numbers">
  31.              <a href="{{ path(
  32.                  app.request.attributes.get('_route'),
  33.                  app.request.query.all|merge({'pageno': pages.next})) }}">{{ '次へ'|trans }}</a>
  34.             </span>
  35.         {% endif %}
  36.     </div>
  37. {% endif %}