themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Taxon/_verticalMenu.html.twig line 1

Open in your IDE?
  1. {% import "@SyliusShop/Common/Macro/icons.html.twig" as icons %}
  2. {{ sylius_template_event('sylius.shop.product.index.before_vertical_menu', {'taxon': taxon}) }}
  3. <div class="col-md-8">
  4.     <div class="categorie-flex">
  5.         <h1 class="categ-lib"><span>{{ taxon.name }} </span></h1>
  6.         <div class="lib-left-categ">Catégories</div>
  7.         <div class="descr-categ expand-me">
  8.             <p>{{ taxon.description }}</p>
  9.         </div>
  10.         <div class="row">
  11.             <div class="col-12">
  12.                 <ul class="sous-categ">
  13.                     {% for child in taxon.children %}
  14.                         <li><h2><a href="{{ path('sylius_shop_product_index', {'slug': child.slug, '_locale': child.translation.locale}) }}" class="">{{ child.name }} <span>({{ child|app_get_product_amount(sylius.localeCode, sylius.channel ) }})</span></a></h2></li>
  15.                     {% endfor %}
  16.                 </ul>
  17.             </div>
  18.         </div>
  19.     </div>
  20. </div>
  21. <div class="col-md-4 d-md-block d-none">
  22.     <div class="categ-ss-img text-right">
  23.         {% if taxon.images.first %}
  24.             {% set path = taxon.images.first.path|imagine_filter(filter|default('sylius_admin_product_large_thumbnail')) %}
  25.         {% else %}
  26.             {% set path = '//placehold.it/200x200' %}
  27.         {% endif %}
  28.         <img src="{{ path }}" alt="{{ taxon.name }}" class="ui bordered image" />
  29.     </div>
  30. </div>
  31. {{ sylius_template_event('sylius.shop.product.index.after_vertical_menu', {'taxon': taxon}) }}