FEATURE: make top menu extendable
This commit is contained in:
+12
@@ -427,3 +427,15 @@ img {
|
||||
padding-left: 35px;
|
||||
}
|
||||
|
||||
.nav-profile .dropdown-menu > li {
|
||||
width: 100%;
|
||||
padding: 3px 1.5rem;
|
||||
clear: both;
|
||||
font-weight: normal;
|
||||
color: #373a3c;
|
||||
text-align: inherit;
|
||||
white-space: nowrap;
|
||||
background: none;
|
||||
border: 0;
|
||||
|
||||
}
|
||||
@@ -22,29 +22,11 @@
|
||||
</div>
|
||||
|
||||
<div class="header-block header-block-nav">
|
||||
<ul class="nav-profile">
|
||||
@if(count(LaravelLocalization::getSupportedLocales()) > 1)
|
||||
<li class="profile dropdown">
|
||||
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button"
|
||||
aria-haspopup="true" aria-expanded="false">
|
||||
@lang(LaravelLocalization::getCurrentLocaleName())
|
||||
</a>
|
||||
<div class="dropdown-menu">
|
||||
@foreach(LaravelLocalization::getSupportedLocales() as $localeCode => $properties)
|
||||
<a hreflang="{{$localeCode}}"
|
||||
href="{{LaravelLocalization::getLocalizedURL($localeCode) }}"
|
||||
class="dropdown-item">
|
||||
{{ $properties['native'] }}
|
||||
</a>
|
||||
@endforeach
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
<li class="profile">
|
||||
<a href="{{route('page.index')}}" target="_blank" class="nav-link" data-toggle="tooltip"
|
||||
data-placement="bottom" title="@lang('common.goToWeb')"><i class="fa fa-fw fa-globe"></i></a>
|
||||
</li>
|
||||
|
||||
<ul class="nav-profile">
|
||||
|
||||
{!! Menu::render('topMenu', 'top-menu') !!}
|
||||
|
||||
|
||||
<li class="profile dropdown">
|
||||
|
||||
Reference in New Issue
Block a user