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

Open in your IDE?
  1. {% if pagination is defined and pagination is not empty %}
  2.     <nav class="cs-pagination" role="navigation" aria-label="Pagination Navigation">
  3.        <ul>
  4.         {% if pagination.previous is not empty %}
  5.             <li class="page-prev">
  6.                 {% if pagination.previous == 1 %}
  7.                     <a href="{{ cms_path_prefix(globals.containers) }}/{{ globals.module.key }}" title="Go to Previous Page">Prev</a>
  8.                 {% else %}
  9.                     <a href="{{ cms_path_prefix(globals.containers) }}/{{ globals.module.key }}/page/{{ pagination.previous }}" title="Go to Previous Page">Prev</a>
  10.                 {% endif %}
  11.             </li>
  12.         {% endif %}
  13.         {% if pagination.previous is not empty %}
  14.             <li class="page-main">
  15.                 <a href="{{ cms_path_prefix(globals.containers) }}/{{ globals.module.key }}"><em class="fa fa-th-large" aria-hidden="true"></em><span class="sr-only">Go to Page 1</span></a>
  16.             </li>
  17.         {% endif %}
  18.         {% if pagination.next is not empty %}
  19.             <li class="page-next">
  20.                 <a href="{{ cms_path_prefix(globals.containers) }}/{{ globals.module.key }}/page/{{ pagination.next }}" title="Go to Next Page">Next</a>
  21.             </li>
  22.         {% endif %}
  23.         </ul>
  24.     </nav>
  25. {% endif %}