{#
Hacky workaround for using multiple custom layouts because the plugin provider won't make a better solution
To choose a different layout, add a class to the shopping world element and provide a matching layout in partials directory
#}

{% sw_extends '@Storefront/storefront/element/cms-element-category-tree-teaser.html.twig' %}

{% block loyxx_category_tree_teaser %}

    {% if 'teaser-application' in blockClasses %}
        {% sw_include '@KWHnextTheme/storefront/partials/category-tree-teaser-layout-products.html.twig' %}
    {% elseif 'teaser-products' in blockClasses %}
        {% sw_include '@KWHnextTheme/storefront/partials/category-tree-teaser-layout-products.html.twig' %}
    {% else %}
        {{ parent() }}
    {% endif %}
{% endblock %}

