app/template/airconwork/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="c-pagenavi" role="navigation">
  10.         {# 最初へ #}
  11.         {% if pages.firstPageInRange != 1 %}
  12.                 <a href="{{ path(
  13.                 app.request.attributes.get('_route'),
  14.                 app.request.query.all|merge({'pageno': pages.first})) }}">{{ '« 最初'|trans }}</a>
  15.         {% endif %}
  16.         {# 前へ #}
  17.         {% if pages.previous is defined %}
  18.                 <a href="{{ path(
  19.                 app.request.attributes.get('_route'),
  20.                 app.request.query.all|merge({'pageno': pages.previous})) }}" class="previoupostslink">{{ '«'|trans }}</a>
  21.         {% endif %}
  22.         {# 1ページリンクが表示されない場合、「...」を表示 #}
  23.         {% if pages.firstPageInRange != 1 %}
  24.             <span class="extend">...</span>
  25.         {% endif %}
  26.         {% for page in pages.pagesInRange %}
  27.             {% if page == pages.current %}
  28.                 <a href="{{ path(
  29.                     app.request.attributes.get('_route'),
  30.                     app.request.query.all|merge({'pageno': page})) }}" class="current"> {{ page }} </a>
  31.             {% else %}
  32.                 <a href="{{ path(
  33.                     app.request.attributes.get('_route'),
  34.                     app.request.query.all|merge({'pageno': page})) }}"> {{ page }} </a>
  35.             {% endif %}
  36.         {% endfor %}
  37.         {# 最終ページリンクが表示されない場合、「...」を表示 #}
  38.         {% if pages.last != pages.lastPageInRange %}
  39.             <span class="extend">...</span>
  40.         {% endif %}
  41.         {# 次へ #}
  42.         {% if pages.next is defined %}
  43.                 <a href="{{ path(
  44.                 app.request.attributes.get('_route'),
  45.                 app.request.query.all|merge({'pageno': pages.next})) }}" class="nextpostslink" rel="next">{{ '»'|trans }}</a>
  46.         {% endif %}
  47.         {# 最後へ #}
  48.         {% if pages.last != pages.lastPageInRange %}
  49.                 <a href="{{ path(
  50.                 app.request.attributes.get('_route'),
  51.                 app.request.query.all|merge({'pageno': pages.last})) }}" class="last">{{ '最後 »'|trans }}</a>
  52.         {% endif %}
  53.     </div>
  54. {% endif %}