{% spaceless %} {# Get promo block collection #} {% set obPromoBlockList = PromoBlockList.make().active().sort(PromoBlockList.getSorting()) %} {# Get array with pagination buttons #} {% set iPage = Pagination.getPageFromRequest() %} {# Apply pagination to promo block collection and get array with promo block items #} {% set arPromoBlockList = obPromoBlockList.page(iPage, Pagination.getCountPerPage()) %} {% if arPromoBlockList is not empty %}