{% sw_extends '@Storefront/storefront/element/cms-element-text.html.twig' %}
{% block element_text %}
{% set config = element.fieldConfig.elements %}
{% if cmsPage.type == "product_list" %}
{% set current_page_weiterlessen = 0 %}
{% if element.fieldConfig.elements.content.value == "<h1>{{ category.name }}</h1>{{ category.description }}"
or element.fieldConfig.elements.content.value == "<h1>{{ category.name }}</h1><p>{{ category.description }}</p>"
or element.fieldConfig.elements.content.value == "<h1>{{ category.name }}</h1>\n<p>{{ category.description }}</p>\n<p> </p>" %}
{% set current_page_weiterlessen = 1 %}
{% endif %}
{% endif %}
<div class="cms-element-{{ element.type }}{% if config.verticalAlign.value %} has-vertical-alignment{% endif %}{% if current_page_weiterlessen %} weiterlessen-container{% endif %}">
{% block element_text_alignment %}
{% if config.verticalAlign.value %}
<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 %}">
{% endif %}
{% block element_text_inner %}
{{ element.data.content|raw }}
{% if current_page_weiterlessen %}
<button class="btn btn-inline btn-weiterlessen">Weiterlesen</button>
{% endif %}
{% endblock %}
{% if config.verticalAlign.value %}
</div>
{% endif %}
{% endblock %}
</div>
{% endblock %}