parent
ad66d75abb
commit
e2215af90a
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 39 KiB |
@ -1,110 +1,24 @@ |
|||||||
|
|
||||||
|
{% set gallery = fn('get_field', 'gallery') %} |
||||||
|
{% if gallery %} |
||||||
<section class="main-gallery"> |
<section class="main-gallery"> |
||||||
<div class="new-container"> |
<div class="new-container"> |
||||||
<h2 class="main-gallery_title">COSMOPETS</h2> |
<h2 class="main-gallery_title">COSMOPETS</h2> |
||||||
<div class="gallery-grid"> |
<div class="gallery-grid"> |
||||||
<div class="gallery-box gallery-box--1"> |
{% for block in gallery %} |
||||||
<div class="gallery-card"> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/1.png" alt=""> |
|
||||||
</div> |
|
||||||
|
|
||||||
<div class="gallery-card "> |
<div class="gallery-box gallery-box--{{ block.block_type }}"> |
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/3.png" alt=""> |
{% for img in block.photos %} |
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/4.png" alt=""> |
|
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/5.png" alt=""> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="gallery-box gallery-box--2"> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/6.png" alt=""> |
|
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/7.png" alt=""> |
|
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/8.png" alt=""> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="gallery-box gallery-box--3"> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/10.png" alt=""> |
|
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/11.png" alt=""> |
|
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/12.png" alt=""> |
|
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/12.png" alt=""> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="gallery-box gallery-box--4"> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/13.png" alt=""> |
|
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/14.png" alt=""> |
|
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/15.png" alt=""> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="gallery-box gallery-box--1"> |
|
||||||
<div class="gallery-card"> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/1.png" alt=""> |
|
||||||
</div> |
|
||||||
|
|
||||||
<div class="gallery-card"> |
<div class="gallery-card"> |
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/3.png" alt=""> |
<img src="{{img.img.url}}" alt="{{img.img.alt}}"> |
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/4.png" alt=""> |
|
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/5.png" alt=""> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="gallery-box gallery-box--2"> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/6.png" alt=""> |
|
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/7.png" alt=""> |
|
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/8.png" alt=""> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="gallery-box gallery-box--3"> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/10.png" alt=""> |
|
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/11.png" alt=""> |
|
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/12.png" alt=""> |
|
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/12.png" alt=""> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="gallery-box gallery-box--4"> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/13.png" alt=""> |
|
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/14.png" alt=""> |
|
||||||
</div> |
|
||||||
<div class="gallery-card "> |
|
||||||
<img src="/wp-content/themes/cosmopet/static/img/new-front/15.png" alt=""> |
|
||||||
</div> |
|
||||||
</div> |
</div> |
||||||
|
{% endfor %} |
||||||
|
|
||||||
</div> |
</div> |
||||||
|
|
||||||
|
{% endfor %} |
||||||
</div> |
</div> |
||||||
</section> |
</section> |
||||||
|
|
||||||
|
{% endif %} |
||||||
|
Loading…
Reference in new issue