Commit 0db6c30d by Bagus Pambudi

menu layout all lang

parent eacfb67e
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
@if($value->url) @if($value->url)
<li><a href="{!! url((string)$value->url) !!}">@if ($value->rSa) {!! $value->rSa->name !!} @endif</a></li> <li><a href="{!! url((string)$value->url) !!}">@if ($value->rSa) {!! $value->rSa->name !!} @endif</a></li>
@else @else
@if(!isset($setting['layout_menu']) || $setting['layout_menu'] == 0)
<li class="dropdown yamm-fw"><a href="#" data-toggle="dropdown" class="dropdown-toggle">@if ($value->rSa) {!! $value->rSa->name !!} @endif <div class="arrow-up"></div></a> <li class="dropdown yamm-fw"><a href="#" data-toggle="dropdown" class="dropdown-toggle">@if ($value->rSa) {!! $value->rSa->name !!} @endif <div class="arrow-up"></div></a>
<ul class="dropdown-menu" role="menu"> <ul class="dropdown-menu" role="menu">
<div class="yamm-content"> <div class="yamm-content">
...@@ -59,6 +60,50 @@ ...@@ -59,6 +60,50 @@
</div> </div>
</ul> </ul>
</li> </li>
@elseif($setting['layout_menu'] == 1)
<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->rSa->name !!} <div class="arrow-up"></div></a>
<ul class="dropdown-menu" role="menu">
@foreach ($menu as $valuec)
@if($valuec->parent == $value->id)
@if($valuec->url)
<li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->rSa->name !!}</a></li>
@else
<li class="dropdown-submenu">
<b> <a href="#">{!! $valuec->name !!}</a> </b>
<ul class="dropdown-menu">
@foreach ($menu as $valuec2)
@if($valuec2->parent == $valuec->id)
@if($valuec2->url)
<li><a href="{!! url((string)$valuec2->url) !!}">{!! $valuec2->rSa->name !!}</a></li>
@else
<li class="dropdown-submenu">
<b> <a href="#">{!! $valuec2->rSa->name !!}</a></b>
<ul class="dropdown-menu">
@foreach($menu as $valuec3)
@if($valuec3->parent == $valuec2->id)
<li><a href="{!! url((string)$valuec3->url) !!}" target="_blank">{!! $valuec3->rSa->name !!}</a></li>
@endif
@endforeach
</ul>
</li>
@endif
@endif
@endforeach
</ul>
</li>
@endif
@endif
@endforeach
</ul>
</li>
@endif
@endif @endif
@endif @endif
@endforeach @endforeach
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
@if($value->url) @if($value->url)
<li><a href="{!! url((string)$value->url) !!}">@if ($value->rDe) {!! $value->rDe->name !!} @endif</a></li> <li><a href="{!! url((string)$value->url) !!}">@if ($value->rDe) {!! $value->rDe->name !!} @endif</a></li>
@else @else
<li class="dropdown yamm-fw"><a href="#" data-toggle="dropdown" class="dropdown-toggle">@if ($value->rDe) {!! $value->rDe->name !!} @endif <div class="arrow-up"></div></a> @if(!isset($setting['layout_menu']) || $setting['layout_menu'] == 0)
<li class="dropdown yamm-fw"><a href="#" data-toggle="dropdown" class="dropdown-toggle">@if ($value->rDe) {!! $value->rDe->name !!} @endif <div class="arrow-up"></div></a>
<ul class="dropdown-menu" role="menu"> <ul class="dropdown-menu" role="menu">
<div class="yamm-content"> <div class="yamm-content">
<div class="row"> <div class="row">
...@@ -59,6 +60,50 @@ ...@@ -59,6 +60,50 @@
</div> </div>
</ul> </ul>
</li> </li>
@elseif($setting['layout_menu'] == 1)
<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->rDe->name !!} <div class="arrow-up"></div></a>
<ul class="dropdown-menu" role="menu">
@foreach ($menu as $valuec)
@if($valuec->parent == $value->id)
@if($valuec->url)
<li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->rDe->name !!}</a></li>
@else
<li class="dropdown-submenu">
<b> <a href="#">{!! $valuec->name !!}</a> </b>
<ul class="dropdown-menu">
@foreach ($menu as $valuec2)
@if($valuec2->parent == $valuec->id)
@if($valuec2->url)
<li><a href="{!! url((string)$valuec2->url) !!}">{!! $valuec2->rDe->name !!}</a></li>
@else
<li class="dropdown-submenu">
<b> <a href="#">{!! $valuec2->rDe->name !!}</a></b>
<ul class="dropdown-menu">
@foreach($menu as $valuec3)
@if($valuec3->parent == $valuec2->id)
<li><a href="{!! url((string)$valuec3->url) !!}" target="_blank">{!! $valuec3->rDe->name !!}</a></li>
@endif
@endforeach
</ul>
</li>
@endif
@endif
@endforeach
</ul>
</li>
@endif
@endif
@endforeach
</ul>
</li>
@endif
@endif @endif
@endif @endif
@endforeach @endforeach
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
@if($value->url) @if($value->url)
<li><a href="{!! url((string)$value->url) !!}">@if ($value->rEn) {!! $value->rEn->name !!} @endif</a></li> <li><a href="{!! url((string)$value->url) !!}">@if ($value->rEn) {!! $value->rEn->name !!} @endif</a></li>
@else @else
@if(!isset($setting['layout_menu']) || $setting['layout_menu'] == 0)
<li class="dropdown yamm-fw"><a href="#" data-toggle="dropdown" class="dropdown-toggle">@if ($value->rEn) {!! $value->rEn->name !!} @endif <div class="arrow-up"></div></a> <li class="dropdown yamm-fw"><a href="#" data-toggle="dropdown" class="dropdown-toggle">@if ($value->rEn) {!! $value->rEn->name !!} @endif <div class="arrow-up"></div></a>
<ul class="dropdown-menu" role="menu"> <ul class="dropdown-menu" role="menu">
<div class="yamm-content"> <div class="yamm-content">
...@@ -59,6 +60,50 @@ ...@@ -59,6 +60,50 @@
</div> </div>
</ul> </ul>
</li> </li>
@elseif($setting['layout_menu'] == 1)
<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->rEn->name !!} <div class="arrow-up"></div></a>
<ul class="dropdown-menu" role="menu">
@foreach ($menu as $valuec)
@if($valuec->parent == $value->id)
@if($valuec->url)
<li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->rEn->name !!}</a></li>
@else
<li class="dropdown-submenu">
<b> <a href="#">{!! $valuec->name !!}</a> </b>
<ul class="dropdown-menu">
@foreach ($menu as $valuec2)
@if($valuec2->parent == $valuec->id)
@if($valuec2->url)
<li><a href="{!! url((string)$valuec2->url) !!}">{!! $valuec2->rEn->name !!}</a></li>
@else
<li class="dropdown-submenu">
<b> <a href="#">{!! $valuec2->rEn->name !!}</a></b>
<ul class="dropdown-menu">
@foreach($menu as $valuec3)
@if($valuec3->parent == $valuec2->id)
<li><a href="{!! url((string)$valuec3->url) !!}" target="_blank">{!! $valuec3->rEn->name !!}</a></li>
@endif
@endforeach
</ul>
</li>
@endif
@endif
@endforeach
</ul>
</li>
@endif
@endif
@endforeach
</ul>
</li>
@endif
@endif @endif
@endif @endif
@endforeach @endforeach
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
</ul> </ul>
</li> </li>
@elseif($setting['layout_menu'] == 1) @elseif($setting['layout_menu'] == 1)
<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->name !!} <div class="arrow-up"></div></a> <li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->name !!} <div class="arrow-up"></div></a>
<ul class="dropdown-menu" role="menu"> <ul class="dropdown-menu" role="menu">
@foreach ($menu as $valuec) @foreach ($menu as $valuec)
@if($valuec->parent == $value->id) @if($valuec->parent == $value->id)
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
@endif @endif
@endforeach @endforeach
</ul> </ul>
</li> </li>
@endif @endif
@endif @endif
@endif @endif
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
@if($value->url) @if($value->url)
<li><a href="{!! url((string)$value->url) !!}">@if ($value->rZh) {!! $value->rZh->name !!} @endif</a></li> <li><a href="{!! url((string)$value->url) !!}">@if ($value->rZh) {!! $value->rZh->name !!} @endif</a></li>
@else @else
@if(!isset($setting['layout_menu']) || $setting['layout_menu'] == 0)
<li class="dropdown yamm-fw"><a href="#" data-toggle="dropdown" class="dropdown-toggle">@if ($value->rZh) {!! $value->rZh->name !!} @endif <div class="arrow-up"></div></a> <li class="dropdown yamm-fw"><a href="#" data-toggle="dropdown" class="dropdown-toggle">@if ($value->rZh) {!! $value->rZh->name !!} @endif <div class="arrow-up"></div></a>
<ul class="dropdown-menu" role="menu"> <ul class="dropdown-menu" role="menu">
<div class="yamm-content"> <div class="yamm-content">
...@@ -59,6 +60,50 @@ ...@@ -59,6 +60,50 @@
</div> </div>
</ul> </ul>
</li> </li>
@elseif($setting['layout_menu'] == 1)
<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->rZh->name !!} <div class="arrow-up"></div></a>
<ul class="dropdown-menu" role="menu">
@foreach ($menu as $valuec)
@if($valuec->parent == $value->id)
@if($valuec->url)
<li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->rZh->name !!}</a></li>
@else
<li class="dropdown-submenu">
<b> <a href="#">{!! $valuec->name !!}</a> </b>
<ul class="dropdown-menu">
@foreach ($menu as $valuec2)
@if($valuec2->parent == $valuec->id)
@if($valuec2->url)
<li><a href="{!! url((string)$valuec2->url) !!}">{!! $valuec2->rZh->name !!}</a></li>
@else
<li class="dropdown-submenu">
<b> <a href="#">{!! $valuec2->rZh->name !!}</a></b>
<ul class="dropdown-menu">
@foreach($menu as $valuec3)
@if($valuec3->parent == $valuec2->id)
<li><a href="{!! url((string)$valuec3->url) !!}" target="_blank">{!! $valuec3->rZh->name !!}</a></li>
@endif
@endforeach
</ul>
</li>
@endif
@endif
@endforeach
</ul>
</li>
@endif
@endif
@endforeach
</ul>
</li>
@endif
@endif @endif
@endif @endif
@endforeach @endforeach
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment