{% set class = class|default('') %}
<div class="pagination-endless {{ class }}" data-id="{{ pageParameterName }}" data-pagination-nav="{{ pageParameterName }}">
{% if pageCount > 1 %}
{% if next is defined %}
{# <a href="{{ path(route, query|merge({(pageParameterName): next})) }}" class="pagination-endless__link" data-endless-action>#}
{# {% block next %}#}
{# Показать еще#}
{# {% endblock %}#}
{# </a>#}
<a href="{{ path(route, query|merge({(pageParameterName): next})) }}" class="link pagination-endless__link" data-endless-action>
{% block next %}
<span class="link__inner plannings-list__next">
<span class="link__title-wrap">
<span class="link__title text__main01">
Показать еще
</span>
<span class="link__title link__title_duplicate text__main01">
Показать еще
</span>
</span>
<span class="link__arrow plannings-list__next-icon">
{% include '_parts/icons/arrow-mini.svg' %}
</span>
</span>
{% endblock %}
</a>
{% endif %}
{% endif %}
</div>