{# This file is not used ! #} {% macro renderCategoryValue(categoryValue, subcategoriesCount) %} {% set activeChildrenCount = 0 %} {% for optionValue in categoryValue.children %} {% if optionValue.option.displayInInfoBar %} {% set activeChildrenCount = activeChildrenCount + 1 %} {% endif %} {% endfor %} {% set displayThisCategoryValue = activeChildrenCount > 0 %} {% set displayThisCategoryValue = categoryValue.category.name and activeChildrenCount > 0 or categoryValue.category.isRootCategory %} {% if displayThisCategoryValue %}
{% if subcategoriesCount > 1 %}
{{ categoryValue.category.name }}
{% endif %} {% endif %} {% for optionValue in categoryValue.children %} {% if optionValue.option.displayInInfoBar %} {% set displayFirstCategoryInline = not categoryValue.category.enableDescription and optionValue.children.length > 0 and optionValue.children[0].isLastCategoryDepth and not optionValue.children[0].category.enableDescription %} {% set colWidth = 's6 m5' if (option.enableDescription or categoryValue.category.enableDescription) else 's12' %}
{% set iconClass = optionValue.option.icon if optionValue.option.icon else 'gogo-icon-angle-right' %} {% set iconColorId = optionValue.option.id if optionValue.option.icon else '' %} {% if iconClass %} {% endif %} {{ optionValue.option.nameShort }} {% if displayFirstCategoryInline %} ( {% for suboptionValue in optionValue.children[0].children %} {{ suboptionValue.option.name }} {% if not loop.last %}, {% endif %} {% endfor %}) {% endif %} {% if option.enableDescription or categoryValue.category.enableDescription %} {{ optionValue.description|safe }} {% endif %}
{% endif %} {% set subcategoriesCount = optionValue.children.length %} {% if displayFirstCategoryInline %}{% set subcategoriesCount = subcategoriesCount - 1 %}{% endif %} {% for subcategory in optionValue.children %} {% if not (loop.first and displayFirstCategoryInline) %} {{ renderCategoryValue(subcategory, subcategoriesCount) }} {% endif %} {% endfor %} {% endfor %} {% if displayThisCategoryValue %}
{% endif %} {% endmacro %}