{#
# Project: www.betten-abc.de
# Company: arboro GmbH
# Created by: Daniel Geike
# Created on: 16.09.22
# Description:
#}
{% sw_extends "@CbaxModulManufacturers/storefront/cbax-manufacturer/component/manufacturer/product-listing.html.twig" %}
{% block element_product_listing_pagination_nav_top %}
{% set totalEntities = total ? total : searchResult.total %}
{% set totalPages = (totalEntities / searchResult.criteria.limit)|round(0, 'ceil') %}
{# hide listing actions #}
{% if totalPages is same as(1.0) %}
<style>
.cms-block-cbax-product-listing {
margin-top: 16px;
}
.cms-element-product-listing-actions {
display: none;
}
</style>
{% endif %}
{{ parent() }}
{% block element_product_listing_pagination_top_product_layout %}
{% sw_include "@Storefront/plugin/component/product/layout.html.twig" ignore missing with {
views: views
} %}
{% endblock %}
{% endblock %}