From 985080f2ad2326e0e16344c3df6571db1ed63858 Mon Sep 17 00:00:00 2001 From: maksim Date: Sat, 14 Jun 2025 14:34:03 +0300 Subject: [PATCH] =?UTF-8?q?Andrei=20|=20=D1=80=D0=B5=D1=84=D0=B0=D0=BA?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=B8=D0=BD=D0=B3=20=D0=BF=D1=80=D0=BE=D0=B5?= =?UTF-8?q?=D0=BA=D1=82=D0=B0=20(=D1=80=D0=B0=D0=B7=D0=BD=D0=B5=D1=81=20?= =?UTF-8?q?=D1=81=D1=82=D0=B0=D1=82=D0=B8=D0=BA=D1=83=20=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=86=D1=8B=20"=D0=9E=20=D0=BA=D0=BE=D0=BC?= =?UTF-8?q?=D0=BF=D0=B0=D0=BD=D0=B8=D0=B8")?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static-pages/about/template-about.php | 8 ++++---- .../cosmopet/static/about/img/home-line2.svg | 19 ------------------ .../css/style.css => css/about-page.css} | 0 .../{about => }/img/about_top_image.png | Bin .../{about => }/img/about_top_image2.png | Bin .../static/{about => }/img/advantage1.svg | 0 .../static/{about => }/img/advantage2.svg | 0 .../static/{about => }/img/advantage3.svg | 0 .../static/{about => }/img/advantage4.svg | 0 .../static/{about => }/img/diagram.svg | 0 .../cosmopet/static/{about => }/img/etap1.svg | 0 .../cosmopet/static/{about => }/img/etap2.svg | 0 .../cosmopet/static/{about => }/img/etap3.svg | 0 .../static/{about => }/img/etaps_right.svg | 0 .../static/{about => }/img/hero_image.png | Bin .../{about => }/img/hero_image_desctop.png | Bin .../{about => }/img/hero_image_mobile.png | Bin .../static/{about => }/img/protein.png | Bin .../{about => }/img/protein_ellipse.png | Bin .../static/{about => }/img/protein_mobile.png | Bin .../{about/js/script.js => js/about-page.js} | 0 .../cosmopet/templates/_pages/about.twig | 14 ++++++------- 22 files changed, 11 insertions(+), 30 deletions(-) delete mode 100644 wp-content/themes/cosmopet/static/about/img/home-line2.svg rename wp-content/themes/cosmopet/static/{about/css/style.css => css/about-page.css} (100%) rename wp-content/themes/cosmopet/static/{about => }/img/about_top_image.png (100%) rename wp-content/themes/cosmopet/static/{about => }/img/about_top_image2.png (100%) rename wp-content/themes/cosmopet/static/{about => }/img/advantage1.svg (100%) rename wp-content/themes/cosmopet/static/{about => }/img/advantage2.svg (100%) rename wp-content/themes/cosmopet/static/{about => }/img/advantage3.svg (100%) rename wp-content/themes/cosmopet/static/{about => }/img/advantage4.svg (100%) rename wp-content/themes/cosmopet/static/{about => }/img/diagram.svg (100%) rename wp-content/themes/cosmopet/static/{about => }/img/etap1.svg (100%) rename wp-content/themes/cosmopet/static/{about => }/img/etap2.svg (100%) rename wp-content/themes/cosmopet/static/{about => }/img/etap3.svg (100%) rename wp-content/themes/cosmopet/static/{about => }/img/etaps_right.svg (100%) rename wp-content/themes/cosmopet/static/{about => }/img/hero_image.png (100%) rename wp-content/themes/cosmopet/static/{about => }/img/hero_image_desctop.png (100%) rename wp-content/themes/cosmopet/static/{about => }/img/hero_image_mobile.png (100%) rename wp-content/themes/cosmopet/static/{about => }/img/protein.png (100%) rename wp-content/themes/cosmopet/static/{about => }/img/protein_ellipse.png (100%) rename wp-content/themes/cosmopet/static/{about => }/img/protein_mobile.png (100%) rename wp-content/themes/cosmopet/static/{about/js/script.js => js/about-page.js} (100%) diff --git a/wp-content/themes/cosmopet/modules/static-pages/about/template-about.php b/wp-content/themes/cosmopet/modules/static-pages/about/template-about.php index 15e5d29..bd80af2 100644 --- a/wp-content/themes/cosmopet/modules/static-pages/about/template-about.php +++ b/wp-content/themes/cosmopet/modules/static-pages/about/template-about.php @@ -9,12 +9,12 @@ false, 'version' => '1.0.0']); + wp_enqueue_style('gp-front-page-style', get_template_directory_uri() . '/static/css/front-page.css'); + wp_enqueue_style('gp-about-page-style', get_template_directory_uri() . '/static/css/about-page.css'); + wp_enqueue_script( 'gp-about-page-main', get_template_directory_uri() . '/static/js/about-page.js', array(), null, true ); }); + $context = Timber::get_context(); $context['title'] = get_field('title'); $context['text'] = get_field('text'); diff --git a/wp-content/themes/cosmopet/static/about/img/home-line2.svg b/wp-content/themes/cosmopet/static/about/img/home-line2.svg deleted file mode 100644 index 7baee62..0000000 --- a/wp-content/themes/cosmopet/static/about/img/home-line2.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/wp-content/themes/cosmopet/static/about/css/style.css b/wp-content/themes/cosmopet/static/css/about-page.css similarity index 100% rename from wp-content/themes/cosmopet/static/about/css/style.css rename to wp-content/themes/cosmopet/static/css/about-page.css diff --git a/wp-content/themes/cosmopet/static/about/img/about_top_image.png b/wp-content/themes/cosmopet/static/img/about_top_image.png similarity index 100% rename from wp-content/themes/cosmopet/static/about/img/about_top_image.png rename to wp-content/themes/cosmopet/static/img/about_top_image.png diff --git a/wp-content/themes/cosmopet/static/about/img/about_top_image2.png b/wp-content/themes/cosmopet/static/img/about_top_image2.png similarity index 100% rename from wp-content/themes/cosmopet/static/about/img/about_top_image2.png rename to wp-content/themes/cosmopet/static/img/about_top_image2.png diff --git a/wp-content/themes/cosmopet/static/about/img/advantage1.svg b/wp-content/themes/cosmopet/static/img/advantage1.svg similarity index 100% rename from wp-content/themes/cosmopet/static/about/img/advantage1.svg rename to wp-content/themes/cosmopet/static/img/advantage1.svg diff --git a/wp-content/themes/cosmopet/static/about/img/advantage2.svg b/wp-content/themes/cosmopet/static/img/advantage2.svg similarity index 100% rename from wp-content/themes/cosmopet/static/about/img/advantage2.svg rename to wp-content/themes/cosmopet/static/img/advantage2.svg diff --git a/wp-content/themes/cosmopet/static/about/img/advantage3.svg b/wp-content/themes/cosmopet/static/img/advantage3.svg similarity index 100% rename from wp-content/themes/cosmopet/static/about/img/advantage3.svg rename to wp-content/themes/cosmopet/static/img/advantage3.svg diff --git a/wp-content/themes/cosmopet/static/about/img/advantage4.svg b/wp-content/themes/cosmopet/static/img/advantage4.svg similarity index 100% rename from wp-content/themes/cosmopet/static/about/img/advantage4.svg rename to wp-content/themes/cosmopet/static/img/advantage4.svg diff --git a/wp-content/themes/cosmopet/static/about/img/diagram.svg b/wp-content/themes/cosmopet/static/img/diagram.svg similarity index 100% rename from wp-content/themes/cosmopet/static/about/img/diagram.svg rename to wp-content/themes/cosmopet/static/img/diagram.svg diff --git a/wp-content/themes/cosmopet/static/about/img/etap1.svg b/wp-content/themes/cosmopet/static/img/etap1.svg similarity index 100% rename from wp-content/themes/cosmopet/static/about/img/etap1.svg rename to wp-content/themes/cosmopet/static/img/etap1.svg diff --git a/wp-content/themes/cosmopet/static/about/img/etap2.svg b/wp-content/themes/cosmopet/static/img/etap2.svg similarity index 100% rename from wp-content/themes/cosmopet/static/about/img/etap2.svg rename to wp-content/themes/cosmopet/static/img/etap2.svg diff --git a/wp-content/themes/cosmopet/static/about/img/etap3.svg b/wp-content/themes/cosmopet/static/img/etap3.svg similarity index 100% rename from wp-content/themes/cosmopet/static/about/img/etap3.svg rename to wp-content/themes/cosmopet/static/img/etap3.svg diff --git a/wp-content/themes/cosmopet/static/about/img/etaps_right.svg b/wp-content/themes/cosmopet/static/img/etaps_right.svg similarity index 100% rename from wp-content/themes/cosmopet/static/about/img/etaps_right.svg rename to wp-content/themes/cosmopet/static/img/etaps_right.svg diff --git a/wp-content/themes/cosmopet/static/about/img/hero_image.png b/wp-content/themes/cosmopet/static/img/hero_image.png similarity index 100% rename from wp-content/themes/cosmopet/static/about/img/hero_image.png rename to wp-content/themes/cosmopet/static/img/hero_image.png diff --git a/wp-content/themes/cosmopet/static/about/img/hero_image_desctop.png b/wp-content/themes/cosmopet/static/img/hero_image_desctop.png similarity index 100% rename from wp-content/themes/cosmopet/static/about/img/hero_image_desctop.png rename to wp-content/themes/cosmopet/static/img/hero_image_desctop.png diff --git a/wp-content/themes/cosmopet/static/about/img/hero_image_mobile.png b/wp-content/themes/cosmopet/static/img/hero_image_mobile.png similarity index 100% rename from wp-content/themes/cosmopet/static/about/img/hero_image_mobile.png rename to wp-content/themes/cosmopet/static/img/hero_image_mobile.png diff --git a/wp-content/themes/cosmopet/static/about/img/protein.png b/wp-content/themes/cosmopet/static/img/protein.png similarity index 100% rename from wp-content/themes/cosmopet/static/about/img/protein.png rename to wp-content/themes/cosmopet/static/img/protein.png diff --git a/wp-content/themes/cosmopet/static/about/img/protein_ellipse.png b/wp-content/themes/cosmopet/static/img/protein_ellipse.png similarity index 100% rename from wp-content/themes/cosmopet/static/about/img/protein_ellipse.png rename to wp-content/themes/cosmopet/static/img/protein_ellipse.png diff --git a/wp-content/themes/cosmopet/static/about/img/protein_mobile.png b/wp-content/themes/cosmopet/static/img/protein_mobile.png similarity index 100% rename from wp-content/themes/cosmopet/static/about/img/protein_mobile.png rename to wp-content/themes/cosmopet/static/img/protein_mobile.png diff --git a/wp-content/themes/cosmopet/static/about/js/script.js b/wp-content/themes/cosmopet/static/js/about-page.js similarity index 100% rename from wp-content/themes/cosmopet/static/about/js/script.js rename to wp-content/themes/cosmopet/static/js/about-page.js diff --git a/wp-content/themes/cosmopet/templates/_pages/about.twig b/wp-content/themes/cosmopet/templates/_pages/about.twig index 0772953..b1b8bd8 100644 --- a/wp-content/themes/cosmopet/templates/_pages/about.twig +++ b/wp-content/themes/cosmopet/templates/_pages/about.twig @@ -10,15 +10,15 @@ {{ function('pll_e', 'Узнать больше') }} - hero image - hero image - + hero image + hero image +
- E-protein - E-protein + E-protein + E-protein
{{text}}

{{adv_title}}

@@ -81,7 +81,7 @@ {% endfor %}

- 4 + 4
К продукции @@ -97,7 +97,7 @@
{{item.q}}
- +

{{item.answ}}