diff --git a/resources/beike/admin/views/pages/setting.blade.php b/resources/beike/admin/views/pages/setting.blade.php index 34276aac..6b90f27a 100644 --- a/resources/beike/admin/views/pages/setting.blade.php +++ b/resources/beike/admin/views/pages/setting.blade.php @@ -81,9 +81,9 @@ - {{-- + 主题模板选择 - --}} + {{ __('admin/setting.enable_tax_info') }} diff --git a/themes/black/home.blade.php b/themes/black/home.blade.php index 9d9af3f4..d4df147a 100644 --- a/themes/black/home.blade.php +++ b/themes/black/home.blade.php @@ -1,15 +1,9 @@ @extends('layout.master') @section('body-class', 'page-home') @section('content') - - - - - - 这里是 black 模板, 后台设置使用该模板后系统优先读取该模板, 删除该文件系统将调用 default 模板下对应文件 - - - - - + + + 这里是 black 模板, 后台设置使用该模板后系统优先读取该模板, 删除该文件系统将调用 default 模板下对应文件 + + @endsection diff --git a/themes/black/layout/footer.blade.php b/themes/black/layout/footer.blade.php new file mode 100644 index 00000000..eafb71f0 --- /dev/null +++ b/themes/black/layout/footer.blade.php @@ -0,0 +1,85 @@ + diff --git a/themes/black/layout/header.blade.php b/themes/black/layout/header.blade.php new file mode 100644 index 00000000..88a0f5c7 --- /dev/null +++ b/themes/black/layout/header.blade.php @@ -0,0 +1,168 @@ + + + + + @hookwrapper('header.top.currency') + + + @foreach (currencies() as $currency) + @if ($currency->code == current_currency_code()) + @if ($currency->symbol_left) + {{ $currency->symbol_left }} + @endif + {{ $currency->name }} + @if ($currency->symbol_right) + {{ $currency->symbol_right }} + @endif + @endif + @endforeach + + + + @foreach (currencies() as $currency) + + @if ($currency->symbol_left) + {{ $currency->symbol_left }} + @endif + {{ $currency->name }} + @if ($currency->symbol_right) + {{ $currency->symbol_right }} + @endif + + @endforeach + + + @endhookwrapper + + @hookwrapper('header.top.language') + + + {{ current_language()->name }} + + + + @foreach ($languages as $language) + + {{ $language->name }} + + @endforeach + + + @endhookwrapper + + + @if (system_setting('base.telephone', '')) + + @hookwrapper('header.top.telephone') + {{ system_setting('base.telephone') }} + @endhookwrapper + + @endif + + + + + + @hookwrapper('header.menu.logo') + + + + @endhookwrapper + + @if (!is_mobile()) + @include('shared.menu-pc') + @endif + + + + @hookwrapper('header.menu.icon') + + + + + + @auth('web_shop') + + {{ current_customer()->name }} + + + + + + {{ __('shop/account.index') }} + {{ __('shop/account.order.index') }} + {{ __('shop/account.wishlist.index') }} + + + + + {{ __('common.sign_out') }} + @else + {{ __('shop/login.login_and_sign') }} + @endauth + + + @endhookwrapper + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ __('common.menu') }} + + + + @if (is_mobile()) + @include('shared.menu-mobile') + @endif + + + + @if (!equal_route('shop.carts.index')) + + @endif + + + + + + + + diff --git a/themes/black/shared/menu-pc.blade.php b/themes/black/shared/menu-pc.blade.php new file mode 100644 index 00000000..75a42347 --- /dev/null +++ b/themes/black/shared/menu-pc.blade.php @@ -0,0 +1,61 @@ + + @hook('header.menu.before') + @foreach ($menu_content as $menu) + @if ($menu['name']) + + + {{ $menu['name'] }} + @if (isset($menu['badge']) && $menu['badge']['name']) + + {{ $menu['badge']['name'] }} + + @endif + + @if (isset($menu['children_group']) && $menu['children_group']) + + + + + + @forelse ($menu['children_group'] as $group) + + @if ($group['name']) + {{ $group['name'] }} + @endif + @if ($group['type'] == 'image') + + @else + + @foreach ($group['children'] as $children) + @if (!is_array($children['link']['text']) && $children['link']['text']) + + {{ $children['link']['text'] }} + + @endif + @endforeach + + @endif + + @endforeach + + + + + + @endif + + @endif + @endforeach + @hook('header.menu.after') +