Files
core/view/tpl/help-index.tpl
SK 4330e0bb94 add support for json formatted table of contents and specific tpl
Allows for precise control over layout of table of contents so that
theme specific changes can be implemented. Introduced a new layout file
help-index.tpl.
Table of contents is stored in json format within toc.json, support for
toc.html is retained since other languages still use it but can be
migrated to json if needed.
2025-10-19 08:18:43 +05:30

23 lines
781 B
Smarty

<div class="help-index">
<div id="accordion" class="vstack">
{{if $sections}}
{{foreach $sections as $section => $links}}
<div class="mb-3">
<div>
<h3 class="panel-title">{{$section}}</h3>
</div>
<div id="{{$section|replace:' ':'_'}}" class="doco-section">
<div class="vstack">
{{foreach $links as $label => $url}}
<a href="{{$url}}">{{$label}}</a>
{{/foreach}}
</div>
</div>
</div>
{{/foreach}}
{{else}}
{{$contents}}
{{/if}}
</div>
</div>