-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add @Yled sections 'sidebar.top', 'sidebar.bottom', 'sodebar.ul.top', 'sidebar.ul.bottom' to inject custom html code to sidebar
- Loading branch information
1 parent
be23dac
commit d9840a9
Showing
2 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
<div class="navbar-default sidebar" role="navigation"> | ||
|
||
@yield('sidebar.top') | ||
|
||
<div class="sidebar-nav navbar-collapse"> | ||
<ul class="nav" id="side-menu"> | ||
@foreach(AdminNavigation::getRootSection()->getPages() as $item) | ||
|
||
@yield('sidebar.ul.top') | ||
|
||
@foreach(AdminNavigation::getRootSection()->getPages() as $item) | ||
<li @if($item->isActive())class="active"@endif> | ||
<a href="{{ $item->getUrl() }}"> | ||
{!! $item->getIcon() !!} | ||
<span class="mm-text">{!! $item->getName() !!}</span> | ||
</a> | ||
</li> | ||
@endforeach | ||
@endforeach | ||
|
||
@foreach(AdminNavigation::getRootSection()->getSections() as $section) | ||
@include(AdminTemplate::getTemplateViewPath('_partials.navigation.sections'), ['section' => $section]) | ||
@endforeach | ||
|
||
@yield('sidebar.ul.bottom') | ||
|
||
@foreach(AdminNavigation::getRootSection()->getSections() as $section) | ||
@include(AdminTemplate::getTemplateViewPath('_partials.navigation.sections', ['section' => $section])) | ||
@endforeach | ||
</ul> | ||
|
||
@yield('sidebar.bottom') | ||
|
||
</div> | ||
</div> |
11 changes: 6 additions & 5 deletions
11
resources/views/default/_partials/navigation/sections.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters