themes/bases/Campussuite2015/includes/sn/pagination.html.twig line 1

Open in your IDE?
  1. {% if pagination is defined and pagination %}
  2.     <nav class="cs-pagination" role="navigation" aria-label="Pagination Navigation">
  3.        <ul>
  4.         {% if pagination.previous is not null %}
  5.             <li class="page-prev">
  6.                 {% if pagination.previous is same as(0) %}
  7.                     <a href="{{- web_url_request(vars.request, {
  8.                         page: null,
  9.                     })|e('html_attr') -}}" title="Go to Previous Page">Prev</a>
  10.                 {% else %}
  11.                     <a href="{{- web_url_request(vars.request, {
  12.                         page: pagination.previous,
  13.                     })|e('html_attr') -}}" title="Go to Previous Page">Prev</a>
  14.                 {% endif %}
  15.             </li>
  16.         {% endif %}
  17.         {% if pagination.previous is not null and pagination.next is not null %}
  18.             <li class="page-main">
  19.                 <a href="{{- web_url_request(vars.request, {
  20.                     page: pagination.current,
  21.                 })|e('html_attr') -}}"><em class="fa fa-th-large" aria-hidden="true"></em><span class="sr-only">Go to Page 1</span></a>
  22.             </li>
  23.         {% endif %}
  24.         {% if pagination.next is not null %}
  25.             <li class="page-next">
  26.                 <a href="{{- web_url_request(vars.request, {
  27.                     page: pagination.next,
  28.                 })|e('html_attr') -}}" title="Go to Next Page">Next</a>
  29.             </li>
  30.         {% endif %}
  31.         </ul>
  32.     </nav>
  33. {% endif %}