{% set oCategoryTree = oView.getCategoryTree() %}
{% set _iCategoriesPerRow = 3 %}
{% set iSubCategoriesCount = 0 %}
{% if not empty(oCategoryTree) and oCategoryTree.count() %}
{{ script({ include: "js/widgets/oxequalizer.min.js", priority: 10, dynamic: __oxid_include_dynamic }) }}
{{ script({ add: "$(window).load(function(){ if( !isMobileDevice() ) { oxEqualizer.equalHeight( $( '.subcatList .row .panel' ) ); } });", dynamic: __oxid_include_dynamic }) }}
{% for oCategory in oCategoryTree %}
{# TOP categories #}
{% if oCategory.getIsVisible() %}
{# CMS top categories #}
{% if oCategory.getContentCats() %}
{% for ocont in oCategory.getContentCats() %}
{% set iSubCategoriesCount = iSubCategoriesCount+1 %}
{# Top categories subcategories #}
{% if oCategory.getHasVisibleSubCats() %}
{% if iconUrl %}
{% endif %}
{% for oSubCategory in oCategory.getSubCats() %}
{% if oSubCategory.getIsVisible() %}
{# CMS subcategories #}
{% for oContentCategory in oSubCategory.getContentCats() %}