{% extends '@SyliusShop/layout.html.twig' %}
{% block title %}
{{ taxon.seoTitle|default(taxon.name) }} | {{ parent() }}
{% endblock %}
{% block metatags %}
{{ parent() }}
{% if taxon.seoMetaDescription is not empty %}
<meta name="description" content="{{ taxon.seoMetaDescription }}" />
{% endif %}
{% endblock %}
{% block content %}
{# Fil d'ariane #}
{{ wo_render_breadcrumbs() }}
<div class="categorie">
<div class="categorie-top categorie-top-single {{ taxon.categoryType == 'category_type_fabric' ? 'category-top-tissu' : '' }}">
<h1>{{ taxon.name }}</h1>
</div>
<div class="categorie-main-childrens ui three column grid container">
{% for child in taxon.children %}
<div class="categorie-main-child-column column">
<div class="categorie-main-child">
<div class="categorie">
<a href="{{ path('sylius_shop_product_index', {'slug': child.slug}) }}">
{% if child.imagesByType('image_taxon_main')|length > 0 %}
<img class="ui image" src="{{ child.imagesByType('image_taxon_main').first.path|imagine_filter('app_taxon_image_taxon_main') }}" />
{% else %}
<img class="ui image" src="{{ asset('webapic-theme/images/placeholder-category-image.png') }}" />
{% endif %}
<h2>{{ child.name }}</h2>
</a>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% endblock %}