mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
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.
23 lines
781 B
Smarty
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>
|