templates/website/page/game-zone.html.twig line 1
{% extends '@web/base.html.twig' %}{% if page is defined and page is not empty %}{% set metaParams = {'title': page.metaTitle ? page.metaTitle : page.title,'metaDescription': page.metaDescription,'metaKeywords': page.metaKeywords,'image':(page.metaImage is defined ? page.metaImage : page.image is defined ? page.image : null)} %}{% else %}{% set metaParams = {} %}{% endif %}{% block meta %}{% include '@web/parts/meta.html.twig' with metaParams %}{% endblock meta %}{% block content %}<section class="section-game-zone">{% block header %}{% include '@web/parts/header.html.twig' %}{% endblock %}{% if gameZoneSlider is not empty %}<div class="playground game-zone-slick slider-banner my-container-fluid">{% for item in gameZoneSlider %}<div class="image-wrapper"><div class="title-wrapper"><span class="standard-title title-desktop">{{ gameZone.title }}</span><span class="standard-text ">{{ gameZone.description|raw }}</span></div><div class="image-desktop-wrapper"><img class="image-desktop" src="{{ item.image }}" alt="image"></div></div>{% endfor %}</div>{% endif %}{% if gameZone.body %}<div class="header-wrapper section-fragmented full my-container-fluid"><div class="standard-text">{{ gameZone.body|raw }}</div></div>{% endif %}{% if gameZone.additionalInfo %}<div class="description-wrapper"><div class="item w-100"><span>{{ gameZone.additionalInfo|raw }}</span></div></div>{% endif %}<div class="my-container-fluid"><div class=" game-zone-images-wrapper">{% if gameZone.images %}{% for item in gameZone.images %}<div class="game-zone-image"><img src="{{ item }}" width="100%" alt="gameZone"></div>{% endfor %}{% endif %}</div></div><div class="my-container-fluid">{% if gameZone.video %}<div class="video-wrapper mt-5 mb-5"><video muted autoplay loop id="game-zone-video" ><source src="{{ gameZone.video }}"></video><button class="play-button" id="playBtn"onclick="toggleVideoPlay()">{{ svg('public/static_images/svg/play.svg')|raw }}</button></div>{% endif %}</div>{% block footer %}{% include '@web/parts/footer.html.twig' %}{% endblock %}</section>{% endblock %}{% block javascripts %}{{ parent() }}<script>function toggleVideoPlay() {const video = document.getElementById('game-zone-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>{% endblock %}