aboutsummaryrefslogtreecommitdiff
path: root/templates/toc/generic-toc-list.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2021-07-22 16:07:19 +0200
committerJan-Hendrik Willms <tleilax+github@gmail.com>2021-07-22 16:19:12 +0200
commita3da1483a9e689846179159355badfec8073dbec (patch)
tree770dcca6bdf5f6f2a11b0e7fcbbeda6919a3fc52 /templates/toc/generic-toc-list.php
current code from svn, revision 62608
Diffstat (limited to 'templates/toc/generic-toc-list.php')
-rw-r--r--templates/toc/generic-toc-list.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/toc/generic-toc-list.php b/templates/toc/generic-toc-list.php
new file mode 100644
index 0000000..ff81cb2
--- /dev/null
+++ b/templates/toc/generic-toc-list.php
@@ -0,0 +1,14 @@
+<input type="checkbox" id="cb-toc-close"/>
+<article class="toc_overview toc_transform" id="toc">
+ <header id="toc_header">
+ <h1 id="toc_h1"><?= sprintf(_('Inhalt (%u Elemente)'), htmlReady($root->countAllChildren())) ?></h1>
+ <label for="cb-toc" class="check-box" title="<?= _('Schließen')?>">
+ <?= Icon::create('decline')->asImg(24) ?>
+ </label>
+ </header>
+ <section>
+ <ul class="toc">
+ <?= $this->render_partial('toc/_toc-item-list', ['item' => $root]) ?>
+ </ul>
+ </section>
+</article>