vendor/gourmops/theme/src/Resources/views/storefront/page/product-detail/headline.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/headline.html.twig' %}
  2. {% block page_product_detail_name_container %}
  3.     <div class="product-detail-name-container" itemprop="name">
  4.         {% block page_product_detail_name %}
  5.             {% set names = page.product.translated.name|split('-') %}
  6.             <h1 class="product-detail-name">
  7.                 {% for name in names %}
  8.                     {% if loop.first %}
  9.                         {% set nameItems = name|trim|split(' ') %}
  10.                         {% for nameItem in nameItems %}
  11.                             {% if loop.first %}
  12.                                 <span>{{ nameItem }}</span>
  13.                             {% else %}
  14.                                 {{ nameItem }}
  15.                             {% endif %}
  16.                         {% endfor %}
  17.                     {% endif %}
  18.                 {% endfor %}
  19.             </h1>
  20.             {% if names|length > 1 %}
  21.                 <h2 class="product-detail-subname">
  22.                     {% for name in names %}
  23.                         {% if not loop.first %}
  24.                             // {{ name|trim }}
  25.                         {% endif %}
  26.                     {% endfor %}
  27.                 </h2>
  28.             {% endif %}
  29.         {% endblock %}
  30.     </div>
  31. {% endblock %}
  32. {% block page_product_detail_manufacturer %}{% endblock %}