templates/olymp-online/gallery/show.html.twig line 1
{% extends 'layout/base.html.twig' %}
{% block body_class %}
{{ parent() }}
olympiad-page
{% endblock %}
{% block title %}
{{ title(album.caption,group.caption, "gallery.title"|trans) }}
{% endblock %}
{% block body %}
{% include "olympiads/iofs/presentation.html.twig" %}
<div class="olympiad iofs">
<div class="container iofs__inner">
<div class="iofs__content">
<div class="button-back-block">
<h2>{{ group.caption }}</h2>
<h3>{{ "gallery.album_header"|trans }} "{{ album.caption }}" </h3>
<a href="{{ path('olympiad_gallery_60_group',{id:group.id}) }}"
class="btn btn-outline-secondary button-back"><i
class="fas fa-arrow-left"></i> {{ "gallery.to_list"|trans }}</a>
</div>
<div class="olympiad-gallery-photos">
<div class="masonry-grid">
{% for f in items %}
{% if f.type.value == 'photo' %}
<div class="masonry-grid-item">
<a href="{{ vich_uploader_asset(f.file)|imagine_filter('full') }}"
data-fancybox="r{{ album.id }}">
<img class="img-thumbnail "
src="{{ vich_uploader_asset(f.file)|imagine_filter('preview600') }}">
</a>
</div>
{% elseif f.type.value == 'video' %}
<div class="masonry-grid-item">
<a href="{{ f.data.url|default }}"
data-fancybox="r{{ album.id }}"
{% if f.data.forceHTML5 is defined and f.data.forceHTML5 %}
data-type="html5video"
{% endif %}
>
<img class="img-thumbnail "
src="{{ vich_uploader_asset(f.file)|imagine_filter('preview600') }}">
</a>
</div>
{% elseif f.type.value == 'iframe' %}
<div class="masonry-grid-item">
<a href="{{ f.data.iframe|default }}"
data-type="iframe"
data-fancybox="r{{ album.id }}">
<img class="img-thumbnail "
src="{{ vich_uploader_asset(f.file)|imagine_filter('preview600') }}">
</a>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{{ include('olympiads/iofs/stages.html.twig') }}
</div>
</div>
{% endblock %}