app/template/default/productpager.twig line 1

Open in your IDE?
  1. {#
    This file is part of EC-CUBE
    
    Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
    
    http://www.ec-cube.co.jp/
    
    For the full copyright and license information, please view the LICENSE
    file that was distributed with this source code.
    #}
    {% if pages.pageCount > 1 %}
    
        <ul class="pn clearfix">
            {# 最初へ #}
            {% if pages.firstPageInRange != 1 %}
                <li class="pn_next">
                    <a href="{{ firstPageLink }}">最初へ</a>
                </li>
    
            {% endif %}
    
            {# 前へ #}
            {% if pages.previous is defined %}
                <li class="link_first">
                    <a href="{{ previousPageLink }}">前へ</a>
                </li>
            {% endif %}
    
            {# 1ページリンクが表示されない場合、「...」を表示 #}
            {% if pages.firstPageInRange != 1 %}
                <li class="pn_next">...</li>
            {% endif %}
    
            {% for page, link in paginationLinks %}
                {% if page == pages.current %}
                    <li class="pn_next"> {{ page }} </li>
                {% else %}
                    <li class="pn_next"><a href="{{ link }}">{{ page }}</a></li>
                {% endif %}
            {% endfor %}
    
            {# 最終ページリンクが表示されない場合、「...」を表示 #}
            {% if pages.last != pages.lastPageInRange %}
                <li class="pn_next">...</li>
            {% endif %}
    
            {# 次へ #}
            {% if pages.next is defined %}
                <li class="link_next">
                    <a href="{{ nextPageLink }}">次へ</a>
                </li>
            {% endif %}
    
            {# 最後へ #}
            {% if pages.last != pages.lastPageInRange %}
                <li class="pn_next">
                    <a href="{{ lastPageLink }}">最後へ</a>
                </li>
            {% endif %}
        </ul>
    {% endif %}