themes/webapicTheme/templates/bundles/SyliusShopBundle/Webapic/page/taxon.html.twig line 1

Open in your IDE?
  1.  {% if taxons %}
  2.         
  3.     <div class="block-type7-content">
  4.         {% for taxon in taxons %}
  5.             {% set image_bg = '' %}        
  6.             {% set icone_bg = '' %}         
  7.             {% if null != taxon.images %}
  8.                 {% for image in taxon.images %}
  9.                     {% if image.type != 'icone' %}
  10.                         {% set image_bg = asset('/media/image/'~image.path) %}
  11.                     {% endif %}
  12.                 {% endfor %}
  13.                 {% if taxon.imagesByType('icone') is not empty   %}               
  14.                     {% set icone_bg = asset('/media/image/'~taxon.imagesByType('icone').first.path) %}
  15.                 {% endif %}
  16.             {% endif %}
  17.             <div class="taxon-ctn">
  18.                 <div class="taxon">
  19.                     
  20.                     <div class="content">
  21.                         <h3>{{ taxon.name }}</h3>
  22.                         <p>{{ taxon.description|raw }}</p>
  23.                     </div>
  24.                     {% if icone_bg %}
  25.                         <div class="img-icone">
  26.                             <img src="{{ icone_bg }}">
  27.                         </div>
  28.                     {% endif %}
  29.                     {% if image_bg %}
  30.                         <div class="img-ctn">
  31.                             <img src="{{ image_bg }}">
  32.                         </div>
  33.                     {% endif %}
  34.                     
  35.                 </div>
  36.             </div>
  37.         {% endfor %}  
  38.     </div>           
  39. {% endif %}