templates/includes/pagination.html.twig line 1

Open in your IDE?
  1. {%  if(paginationVariables.next is defined or paginationVariables.previous is defined) %}
    <nav aria-label="Pagination">
    
    
        <ul class="pagination justify-content-center">
            {%  if(paginationVariables.previous is defined) %}
                <li class="page-item">
                    <a class="page-link prev" href="{{  pimcore_url({'page': paginationVariables.previous}) }}" aria-label="Previous">
                        <span aria-hidden="true">&laquo;</span>
                    </a>
                </li>
            {%  endif %}
    
            {%  for page in paginationVariables.pagesInRange %}
    
                {%  if(paginationVariables.current == page) %}
    
                    <li class="page-item active" aria-current="page">
                                      <span class="page-link">
                                        {{  page }}
                                      
                                      </span>
                    </li>
    
                {%  else %}
                    <li class="page-item"><a class="page-link" href="{{  pimcore_url({'page': page}) }}">{{ page }}</a></li>
                {%  endif %}
    
            {% endfor %}
    
            {%  if(paginationVariables.next is defined) %}
                <li class="page-item">
                    <a class="page-link next" href="{{  pimcore_url({'page': paginationVariables.next}) }}" aria-label="Next">
                        <span class="flip" aria-hidden="true">&raquo;</span>
                    </a>
                </li>
            {%  endif %}
        </ul>
    </nav>
      {%  endif %}