templates/paginacion-front.html.twig line 1

Open in your IDE?
  1. {% if pageCount > 1 %}
  2. <div class="row">
  3. <div class="col-lg-12">
  4. <div>
  5. <ul class="pagination pagination-3d justify-content-center">
  6. {% if first is defined and current != first %}
  7. <li class="page-item">
  8. <a class="page-link" href="{{ path(route, query|merge({(pageParameterName): first})) }}" title="Primera"><span class="fa fa-angles-left"></span></a>
  9. </li>
  10. {% endif %}
  11. {% if previous is defined %}
  12. <li class="page-item">
  13. <a class="page-link" href="{{ path(route, query|merge({(pageParameterName): previous})) }}" title="Anterior"><span class="fa fa-chevron-left"></span></a>
  14. </li>
  15. {% endif %}
  16. {% for page in pagesInRange %}
  17. {% if page != current %}
  18. <li class="page-item">
  19. <a class="page-link" href="{{ path(route, query|merge({(pageParameterName): page})) }}" title="Página {{ page }}">{{ page }}</a>
  20. </li>
  21. {% else %}
  22. <li class="page-item current active" aria-current="page">
  23. <a class="page-link" title="Página {{ page }} (actualmente)">{{ page }}</a>
  24. </li>
  25. {% endif %}
  26. {% endfor %}
  27. {% if next is defined %}
  28. <li class="page-item">
  29. <a class="page-link" href="{{ path(route, query|merge({(pageParameterName): next})) }}" title="Siguiente"><span class="fa fa-chevron-right"></span></a>
  30. </li>
  31. {% endif %}
  32. {% if last is defined and current != last %}
  33. <li class="page-item">
  34. <a class="page-link" href="{{ path(route, query|merge({(pageParameterName): last})) }}" title="Última"><span class="fa fa-angles-right"></span></a>
  35. </li>
  36. {% endif %}
  37. </ul>
  38. </div>
  39. </div>
  40. </div>
  41. {% endif %}