From 5a3b84541ad4f37f0c93b10f554bca0dbb331814 Mon Sep 17 00:00:00 2001 From: maksim Date: Mon, 16 Jun 2025 08:45:16 +0300 Subject: [PATCH] =?UTF-8?q?Task:=206607=20|=20=D0=A4=D0=B8=D0=BA=D1=81=20?= =?UTF-8?q?=D1=81=D1=82=D0=B8=D0=BB=D0=B5=D0=B9=20=D0=B3=D0=BB=D0=B0=D0=B2?= =?UTF-8?q?=D0=BD=D0=BE=D0=B9=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86?= =?UTF-8?q?=D1=8B,=20=D1=84=D0=B8=D0=BA=D1=81=20=D0=B2=D1=8B=D0=B2=D0=BE?= =?UTF-8?q?=D0=B4=D0=B0=20=D0=BC=D0=B5=D0=BD=D1=8E=20=D0=B2=20=D1=85=D0=B5?= =?UTF-8?q?=D0=B4=D0=B5=D1=80=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../global-functions/multisite-functions.php | 1 + .../popup/assets/css/gp-style-desktop.css | 4 ++ .../themes/cosmopet/templates/header.twig | 2 + .../themes/cosmopet/templates/layout.twig | 72 ------------------- 4 files changed, 7 insertions(+), 72 deletions(-) diff --git a/wp-content/themes/cosmopet/global-functions/multisite-functions.php b/wp-content/themes/cosmopet/global-functions/multisite-functions.php index 563d7ce..639cc30 100644 --- a/wp-content/themes/cosmopet/global-functions/multisite-functions.php +++ b/wp-content/themes/cosmopet/global-functions/multisite-functions.php @@ -29,6 +29,7 @@ add_filter('timber/twig', function (\Twig\Environment $twig) { $site_env = new SiteEnvironment(); $twig->addGlobal('site_region', $site_env->site_region); $twig->addGlobal('site_mode', $site_env->site_mode); + $twig->addGlobal('header_scripts', get_field('header_scripts', 'option')); // со страницы "Общих настроек контента ACF" return $twig; }); /* End | Работа с проверкой мультисайтовости и стендов */ diff --git a/wp-content/themes/cosmopet/modules/popup/assets/css/gp-style-desktop.css b/wp-content/themes/cosmopet/modules/popup/assets/css/gp-style-desktop.css index e820cb1..3b39de9 100644 --- a/wp-content/themes/cosmopet/modules/popup/assets/css/gp-style-desktop.css +++ b/wp-content/themes/cosmopet/modules/popup/assets/css/gp-style-desktop.css @@ -19,6 +19,10 @@ transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out; } +.modal__basket { + width: 400px!important; +} + .modal__item.active { opacity: 1; filter: blur(0); diff --git a/wp-content/themes/cosmopet/templates/header.twig b/wp-content/themes/cosmopet/templates/header.twig index f15ac32..10654e4 100644 --- a/wp-content/themes/cosmopet/templates/header.twig +++ b/wp-content/themes/cosmopet/templates/header.twig @@ -220,6 +220,7 @@ + {% if site_region == 'ae' %} + {% endif %} {% if CONSTANTS.DOMAIN != 'AE' %}