<div id="category-list">
{% if category is defined and category is not empty %}
{% set subCategoryList = category.getCanonicalSubCategoryList %}
<div onclick="location.href='/{{ category.getMainCategoryWebName }}/'" id="lmenu-main-cat"{% if subCategoryList | length %} class="mr0"{% endif %}>
<div class="lmenu-main-cat-title">
<a href="/{{ category.getCanonicalMainCategoryWebname }}/">{{ category.getCanonicalMainCategory.getMainCategoryName }}</a>
</div>
</div>
{% if subCategoryList | length %}
<ul id="lmenu-sub-cat">
{% include 'Block/SubCategory/lm_subcategory_list.twig' with { category: category, subCategoryList: subCategoryList, canonicalMcName: category.CanonicalMainCategory.MainCategoryWebname } only %}
</ul>
{% endif %}
{% endif %}
</div>