{% sw_extends "@Storefront/storefront/layout/navigation/flyout.html.twig" %}
{% block layout_navigation_flyout_bar %}{% endblock %}
{% block layout_navigation_flyout_categories %}
<div class="col-12 col-xl navigation-flyout-categories is-root">
{% block layout_navigation_flyout_categories_recoursion %}
{{ parent() }}
{% endblock %}
{% block layout_navigation_flyout_description %}
{% if theme_config('atl-header-navigation-flyout-show-description') == 'true' and category.translated.description %}
<div class="navigation-flyout-description">
{{ category.translated.description|raw }}
</div>
{% endif %}
{% endblock %}
</div>
{% endblock %}
{% block layout_navigation_flyout_teaser %}
{% set teaserImages = [{
imageId: category.translated.customFields.atl_katana_theme_flyout_image_first,
link: category.translated.customFields.atl_katana_theme_flyout_image_first_link,
subtitle: category.translated.customFields.atl_katana_theme_flyout_image_first_subtitle
}, {
imageId: category.translated.customFields.atl_katana_theme_flyout_image_second,
link: category.translated.customFields.atl_katana_theme_flyout_image_second_link,
subtitle: category.translated.customFields.atl_katana_theme_flyout_image_second_subtitle
}, {
imageId: category.translated.customFields.atl_katana_theme_flyout_image_third,
link: category.translated.customFields.atl_katana_theme_flyout_image_third_link,
subtitle: category.translated.customFields.atl_katana_theme_flyout_image_third_subtitle
}]
%}
<div class="col-12 col-xl-auto navigation-flyout-teaser">
{% for teaserImage in teaserImages %}
{% if teaserImage.imageId %}
{% set imageCollection = searchMedia([teaserImage.imageId], context.context) %}
{% set imageEntity = imageCollection.get(teaserImage.imageId) %}
{% set teaserImage = teaserImage|merge({ image: imageEntity}) %}
{% block layout_navigation_flyout_teaser_container %}
<div class="col navigation-flyout-column is-level-0">
{% if teaserImage.link %}<a href="{{ teaserImage.link }}" title="{{ teaserImage.image.translated.title }}" class="text-decoration-none">{% endif %}
{% block layout_navigation_flyout_teaser_image %}
{% sw_thumbnails 'navigation-flyout-teaser-image-thumbnails' with {
media: teaserImage.image,
attributes: {
'alt': (teaserImage.image.translated.alt ?: ''),
'title': (teaserImage.image.translated.title ?: '')
}
} %}
{% endblock %}
{% block layout_navigation_flyout_teaser_subtitle %}
{% if teaserImage.subtitle %}
<div class="navigation-flyout-column-subtitle">
{{ teaserImage.subtitle }}
</div>
{% endif %}
{% endblock %}
{% if teaserImage.link %}</a>{% endif %}
</div>
{% endblock %}
{% endif %}
{% endfor %}
</div>
{% endblock %}