mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
12 lines
489 B
PHP
12 lines
489 B
PHP
|
{{--Requires an array of pages to be passed as $pageTree--}}
|
||
|
|
||
|
<ul class="sidebar-page-list">
|
||
|
@foreach($pageTree as $subPage)
|
||
|
<li @if($subPage['hasChildren'])class="has-children"@endif>
|
||
|
<a href="{{$subPage['url']}}" @if($subPage['current'])class="bold"@endif>{{$subPage['name']}}</a>
|
||
|
@if($subPage['hasChildren'])
|
||
|
@include('pages/sidebar-tree-list', ['pageTree' => $subPage['pages']])
|
||
|
@endif
|
||
|
</li>
|
||
|
@endforeach
|
||
|
</ul>
|