templates/olympiads/iofs/presentation.html.twig line 1
{% import "parts/pretty_date.html.twig" as pd %}
<div class="presentation iofs-presentation">
<div class="presentation__background-wrapper">
<div class="iofs-presentation__background"
style="background-image: url({{ asset('build/images/header/bg.jpg') }})"></div>
</div>
<div class="iofs-presentation__content container">
<h1 class="iofs-presentation__title">{{ item.caption }}</h1>
{% if item.subtitle %}<h2 class="iofs-presentation__subtitle">{{ item.subtitle }}</h2>{% endif %}
<div class="iofs-presentation__date">{% if not item.interval.empty() %}
{{ pd.pretty_date_full(item.interval.from,item.interval.to) }}
{% else %}
{{ item.dateString }}
{% endif %}
</div>
</div>
</div>
{% set menuItem = knp_menu_get('olympiad', [], { olympiad: item}) %}
{{ knp_menu_render(menuItem,{
'depth': 1,
'currentClass':'section-navigation__nav-link_active',
'ancestorClass':'section-navigation__nav-link_active',
'template':'menu/main-template.html.twig'
}) }}