templates/website/page/events.html.twig line 1
{% extends '@web/base.html.twig' %}{% if page is defined and page is not empty %}{% set metaParams = {'title': event.title,'metaDescription': event.metaDescription,'metaKeywords': event.metaKeywords,'image':(event.image is defined ? event.image : null)} %}{% else %}{% set metaParams = {} %}{% endif %}{% block content %}<section class="section-events">{% block header %}{% include '@web/parts/header.html.twig' %}{% endblock %}<div class="events-wrapper my-container-fluid"><div class="image-wrapper">{% if event.image is not empty%}<img src="{{ event.image }}" alt="{{event.title}}">{% endif %}<div class="title">{{event.title}}</div></div></div><div class="body-wrapper ">{% if event.body|length > 0 %}<div class="section-fragmented "><div class="standard-text">{{event.body|raw}}</div></div>{% endif %}{% if event.additionalInfo|length > 0 %}<div class="section-fragmented mt-5"><div class="standard-text">{{event.additionalInfo|raw}}</div></div>{% endif %}<div class=" my-container-fluid"><div class="event-video-images">{% if event.video %}<div class="video-wrapper"><video muted autoplay loop id="event-video"><source src="{{ event.video }}"></video><button class="play-button" id="playBtn" onclick="toggleVideoPlay()">{{ svg('public/static_images/svg/play.svg')|raw }}</button></div>{% endif %}<div class="image-wrapper">{% if event.eventImages|length > 0 %}{% for item in event.eventImages %}<div class="image"><img src="{{ item.image }}" alt="{{ item.title }}"><div class="title color-darkblue">{{ item.title }}</div></div>{% endfor %}{% endif %}</div></div></div></div>{% block footer %}{% include '@web/parts/footer.html.twig' %}{% endblock %}<script>function toggleVideoPlay() {const video = document.getElementById('event-video');const playBtn = document.getElementById('playBtn');if (window.innerWidth < 991 ){if (playBtn.style.opacity === "0") {playBtn.style.opacity = "1";} else {playBtn.style.opacity = "0";}}if (video.paused) {video.play();playBtn.classList.add('button-opacity')} else {playBtn.classList.remove('button-opacity')video.pause();}}</script></section>{% endblock %}