{% from '@openform_front_templates/_includes/_icons.html.twig' import arrowright %}
{% if block.Translation[app.request.locale].title or block.Translation[app.request.locale].textLinks %}
<section class="block-item block-files {% if mobile %}block-files--mobile{% endif %}">
{% if block.Translation[app.request.locale].title %}
<h2 class="block-text__title block__h3">
{{ block.Translation[app.request.locale].title|raw|nl2br }}
</h2>
{% endif %}
{% if block.Translation[app.request.locale].text %}
<div class="block-text__description block__text"
style="{{block.textBlockWidth is defined and block.textBlockWidth ? "max-width:" ~ block.textBlockWidth ~"%;"}}
{{block.textBlockPaddingTop is defined and block.textBlockPaddingTop ? "padding-top:" ~ block.textBlockPaddingTop ~"px;"}}
{{block.textBlockPaddingBottom is defined and block.textBlockPaddingBottom ? "padding-bottom:" ~ block.textBlockPaddingBottom ~"px;"}}
{{block.textBlockPaddingLeft is defined and block.textBlockPaddingLeft ? "padding-left:" ~ block.textBlockPaddingLeft ~"px;"}}
{{block.textBlockPaddingRight is defined and block.textBlockPaddingRight ? "padding-right:" ~ block.textBlockPaddingRight ~"px;"}}
">{{ block.Translation[app.request.locale].text|raw }}</div>
{% endif %}
{# linki #}
{% if block.Translation[app.request.locale].textLinks %}
{% set links = openform_front_util.getJsonDecode(block.Translation[app.request.locale].textLinks) %}
{% if links %}
<div class="block-files__list" data-scroll>
{% for item in links %}
<div class="link-item">
{% for btn in item.c %}
{% if btn.h is defined and btn.t is defined %}
<a href="{{btn.h}}" class="block-text__btns__btn button-read-more button-read-more--black">
<span>
{{btn.t}}
</span>
{{arrowright()}}
</a>
{% elseif btn.t is defined %}
<span class="block-text__btns__btn button-read-more button-read-more--black">
<span>
{{btn.t}}
</span>
</span>
{% endif %}
{% endfor %}
</div>
{% endfor %}
</div>
{% endif %}
{% endif %}
</section>
{% endif %}