themes/webapicTheme/templates/partials/block-categorie-childrens.html.twig line 1

Open in your IDE?
  1. {% if null != taxonsChilds %} 
  2.     <div class="categorie-childrens">
  3.         <div class="categorie-childrens-ctn">
  4.             <div class="carouseel">
  5.                 {% for child in taxonsChilds %}
  6.               
  7.                     {% if  child.enabled %} 
  8.                         <div class="child">
  9.                             <div class="categorie">  
  10.                                 <a href="{{ path('sylius_shop_product_index', {'slug': child.slug}) }}" class="top">
  11.                                     {% if child.imagesByType('image_taxon_main')|length > 0 %}
  12.                                     <img class="ui image" src="{{ child.imagesByType('image_taxon_main').first.path|imagine_filter('app_taxon_image_taxon_main') }}" />
  13.                                     {% else %}
  14.                                     <img class="ui image" src="{{ asset('webapic-theme/images/placeholder-category-image.png') }}" />
  15.                                     {% endif %}
  16.                                     <h2>{{ child.name }}</h2>
  17.                                 </a>
  18.                             </div>
  19.                         </div>
  20.                     {% endif %} 
  21.                     
  22.                 {% endfor %}
  23.             </div>
  24.         </div>
  25.     </div>
  26. {% endif %}