vendor/shopware/storefront/Resources/views/storefront/element/cms-element-product-name.html.twig line 1

Open in your IDE?
  1. {% block element_product_name %}
  2.     {%  set config = element.fieldConfig.elements %}
  3.     <div class="cms-element-{{ element.type }}{% if config.verticalAlign.value %} has-vertical-alignment{% endif %}">
  4.         {% block element_product_name_alignment %}
  5.             {% if config.verticalAlign.value %}
  6.                 <div class="cms-element-alignment{% if config.verticalAlign.value == "center" %} align-self-center{% elseif config.verticalAlign.value == "flex-end" %} align-self-end{% else %} align-self-start{% endif %}">
  7.             {% endif %}
  8.             {% block element_product_name_inner %}
  9.                 {% if config.content.isStatic %}
  10.                     <span itemprop="name">
  11.                         {{ element.data.content|raw }}
  12.                     </span>
  13.                 {% else %}
  14.                     <h1 class="product-detail-name" itemprop="name">
  15.                         {{ element.data.content|raw }}
  16.                     </h1>
  17.                 {% endif %}
  18.             {% endblock %}
  19.             {% if config.verticalAlign.value %}
  20.                 </div>
  21.             {% endif %}
  22.         {% endblock %}
  23.     </div>
  24. {% endblock %}