{% from '@openform_front_templates/_includes/_icons.html.twig' import arrowright %}
{% extends '@openform_front_templates/base.html.twig' %}
{% block bodyAttr %}news-list-body{% endblock %}
{% set pageSubTitle = entity.Translation[app.request.locale].title %}
{% set metaTitle = entity.Translation[app.request.locale].metaTitle ? entity.Translation[app.request.locale].metaTitle : entity.Translation[app.request.locale].title %}
{% set metaDescription = entity.Translation[app.request.locale].metaDescription %}
{% set metaKeywords = entity.Translation[app.request.locale].metaKeywords %}
{% set pageImage = entity.imagePath ? openform_front_util.getImagePathByType(entity.Thumb,'list') : '' %}
{% block content %}
{% include "@openform_front_templates/_blocks_sections/block.html.twig" with { sections: openform_front_util.getSections(entity)|length > 0 ? openform_front_util.getSections(entity)|slice(0, 1) : '' } %}
<section class="index-news" data-scroll-section>
{% if openform_front_util.Config.showHomeNews %}
<div class="index-news__wrapper container">
<h1 class="index-news__title home-title">{{ 'T_NEWS'|trans({}, 'openform_front', app.request.locale) }}</h1>
<div class="index-news__items">
{% for item in entities|slice(0, 4) %}
{% include '@openform_front_templates/AboutUs/_item.html.twig' with {item} %}
{% endfor %}
</div>
{% set url = openform_front_util.pageUrlByIdName('page_news', app.request.locale) %}
<a href="{{url}}" class="btn btn--color-white btn--position-right">
<span>{{('T_SEE_ALL_NEWS')|trans({}, 'openform_front', app.request.locale)}}</span> {{arrowright()}}
</a>
</div>
{% endif %}
{% include "@openform_front_templates/_blocks_sections/block.html.twig" with { sections: openform_front_util.getSections(entity)|length > 0 ? openform_front_util.getSections(entity)|slice(1, openform_front_util.getSections(entity)|length) : '' } %}
</section>
{% endblock %}