2 changed files with 23 additions and 2 deletions
@ -0,0 +1,21 @@
|
||||
|
||||
{% if depth == 1 %} |
||||
<h4 class="phpdocumentor-sidebar__root-namespace"> |
||||
<a href="{{ entry.url }}" class="{{ destinationPath|trim('/', 'left') == entry.url ? '-active' }}">{{ entry.title | shortFQSEN }}</a> |
||||
{% if entry.children.count == 1 %} |
||||
{% set entry = entry.children|first %} |
||||
<span class="phpdocumentor-sidebar__root-separator">/</span> |
||||
<a href="{{ entry.url }}" class="{{ destinationPath|trim('/', 'left') == entry.url ? '-active' }}">{{ entry.title | shortFQSEN }}</a> |
||||
{% endif %} |
||||
</h4> |
||||
{% endif %} |
||||
{% if entry.children.count > 0 %} |
||||
<ul class="phpdocumentor-list"> |
||||
{% for child in entry.children|sort((a, b) => a.title|lower <=> b.title|lower) %} |
||||
<li> |
||||
<a href="{{ child.url }}" class="{{ destinationPath|trim('/', 'left') == child.url ? '-active' }}">{{ child.title | shortFQSEN }}</a> |
||||
{{ toc(child, 'components/menu.html.twig', maxDepth, depth) }} |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
{% endif %} |
Loading…
Reference in new issue