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}}