{% set blEnableInfiniteScroll = oViewConf.getViewThemeParam("blEnableInfiniteScroll") %} {% set oPageNavigation = oView.getPageNavigation() %} {% block list_scripts %} {% if blEnableInfiniteScroll and oPageNavigation.NrOfPages > 1 %} {{ script({ include: "js/vendor-config/c4s-infinitescroll.min.js", priority: 10, dynamic: __oxid_include_dynamic }) }} {# todo #} {% endif %} {% endblock %} {% set aCatThumbnailsize = oViewConf.getViewThemeParam("sCatThumbnailsize")|split('*') %} {# Height of the Category Image #} {% for sCatThumbnailsize in aCatThumbnailsize %} {% if loop.last %} {% set sCatImgHeight = sCatThumbnailsize %} {% endif %} {% endfor %} {% set sListType = oView.getListType() %} {% set oActCategory = oView.getActiveCategory() %} {% if sListType != "manufacturer" and sListType != "vendor" %} {% set oParentCategory = oActCategory.getParentCategory() %} {% endif %} {% capture append = "oxidBlock_sidebar" %} {% if sListType == "manufacturer" or sListType == "vendor" %} {% if oActCategory and oActCategory.getIconUrl() %}

{% if sListType == "manufacturer" %} {{ translate({ ident: "BRAND" }) }} {% elseif sListType == "vendor" %} {{ translate({ ident: "VENDOR" }) }} {% endif %}

{{ oActCategory.getTitle() }}
{% endif %} {% endif %} {% endcapture %} {# fullwidth category teaser #} {% if oActCategory.getThumbUrl() %} {% set blHideBreadcrumb = true %} {% capture append = "oxidBlock_categoryTeaser" %} {{ oActCategory.oxcategories__oxtitle.value }} {% endcapture %} {% endif %} {# fullwidth category header #} {% capture append = "oxidBlock_categoryHeader" %}

{% block page_list_main_category_title %} {{ oView.getTitle()|replace({"<br>": "\n"})|raw }} {% endblock %}

{% endcapture %} {% capture append = "oxidBlock_content" %} {% block page_list_listhead %} {% if oActCategory.oxcategories__oxlongdesc.value or oView.hasVisibleSubCats() %}
{% if oActCategory.oxcategories__oxlongdesc.value %}
{{ include(template_from_string(oActCategory.oxcategories__oxlongdesc)) }}
{% endif %} {% if oView.hasVisibleSubCats() %}
{% set iSubCategoriesCount = 0 %} {% set blShowSubcatPic = oViewConf.getViewThemeParam("blShowSubcatPic") %}
{% for oSubCategory in oView.getSubCatList() %} {# content categories before actual category (e.g. from visual cms) #} {% if oSubCategory.getContentCats() %} {% for oContentCat in oSubCategory.getContentCats() %} {% set iSubCategoriesCount = iSubCategoriesCount+1 %}
{% include "widget/category/content_category_item.html.twig" with {oContentCat: oContentCat, blShowSubcatPic: blShowSubcatPic} %}
{% endfor %} {% endif %} {# actual sub categories (oxcategory) #} {% if oSubCategory.getIsVisible() %} {% set iSubCategoriesCount = iSubCategoriesCount+1 %}
{% include "widget/category/category_item.html.twig" with {oCategory: oSubCategory, blShowSubcatPic: blShowSubcatPic} %}
{% endif %} {% if iSubCategoriesCount % 6 == 0 %}
{% endif %} {% endfor %}
{% endif %}
{% endif %} {% endblock %} {% block page_list_listbody %} {% set oArticleList = oView.getArticleList() %} {% if (oParentCategory or sListType == "manufacturer" or sListType == "vendor") and not empty(oArticleList) and oArticleList.count() > 0 %} {% include "widget/locator/listlocator.html.twig" with {aAttributes: oView.getAttributes(), iItemsPerPage: 0, blSort: false} %} {# List types: grid|line|infogrid #} {% include "widget/product/list.html.twig" with {sListType: oView.getListDisplayType(), sListId: "category-articles", oArticles: oView.getArticleList()} %} {% include "widget/locator/listlocator.html.twig" with {oPageLocator: oView.getPageNavigationLimitedBottom(), sPosition: "bottom"} %} {# {% if blEnableInfiniteScroll %} todo #} {#
#} {# #} {# #} {# #} {#
#} {# {% endif %} #} {% endif %} {% endblock %} {{ insert_tracker() }} {% endcapture %} {% include "layout/page.html.twig" with {tree_path: oView.getTreePath(), oParentCategory: oParentCategory, blHideBreadcrumb: blHideBreadcrumb} %}