templates/website/page/food.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-food"{% if page and page.backgroundImage is not null %}style="background-image: url('{{ page.backgroundImage }}');"{% endif %}>{% block header %}{% include '@web/parts/header.html.twig' %}{% endblock %}<div class="my-container-fluid"><div class="food-wrapper">{% if foodSlider is not empty %}<div class="slider slider-banner menuCourt-slick">{% for item in foodSlider %}<div class="slick-slide"><div class="item"><img src="{{ item.image|imagine_filter('thumbnail_view') }}" width="100%"alt="{{ item.id }}"></div></div>{% endfor %}</div>{% endif %}<div class="info-content"><div class="standard-text">{{ 'Ծանոթացի՛ր Food Court -ի ճաշացանկին այստեղ'|trans }}</div><a target="_blank" href="{{ page and page.file ? page.file : '#' }}"class="btn-red menu-btn">{{ 'ՃԱՇԱՑԱՆԿ'|trans }}</a><div class="title">{{ 'ԱՄԵՆԱՇԱՏ ՊԱՏՎԻՐՎՈՂ'|trans }} <span>5</span> {{ 'ՈՒՏԵՍՏՆԵՐԸ'|trans }}</div></div>{% if foodCourtMenu is not empty %}<div class="menu-slick">{% for item in foodCourtMenu %}<div class="slick-slide"><div class="item"><div class="img-box"><div class="number">{{ loop.index }}</div><img src="{{ item.image|imagine_filter('thumbnail_view') }}" width="100%"alt="{{ item.id }}"></div><div class="title color-darkblue">{{ item.title }}</div></div></div>{% endfor %}</div>{% endif %}{% if childrensComboSlider is not empty %}<div class="childrens-menu-slick-wrapper"><div class="title">{{ 'Մանկական կոմբո'|trans }}</div><div class="childrens-menu-slick">{% for item in childrensComboSlider %}<div class="slick-slide"><div class="menu-item "><div class="img-box"><img class="mb-sm-3" src="{{ item.image|imagine_filter('thumbnail_view') }}" width="100%"alt="{{ item.title }}"><div class="title color-darkblue ">{{ item.title }}</div></div><div class="box-info">{{ item.body|raw }} </div></div></div>{% endfor %}</div></div>{% endif %}</div>{% if page and page.video is not empty %}<div class="pt-4"><div class="video-wrapper"><video muted autoplay loop id="food-video"><source src="{{ page.video }}"></video><button class="play-button" id="playBtn" onclick="toggleVideoPlay()">{{ svg('public/static_images/svg/play.svg')|raw }}</button></div></div>{% endif %}</div>{# <div class="mt-5 my-container-fluid" style="min-height: 1000px;position: relative;top: 220px">#}{# <div class="ice-creams" style="display: flex;#}{# width: 88%;#}{# justify-content: flex-end;#}{# position: absolute;#}{# gap:20px;#}{# #}{#padding-right: {{ iceCreams|length }}vw;#}{# ">#}{# {% for item in iceCreams %}#}{# <img style=" position: relative; top: {{ -190 + (loop.index == iceCreams|length ? 20 * loop.index : 15 * loop.index) }}px;#}{# z-index: 1;" src="{{ item.image }}" alt="" width="150px">#}{# {% endfor %}#}{# </div>#}{# <div class="text-center">#}{# <img style="z-index: 2;position: relative" src="{{ asset('static_images/ice-cream-bus.png') }}" width="80%" alt="">#}{# </div>#}{# </div>#}<div class="ice-cream-wrapper mt-5 my-container-fluid" id="ice-cream-wrapper"><img id="ice-cream-logo" class="ice-cream-logo vert-move"src="{{ asset('static_images/ice-cream-logo.png') }}" alt="ice-cream"><img class="banner-image" src="{{ page.image }}" width="100%" alt="ice-cream"><div class="ice-cream-area">{% for item in iceCreams %}<div class=" ice-cream " style="background: linear-gradient(180deg, {{ item.color }} 0%, rgba(255, 255, 255, 1) 80%);"><img src="{{ item.image|imagine_filter('thumbnail_slide') }}" alt="{{ item.title }}" width="100%"><div class="title mb-0 text-uppercase" style="color: {{ item.color }}">{{ item.title }}</div></div>{% endfor %}</div><div class="videos-wrapper">{% if iceCreamVideos is not empty %}{% for item in iceCreamVideos %}<div class="pt-4"><div class="video-wrapper"><video loop autoplay muted id="food-video{{ item.id }}"><source src="{{ item.video }}"></video>{# <button class="play-button" id="playBtn{{ item.id }}" onclick="toggleVideoPlay('{{ item.id }}')">{{ svg('public/static_images/svg/play.svg')|raw }}</button>#}</div></div>{% endfor %}{% endif %}</div></div>{# background: linear-gradient(180deg, rgb(0 0 114) 0%, rgba(255, 255, 255, 1) 100%);#}{% block footer %}{% include '@web/parts/footer.html.twig' %}{% endblock %}<script>document.getElementById('ice-cream-logo').addEventListener('click', function (e) {document.getElementById("ice-cream-wrapper").scrollIntoView()});window.addEventListener('scroll', () => {if (window.scrollY < 400) {document.getElementById('ice-cream-logo').style.display = "flex";} else {document.getElementById('ice-cream-logo').style.display = "none";}});function toggleVideoPlay(itemId = '') {const video = document.getElementById('food-video'+itemId);const playBtn = document.getElementById('playBtn'+itemId);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 %}