from server afisha

This commit is contained in:
root 2023-01-30 14:47:38 +05:00
parent db900931e1
commit dacdc1a9f9
2 changed files with 42 additions and 3 deletions

View File

@ -76,11 +76,48 @@ function onStart(){
<div class="affiche-item-item">
<div class="affiche-item-top">
<div class="affiche-swiper-wrapper">
<div class="swiper afficheSwiper">
<div class="swiper-wrapper">
{% if post.more_photo|length > 0 %}
{% for img in post.more_photo %}
<div class="swiper-slide">
<div class="affiche-item-img">
{% if post.featured_image %}
<img src="{{post.featured_image|media}}" alt="{{post.title}}" />
{% endif %}
<img src="{{img.photoq|media}}" alt="{{post.title}}" />
</div>
</div>
{% endfor %}
{% else %}
<div class="swiper-slide">
<div class="affiche-item-img">
<img src="{{post.featured_image|media}}" alt="{{post.title}}" />
</div>
</div>
{% endif %}
</div>
<div class="photo-prev video-prev affiche-prev">
<img src="{{'assets/new/icons/arrow-left-white.svg'|theme}}" alt="" />
</div>
<div class="photo-next video-next affiche-next">
<img src="{{'assets/new/icons/arrow-right-white.svg'|theme}}" alt="" />
</div>
</div>
</div>
<div class="affiche-item-data">
<div class="affiche-item-data">

View File

@ -159,5 +159,7 @@ function onStart(){
</section>
{% put scripts %}
<script src="{{'assets/new/scripts/core/affiche-item.js'|theme}}"></script>
<script src="{{'assets/new/scripts/core/rubric.js'|theme}}"></script>
{% endput %}