templates/includes/blocks/belt.html.twig line 1
<div class="belt {% if content.inverted %}belt--inverted{% endif %} {{ content.top }} {{ content.bottom }}"
x-data="belt">
<div class="belt__header{% if content.beltHeadlineFullWidth %} belt__header--full {% endif %}">
<div class="belt__top">
<div class="belt__title mobile-only" x-ref="mobiletitle">
{% if content.beltSeoHeadlinePagina %}<{{ content.beltSeoHeadlinePagina }}>{% endif %}
<div class="pagina">
{{ content.beltPaginaDesktop }}
</div>
{% if content.beltSeoHeadlinePagina %}</{{ content.beltSeoHeadlinePagina }}>{% endif %}
{{ content.beltTitleMobile|raw }}
</div>
<div class="belt__title desktop-only" x-ref="title">
{% if content.beltSeoHeadlinePagina %}<{{ content.beltSeoHeadlinePagina }}>{% endif %}
<div class="pagina">
{{ content.beltPaginaDesktop }}
</div>
{% if content.beltSeoHeadlinePagina %}</{{ content.beltSeoHeadlinePagina }}>{% endif %}
{{ content.beltTitleDesktop|raw }}
</div>
{% if content.beltLead %}
<div class="belt__lead" x-ref="lead">
{{ content.beltLead|raw }}
</div>
{% endif %}
{% if content.beltText %}
<div class="belt__text" x-ref="text">
{{ content.beltText|raw }}
</div>
{% endif %}
</div>
{% if content.beltActionLink %}
<div class="belt__actions" x-ref="actions">
{% if content.beltActionButtonType == 'box' %}
<a href="{{ content.beltActionLink }}"
class="button button--{{ content.beltActionButtonColor }} button--size-{{ content.beltActionButtonSize }}">
<span class="button__inner">
{{ content.beltActionButtonLabel }}
</span>
</a>
{% elseif content.beltActionButtonType == 'text' %}
<a href="{{ content.beltActionLink }}"
class="text-button text-button--{{ content.beltTextButtonColor }} {% if content.uppercase %} uppercase {% endif %}">
{{ content.beltActionButtonLabel }}
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 16 16">
<path d="M.5 8.5h15M10.5 3.5l5 5-5 5" stroke="currentColor" stroke-miterlimit="10"
stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</a>
{% endif %}
</div>
{% endif %}
</div>
<div class="belt__content" x-ref="content">
<div class="belt__container">
{% set speed = content.subblocks1|length * 1000 * content.beltItemAutoplay %}
{% for i in 0..content.subblocks1|length %}
<div class="belt__items" style="--duration: {{ speed }}ms;">
{% for item in content.subblocks1 %}
<div class="belt-item">
<!-- background is optional and may be omitted -->
{% if item.tape1ItemImage %}
<div class="belt-item__background">
<img class="belt-item__image" src ="{{ item.tape1ItemImage|thumbnailUrl('320x') }}"
{% if item.tape1ItemImage.description|striptags %}alt="{{ item.tape1ItemImage.description|striptags }}"{% endif %}
sizes="360px">
</div>
{% endif %}
{% if item.tape1Tag %}
<span class="belt-item__label belt-item__label--{{ item.tagColor }}">
{{ item.tape1Tag }}
</span>
{% endif %}
<span class="belt-item__title">
{{ item.tape1ItemTitle|raw }}
</span>
<span class="belt-item__text">
{{ item.tape1ItemDescription|raw }}
</span>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
{% if content.subblocks2 %}
<div class="belt__container">
{% set speed = content.subblocks2|length * 1000 * content.beltItemAutoplay %}
{% for i in 0..content.subblocks2|length %}
<div class="belt__items" style="--duration: {{ speed }}ms;">
{% for item in content.subblocks2 %}
<div class="belt-item">
<!-- background is optional and may be omitted -->
{% if item.tape2ItemImage %}
<div class="belt-item__background">
<img class="belt-item__image" src ="{{ item.tape2ItemImage|thumbnailUrl('320x') }}"
{% if item.tape2ItemImage.description|striptags %}alt="{{ item.tape2ItemImage.description|striptags }}"{% endif %}
sizes="360px">
</div>
{% endif %}
{% if item.tape2Tag %}
<span class="belt-item__label belt-item__label--{{ item.tagColor }}">
{{ item.tape2Tag }}
</span>
{% endif %}
<span class="belt-item__title">
{{ item.tape2ItemTitle|raw }}
</span>
<span class="belt-item__text">
{{ item.tape2ItemDescription|raw }}
</span>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
{% endif %}
{% if content.subblocks3 %}
<div class="belt__container">
{% set speed = content.subblocks3|length * 1000 * content.beltItemAutoplay %}
{% for i in 0..content.subblocks3|length %}
<div class="belt__items" style="--duration: {{ speed }}ms;">
{% for item in content.subblocks3 %}
<div class="belt-item">
<!-- background is optional and may be omitted -->
{% if item.tape3ItemImage %}
<div class="belt-item__background">
<img class="belt-item__image" src ="{{ item.tape3ItemImage|thumbnailUrl('320x') }}"
{% if item.tape3ItemImage.description|striptags %}alt="{{ item.tape3ItemImage.description|striptags }}"{% endif %}
sizes="360px">
</div>
{% endif %}
{% if item.tape3Tag %}
<span class="belt-item__label belt-item__label--{{ item.tagColor }}">
{{ item.tape3Tag }}
</span>
{% endif %}
<span class="belt-item__title">
{{ item.tape3ItemTitle|raw }}
</span>
<span class="belt-item__text">
{{ item.tape3ItemDescription|raw }}
</span>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
{% endif %}
</div>
</div>