内设机构设置为不可点击
This commit is contained in:
@@ -95,7 +95,11 @@
|
|||||||
@if($cate->childrens)
|
@if($cate->childrens)
|
||||||
@foreach ($cate->childrens as $child)
|
@foreach ($cate->childrens as $child)
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ $child->link }}">{{ $child->title }}</a>
|
@if(in_array($cate->parent->id,config('setting.no_href')))
|
||||||
|
<a><span>{{ $child->title }}</span></a>
|
||||||
|
@else
|
||||||
|
<a href="{{ $child->link }}"><span>{{ $child->title }}</span></a>
|
||||||
|
@endif
|
||||||
</li>
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
@if ($parent->childrens->isNotEmpty())
|
@if ($parent->childrens->isNotEmpty())
|
||||||
@foreach ($parent->childrens()->orderBy('order','asc')->get() as $child)
|
@foreach ($parent->childrens()->orderBy('order','asc')->get() as $child)
|
||||||
<li @if($category->id==$child->id) class="active" @endif>
|
<li @if($category->id==$child->id) class="active" @endif>
|
||||||
@if(in_array($parent->id,config('setting.no_href')))
|
@if(in_array($parent->id,config('setting.no_href')) || in_array($child->id,config('setting.no_href')))
|
||||||
<a><span>{{ $child->title }}</span></a>
|
<a><span>{{ $child->title }}</span></a>
|
||||||
@else
|
@else
|
||||||
<a href="{{ $child->link }}"><span>{{ $child->title }}</span></a>
|
<a href="{{ $child->link }}"><span>{{ $child->title }}</span></a>
|
||||||
|
|||||||
Reference in New Issue
Block a user