diff --git a/themes/black/home.blade.php b/themes/black/home.blade.php new file mode 100644 index 00000000..bd960ffa --- /dev/null +++ b/themes/black/home.blade.php @@ -0,0 +1,15 @@ +@extends('layout.master') +@section('body-class', 'page-home') +@section('content') + + + + + + 这里是 black 模板, 系统优先读取, 删除该文件即可调用 default 模板 + + + + + +@endsection diff --git a/themes/black/home2.blade.php b/themes/black/home2.blade.php deleted file mode 100644 index 83c201ef..00000000 --- a/themes/black/home2.blade.php +++ /dev/null @@ -1,11 +0,0 @@ -@extends('layout.master') -@section('body-class', 'page-home') -@section('content') - -黑色模板开始 - -{!! $html !!} - -黑色模板结束 - -@endsection diff --git a/themes/default/home.blade.php b/themes/default/home.blade.php index e4a4a136..df177d09 100644 --- a/themes/default/home.blade.php +++ b/themes/default/home.blade.php @@ -3,74 +3,9 @@ @section('content') -@foreach($modules as $module) - @include($module['view_path'], $module) -@endforeach + @foreach($modules as $module) + @include($module['view_path'], $module) + @endforeach -{{-- --}} -{{-- --}} -{{-- @foreach ($categories as $category) - {{ $category->description->name }} -@endforeach --}} -{{-- - - - - - - - - - - - - - - - 推荐商品模块 - - - @foreach ($category_products as $key => $category) - {{ $key }} - @endforeach - - - @foreach ($category_products as $products) - - - @foreach ($products as $product) - - @include('shared.product') - - @endforeach - - - @endforeach - - - - - - - - - - 推荐品牌模块 - - - @for ($i = 0; $i < 8; $i++) - - - - @endfor - - - --}} @endsection