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