From 153a66143b523f01cb7df39dea0cf10bfe8073fa Mon Sep 17 00:00:00 2001 From: "ab.an.ev@yandex.ru" Date: Thu, 2 Apr 2026 15:18:11 +0300 Subject: [PATCH] =?UTF-8?q?Anton=20|=20=D0=BD=D0=B0=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=BE=D0=B9=D0=BA=D0=B0=20checkout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../page-checkout_20260402145155.php | 145 ++++++++++++++++++ .../themes/twentytwentyfour/page-cart.php | 84 +--------- .../themes/twentytwentyfour/page-checkout.php | 89 +---------- .../themes/twentytwentyfour/page-test1.php | 12 ++ .../template-parts/test1-shared-footer.php | 47 ++++++ .../template-parts/test1-shared-header.php | 76 +++++++++ 6 files changed, 293 insertions(+), 160 deletions(-) create mode 100644 .history/wp-content/themes/twentytwentyfour/page-checkout_20260402145155.php create mode 100644 wp-content/themes/twentytwentyfour/template-parts/test1-shared-footer.php create mode 100644 wp-content/themes/twentytwentyfour/template-parts/test1-shared-header.php diff --git a/.history/wp-content/themes/twentytwentyfour/page-checkout_20260402145155.php b/.history/wp-content/themes/twentytwentyfour/page-checkout_20260402145155.php new file mode 100644 index 00000000..faa7f036 --- /dev/null +++ b/.history/wp-content/themes/twentytwentyfour/page-checkout_20260402145155.php @@ -0,0 +1,145 @@ + +> + + + + + +> + +
+
+ + +
+
+ + +
+
+
+
+ + + +
+
+ +

+

+ +
+ + + + +
+ +
+ +
+
+ +
+
+
+
+
+
+
+
+

+

+
+
+
+ + + + diff --git a/wp-content/themes/twentytwentyfour/page-cart.php b/wp-content/themes/twentytwentyfour/page-cart.php index 0ecc7353..aeba7b7f 100644 --- a/wp-content/themes/twentytwentyfour/page-cart.php +++ b/wp-content/themes/twentytwentyfour/page-cart.php @@ -15,38 +15,11 @@ > -
-
- - -
-
- +
@@ -107,52 +80,7 @@
- + diff --git a/wp-content/themes/twentytwentyfour/page-checkout.php b/wp-content/themes/twentytwentyfour/page-checkout.php index 25cf0f52..77cd4c46 100644 --- a/wp-content/themes/twentytwentyfour/page-checkout.php +++ b/wp-content/themes/twentytwentyfour/page-checkout.php @@ -15,38 +15,11 @@ > -
-
- - -
-
- +
@@ -74,7 +47,7 @@
@@ -91,55 +64,7 @@
- + diff --git a/wp-content/themes/twentytwentyfour/page-test1.php b/wp-content/themes/twentytwentyfour/page-test1.php index df38c77e..f07090bc 100644 --- a/wp-content/themes/twentytwentyfour/page-test1.php +++ b/wp-content/themes/twentytwentyfour/page-test1.php @@ -88,6 +88,15 @@ $landing_html = file_exists( $landing_file ) ? file_get_contents( $landing_file if ( $landing_html ) { $catalog_markup = twentytwentyfour_test1_catalog_markup(); + ob_start(); + $test1_header_mode = 'cart'; + require get_theme_file_path( 'template-parts/test1-shared-header.php' ); + $shared_header_markup = (string) ob_get_clean(); + + ob_start(); + require get_theme_file_path( 'template-parts/test1-shared-footer.php' ); + $shared_footer_markup = (string) ob_get_clean(); + if ( '' !== $catalog_markup ) { $catalog_static_markup = <<<'HTML'
@@ -155,6 +164,9 @@ HTML; $landing_html = str_replace( $catalog_static_markup, $catalog_markup, $landing_html ); } + + $landing_html = preg_replace( '/