themes/BootstrapChildTheme/SyliusShopBundle/views/Product/Show/_header.html.twig line 1

Open in your IDE?
  1.  {% if product.mainTaxon is not null %}
  2.     {% set taxon = product.mainTaxon %}
  3.     {% if taxon.enabled %}
  4.        {% if taxon.slug == 'catalogue/per-pack-type/story' %}
  5.             <div class="catalouge_history">{{'sylius.pages.content.PackStory'|trans }}</div>
  6.         {% endif %}
  7.           {% if taxon.slug == 'catalogue/per-pack-type/quiz' %}
  8.             <div class="catalouge_history">{{'sylius.pages.content.packQuiz'|trans }}</div>
  9.         {% endif %}
  10.     {% endif %}
  11.  {% endif %}
  12. <h1 id="sylius-product-name" class="ui monster dividing header" {{ sylius_test_html_attribute('product-name', product.name) }}>{{ product.name }}</h1>
  13. <div class="prodcut_attributes" {{ sylius_test_html_attribute('product-attributes') }}>
  14.     {% for attribute in product.getAttributesByLocale(configuration.request.locale, configuration.request.defaultLocale, sylius_base_locale)|sort_by('attribute.position') %}
  15.         {% if attribute.getType() != "checkbox" %}       
  16.         <div class="attribute-blocks">
  17.             {# {{ dump(attribute) }} #}
  18.             <div class="sylius-product-attribute-value" {{ sylius_test_html_attribute('product-attribute-value', attribute.name) }}>
  19.             {% include [
  20.                         '@SyliusShop/Product/Show/Types/'~attribute.attribute.type~'.html.twig',
  21.                         '@SyliusAttribute/Types/'~attribute.attribute.type~'.html.twig',
  22.                         '@SyliusShop/Product/Show/Types/default.html.twig'
  23.                     ] with {
  24.                         'attribute': attribute,
  25.                         'locale': configuration.request.locale,
  26.                         'fallbackLocale': configuration.request.defaultLocale
  27.                     } %}
  28.             </div>
  29.         </div>  
  30.         {% endif %}
  31.     {% endfor %}
  32. </div>