app/template/default/productpager.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="pn clearfix">
  10.         {# 最初へ #}
  11.         {% if pages.firstPageInRange != 1 %}
  12.             <li class="pn_next">
  13.                 <a href="{{ firstPageLink }}">最初へ</a>
  14.             </li>
  15.         {% endif %}
  16.         {# 前へ #}
  17.         {% if pages.previous is defined %}
  18.             <li class="link_first">
  19.                 <a href="{{ previousPageLink }}">前へ</a>
  20.             </li>
  21.         {% endif %}
  22.         {# 1ページリンクが表示されない場合、「...」を表示 #}
  23.         {% if pages.firstPageInRange != 1 %}
  24.             <li class="pn_next">...</li>
  25.         {% endif %}
  26.         {% for page, link in paginationLinks %}
  27.             {% if page == pages.current %}
  28.                 <li class="pn_next"> {{ page }} </li>
  29.             {% else %}
  30.                 <li class="pn_next"><a href="{{ link }}">{{ page }}</a></li>
  31.             {% endif %}
  32.         {% endfor %}
  33.         {# 最終ページリンクが表示されない場合、「...」を表示 #}
  34.         {% if pages.last != pages.lastPageInRange %}
  35.             <li class="pn_next">...</li>
  36.         {% endif %}
  37.         {# 次へ #}
  38.         {% if pages.next is defined %}
  39.             <li class="link_next">
  40.                 <a href="{{ nextPageLink }}">次へ</a>
  41.             </li>
  42.         {% endif %}
  43.         {# 最後へ #}
  44.         {% if pages.last != pages.lastPageInRange %}
  45.             <li class="pn_next">
  46.                 <a href="{{ lastPageLink }}">最後へ</a>
  47.             </li>
  48.         {% endif %}
  49.     </ul>
  50. {% endif %}