From 797065e50560a62e8282221f24acf1a3492601c1 Mon Sep 17 00:00:00 2001 From: pushuo <229102104@qq.com> Date: Mon, 27 Jun 2022 20:35:53 +0800 Subject: [PATCH] wip --- themes/default/category.blade.php | 3 +-- themes/default/home.blade.php | 2 +- themes/default/pages/cart.blade.php | 2 +- themes/default/shared/product.blade.php | 8 ++++++++ themes/default/{layout => shared}/steps.blade.php | 0 5 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 themes/default/shared/product.blade.php rename themes/default/{layout => shared}/steps.blade.php (100%) diff --git a/themes/default/category.blade.php b/themes/default/category.blade.php index 12e5a2be..1283d74c 100644 --- a/themes/default/category.blade.php +++ b/themes/default/category.blade.php @@ -9,10 +9,9 @@ -
@foreach ($products as $product) -
@include('layout.product')
+
@include('shared.product')
@endforeach
diff --git a/themes/default/home.blade.php b/themes/default/home.blade.php index fc99c7be..fd796c92 100644 --- a/themes/default/home.blade.php +++ b/themes/default/home.blade.php @@ -34,7 +34,7 @@
@foreach ($products as $product)
- @include('layout.product') + @include('shared.product')
@endforeach
diff --git a/themes/default/pages/cart.blade.php b/themes/default/pages/cart.blade.php index 6f78915f..0cff8cca 100644 --- a/themes/default/pages/cart.blade.php +++ b/themes/default/pages/cart.blade.php @@ -12,7 +12,7 @@
-
@include('layout.steps', ['steps' => 1])
+
@include('shared.steps', ['steps' => 1])
diff --git a/themes/default/shared/product.blade.php b/themes/default/shared/product.blade.php new file mode 100644 index 00000000..94b0e5c7 --- /dev/null +++ b/themes/default/shared/product.blade.php @@ -0,0 +1,8 @@ +
+
+
{{ $product['name'] }}
+
+ $55.00 + $125.00 +
+
\ No newline at end of file diff --git a/themes/default/layout/steps.blade.php b/themes/default/shared/steps.blade.php similarity index 100% rename from themes/default/layout/steps.blade.php rename to themes/default/shared/steps.blade.php