wip
This commit is contained in:
parent
a57181d386
commit
7b22326c98
|
|
@ -32,9 +32,11 @@ class Bootstrap
|
|||
[
|
||||
"name" => trans('HeaderMenu::header.latest_products'),
|
||||
"url" => plugin_route('latest_products'),
|
||||
"new_window" => false,
|
||||
], [
|
||||
"name" => trans('HeaderMenu::header.baidu'),
|
||||
"url" => "https://www.baidu.com",
|
||||
"new_window" => true,
|
||||
]
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
</ul>
|
||||
<ul class="navbar">
|
||||
<li class="nav-item"><a href="{{ admin_route('logout.index') }}" class="nav-link">退出登录</a></li>
|
||||
<li class="nav-item"><a target="_blank" href="{{ shop_route('home.index') }}" class="nav-link">访问前台</a></li>
|
||||
<li class="nav-item">
|
||||
|
||||
<a href="" class="nav-link">
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@
|
|||
@foreach ($categories as $category)
|
||||
<li class="dropdown">
|
||||
<a
|
||||
target="{{ (isset($category['new_window']) and $category['new_window']) ? '_blank' : '_self' }}"
|
||||
class="nav-link {{ (isset($category['children']) and $category['children']) ? 'dropdown-toggle' : '' }}"
|
||||
href="{{ $category['url'] }}">
|
||||
{{ $category['name'] }}
|
||||
|
|
@ -50,7 +51,7 @@
|
|||
@if (isset($category['children']) and $category['children'])
|
||||
<ul class="dropdown-menu">
|
||||
@forelse ($category['children'] as $child)
|
||||
<li><a href="{{ $child['url'] }}" class="dropdown-item">{{ $child['name'] }}</a></li>
|
||||
<li><a target="{{ (isset($child['new_window']) and $child['new_window']) ? '_blank' : '_self' }}" href="{{ $child['url'] }}" class="dropdown-item">{{ $child['name'] }}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue