<a
class="newsXX-item search-list-item"
href="{{ url }}"
aria-label="{{ 'T_READ_MORE'|trans({}, 'openform_front', app.request.locale) }} {{ entity.Translation[app.request.locale].title }}"
>
<div class="search-list-item__content{% if entity.imagePath %} search-list-item__content--image{% endif %}">
<ul class="search-list-item__content__wrap">
{% for parent in search.parentsArray %}
{% if parent.isSkipped is not defined or not parent.isSkipped %}
<li>{{ ('T_SEARCH_ITEM_' ~ ( parent|getClassName|upper ) )|trans({}, 'openform_front', app.request.locale) }}: <span>{{ parent.Translation[app.request.locale].title }}</span></li>
{% endif %}
{% endfor %}
</ul>
{% if entity.imagePath %}
<div class="search-list-item__image">
{% set pageImage = entity.imagePath ? openform_front_util.getImagePathByType(entity.Thumb,'search') : '' %}
<img src="{{ pageImage }}" alt="{{ entity.Translation[app.request.locale].alt is defined ? entity.Translation[app.request.locale].alt }}">
</div>
{% endif %}
{# <strong style="color:red">{{ entityName }}</strong>:
<div class="news-item__title js-news-title">
{{ entity.Translation[app.request.locale].title }}
</div> #}
{% if entity.Translation[app.request.locale].shortLead is defined and entity.Translation[app.request.locale].shortLead|length > 0 %}
<p class="search-list-item__content__desc block__text">{{ entity.Translation[app.request.locale].shortLead|striptags[:250] ~ '...' }}</p>
{% else %}
<p class="search-list-item__content__desc block__text">{{ entity.Translation[app.request.locale].text|striptags[:250] ~ '...' }}</p>
{% endif %}
</div>
</a>