{% extends '@SyliusShop/layout.html.twig' %}
{% block title %}{{ articleCategory.metaTitle }} - {{ parent() }}{% endblock %}
{% block metatags %}
{{ parent() }}
<meta name="description" content="{{ articleCategory.metaDescription }}" />
{% endblock %}
{% block container_css_classes %}
{% apply spaceless %}
bitbag_sylius_cms_plugin_shop_page_show
{% endapply %}
{% endblock %}
{% block content %}
<div class="page-content typecms2" style="background-image: url('/webapic-theme/images/asupprimer/page-bg-content-full.png')">
{# Fil d'ariane #}
{{ wo_render_breadcrumbs() }}
<div class="page-content-ctn">
<div class="page-content-left">
<img src="/webapic-theme/images/asupprimer/page-bg-content-left.svg" class="ui image">
</div>
<div class="page-content-middle">
<h1 class="bitbag-page-name">{{ articleCategory.name }}</h1>
<div class="bitbag-page-content">
<p>{{ articleCategory.description|raw }}</p>
</div>
</div>
</div>
</div>
{# <div class="categorie">
<div class="categorie-childrens">
<div class="categorie-childrens-ctn">
<div class="carouseel">
{% for articleCategory in articleCategories %}
<div class="child">
<div class="categorie">
<a href="{{ path('app_leguide_category', {'slug': articleCategory.slug}) }}" class="top">
{% if articleCategory.imagesByType('image_article_category_main').first() is not empty %}
<img class="ui image" src="{{ articleCategory.imagesByType('image_article_category_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>{{ articleCategory.name }}</h2>
</a>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div> #}
{% if articles is not empty %}
<div class="categorie guide-categorie">
<div class="categorie-looks">
<div class="categorie-looks-ctn">
{# <h2>Nos articles</h2> #}
<div class="no-caroussel">
{% for article in articles %}
<div class="look">
<a href="{{ path('app_leguide_article', {'slugCategory': article.articleCategory.slug, 'slug': article.slug, 'articleId': article.id}) }}" class="top">
{% if article.imagesByType('image_article_main')|length > 0 %}
<img class="ui image" src="{{ article.imagesByType('image_article_main').first.path|imagine_filter('sylius_shop_product_original') }}" />
{% endif %}
<h2 class="categorie-looks-description">
{% if article.titleVignette is not empty %}
{{ article.titleVignette }}
{% else %}
{{ article.title }}
{% endif %}
</h2>
</a>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
{% endif %}
{% endblock %}