Task:6649 | Правки и СМИ О нас на главной

dev_10_refactoring
parent ffd84f112f
commit 830948cf05
  1. 12
      wp-content/themes/cosmopet/modules/layout/assets/css/gp-style-core.css
  2. 26
      wp-content/themes/cosmopet/modules/layout/assets/js/gp-main.js
  3. 120
      wp-content/themes/cosmopet/templates/front-page/front-page.twig

@ -2181,3 +2181,15 @@ textarea{
display: block; display: block;
width: max-content; width: max-content;
} }
.marketplace {
overflow: hidden!important;
}
.marketplace__swiper {
overflow: visible!important;
}
.about_us-title {
font-weight: 700;
}

@ -467,19 +467,19 @@ document.addEventListener('DOMContentLoaded', function () {
}); });
}); });
document.addEventListener('DOMContentLoaded', function () { // document.addEventListener('DOMContentLoaded', function () {
const marketSlider = new Swiper(".marketplace__swiper", { // const marketSlider = new Swiper(".marketplace__swiper", {
slidesPerView: 'auto', // slidesPerView: 'auto',
spaceBetween: 13, // spaceBetween: 13,
freeMode: true, // свободная прокрутка // freeMode: true, // свободная прокрутка
mousewheel: { // mousewheel: {
enabled: true, // enabled: true,
// sensitivity: 1, // // sensitivity: 1,
// releaseOnEdges: true, // // releaseOnEdges: true,
}, // },
}); // });
}); // });

@ -232,6 +232,126 @@
</div> </div>
</div> </div>
</section> </section>
{% if site_region == 'ru' %}
<section class="about_us">
<div class="container">
<h1 class="about_us-title">О нас пишут СМИ</h1>
<div class="smi_slider">
<div class="swiper smiSlider">
<div class="swiper-wrapper">
{% for slide in [
{
url: 'https://globalpetindustry.com/news/the-advantages-and-disadvantages-of-insect-based-pet-food/',
img: '/wp-content/uploads/2025/06/image-3-1.png',
alt: 'The advantages and disadvantages of insect-based pet food',
date: '08/01/2025',
title: 'The advantages and disadvantages of insect-based pet food',
logo: '/wp-content/uploads/2025/06/group-1.png',
logo_alt: 'Логотип СМИ 1'
},
{
url: 'https://bk.asia-city.com/shopping/news/cosmopet-launches-thailand-nutritious-insect-based-digestible-treats-your-furry',
img: '/wp-content/uploads/2025/06/uaa1-1.png',
alt: 'Cosmopet launches in Thailand with nutritious, insect-based digestible treats for your furry friends',
date: '17/07/2024',
title: 'Cosmopet launches in Thailand with nutritious, insect-based digestible treats for your furry friends',
logo: '/wp-content/uploads/2025/06/image-67.png',
logo_alt: 'Логотип СМИ 2'
},
{
url: 'https://lapkins.ru/p/chem-kormit-sobaku-allergika/',
img: '/wp-content/uploads/2025/06/frame-237.jpg',
alt: 'Чем кормить собаку-аллергика',
date: '15/04/2024',
title: 'Чем кормить собаку-аллергика',
logo: '/wp-content/uploads/2025/06/image-64.png',
logo_alt: 'Логотип СМИ 3'
},
{
url: 'https://drtclub.ru/superpremium-korm-cosmodog-dlya-sobak/',
img: '/wp-content/uploads/2025/06/frame-238.png',
alt: 'Суперпремиум корм для собак Cosmodog',
date: '18/10/2023',
title: 'Суперпремиум корм для собак Cosmodog',
logo: '/wp-content/uploads/2025/06/image-66.png',
logo_alt: 'Логотип СМИ 4',
text: 'drtclub.ru'
},
{
url: 'https://dzen.ru/a/ZUPLWi5yTXW_QlCM',
img: '/wp-content/uploads/2025/06/frame-233-2.png',
alt: 'Тестирую инновационный корм для собак',
date: '02/11/2023',
title: 'Тестирую инновационный корм для собак',
logo: '/wp-content/uploads/2025/06/group-1-1.png',
logo_alt: 'Логотип СМИ 5',
text: 'ВетБлог'
},
{
url: 'https://recyclemag.ru/article/rossii-vpervie-poyavilsya-zhivotnih-osnove-entoproteina',
img: '/wp-content/uploads/2025/06/frame-236.png',
alt: 'В России впервые появился корм для животных на основе энтопротеина',
date: '09/06/2024',
title: 'В России впервые появился корм для животных на основе энтопротеина',
logo: '/wp-content/uploads/2025/06/image-60.png',
logo_alt: 'Логотип СМИ 6'
},
{
url: 'https://zooinform.ru/polnoraczionnyj-korm-dlya-shhenkov-cosmodogc-indejkoj-i-e-protein',
img: '/wp-content/uploads/2025/06/frame-234.png',
alt: 'Полнорационный корм для щенков Cosmodog',
date: '10/04/2024',
title: 'Полнорационный корм для щенков Cosmodog',
logo: '/wp-content/uploads/2025/06/image-58.png',
logo_alt: 'Логотип СМИ 7'
},
{
url: 'https://zooinform.ru/business/nachalis-prodazhi-innovacionnogo-korma-dlya-sobak-cosmodog/',
img: '/wp-content/uploads/2025/06/frame-235.png',
alt: 'Начались продажи инновационного корма для собак Cosmodog',
date: '18/10/2023',
title: 'Начались продажи инновационного корма для собак Cosmodog',
logo: '/wp-content/uploads/2025/06/image-58.png',
logo_alt: 'Логотип СМИ 8'
},
{
url: 'https://orbsteppe.ru/katastrofa-vseh-splotila-kak-neravnodushnye-pomogali-postradavshim-ot-navodneniya-v-orenburzhe',
img: '/wp-content/uploads/2025/06/frame-239-1.png',
alt: 'Как неравнодушные помогали пострадавшим от наводнения в Оренбуржье',
date: '18/10/2023',
title: 'Как неравнодушные помогали пострадавшим от наводнения в Оренбуржье',
logo_alt: 'Логотип СМИ 9',
text: 'orbsteppe.ru'
}
] %}
<div class="swiper-slide">
<div class="smi-card-wrapper">
<a href="{{ slide.url }}" class="smi-card">
<img src="{{ slide.img }}" alt="{{ slide.alt }}" class="smi-card-img">
<div class="smi-card-date">{{ slide.date }}</div>
<div class="smi-card-title">{{ slide.title }}</div>
<div class="smi-card-label">
{% if slide.logo is defined %}
<img src="{{ slide.logo }}" alt="{{ slide.logo_alt }}">
{% endif %}
{% if slide.text is defined %}
<p>{{ slide.text }}</p>
{% endif %}
</div>
</a>
</div>
</div>
{% endfor %}
</div>
<div class="slider-arrows">
<button class="slider-arrow slider-arrow-prev smiSlider-prev"></button>
<button class="slider-arrow slider-arrow-next smiSlider-next"></button>
</div>
</div>
</div>
</div>
</section>
{% endif %}
{% endif %} {% endif %}
{% if show_q %} {% if show_q %}
{% if site_region == 'ae' %} {% if site_region == 'ae' %}

Loading…
Cancel
Save