templates/news/item.html.twig line 26
{% extends 'layout/base.html.twig' %}{% block title %}{{ title(item.caption, "title.news.caption"|trans) }}{% endblock %}{% block body %}{# @var item \App\Entity\Content\News #}<div class="presentation new-presentation"><div class="presentation__background-wrapper"><div class="presentation__background presentation__background-top"style="background-image: url({{ asset('build/images/header/bg.jpg') }})"></div>{# <div class="presentation__background {% if not item.image %}presentation__background-top{% endif %}"style="background-image: url({% if item.image %}{{ vich_uploader_asset(item.image)|imagine_filter('news_item_background') }}{% else %}{{ asset('build/images/header/bg.jpg') }}{% endif %})"></div>#}{# <div class="presentation__background" style="background-image: url({{ asset('build/images/news/6.jpg') }})"></div> #}</div><div class="presentation__content container"><h1 class="presentation__title presentation__title_size_s">{{ item.caption }}</h1>{% if item.subtitle %}<div class="presentation__subtitle">{{ item.subtitle }}</div>{% endif %}</div><div class="new-presentation__info"><div class="new-presentation__info-inner container">{{ item|owner_render('news_view') }}<div class="new-presentation__date">{{ item.publishAt|format_date('long',"dd MMMM yyyy") }}</div></div></div></div><div class="new"><div class="new__inner container"><div class="text-block new__content">{{ item.text|raw }}</div>{% if other_news %}<div class="new__other-news"><h4 class="new__other-news-title">{{ "news.other_news"|trans }}</h4><div class="new__other-news-inner">{% for n in other_news %}<div class="new__other-news-new">{% if n.image %}<a class="new__other-news-new-image image-cover"href="{{ path('news_item',{id:n.id}) }}"><imgsrc="{{ vich_uploader_asset(n.image)|imagine_filter('news_other_preview') }}"></a>{% endif %}<div class="new__other-news-new-text"><a class="new__other-news-new-title"href="{{ path('news_item',{id:n.id}) }}"><h5>{{ n.caption }}</h5></a><div class="new__other-news-new-date">{{ n.publishAt|format_date('long',"dd MMMM yyyy") }}</div></div></div>{% endfor %}</div></div>{% endif %}</div></div>{% endblock %}