--- /dev/null
+<?php if ($sub->hasNsClasses()) : ?>
+ <?= $indent ?><ul>
+ <?php foreach ($sub as $subentry) : ?>
+ <?php
+ array_push($indents, $indent);
+ $indent .= "\t";
+ ?>
+ <?php if ($subentry->isNsClass()) : ?>
+ <?=$indent?><li>↳ <a href="<?= $up.$esc($subentry->getName()) ?>"><?= $esc($subentry) ?></a><?php
+ $tmp = $sub;
+ $sub = $subentry;
+ include __FILE__;
+ $sub = $tmp;
+ ?><?= $indent ?></li>
+ <?php endif; ?>
+ <?php $indent = array_pop($indents); ?>
+ <?php endforeach; ?>
+ <?= $indent ?></ul>
+<?php endif; ?>
<?php endif; ?>
<?php endforeach; ?>
- ↻ <strong><a href="<?= $up.$esc($entry->getName()) ?>"
- ><?= $esc($entry) ?></a></strong>
+ ↻ <strong><a href="<?= $up.$esc($entry->getName()) ?>"><?= $esc($entry) ?></a></strong>
<?php if ($entry->hasIterator()): ?>
<?php foreach ($entry as $sub) : /* @var \mdref\Entry $sub */ ?>
<li>
- ↳ <a href="<?= $up.$esc($sub->getName()) ?>"
- ><?= $esc($sub) ?></a>
+ ↳ <a href="<?= $up.$esc($sub->getName()) ?>"><?= $esc($sub) ?></a>
+ <?php $indents= [] ; $indent = "
+ ";
+ include __DIR__ . "/sidebar-rec.phtml"; ?>
+
</li>
<?php endforeach; ?>