- <?php if (isset($listing)) : ?>
- <div class="sidebar">
- <ul>
- <li>↰ <a href="">Home</a></li>
- <?php if (($entry = $listing->getParent())) : ?>
- <li>↑ <a href="<?=$entry->formatUrl()?>"><?=$entry->formatLink()?></a></li>
- <?php endif; ?>
- <?php if (($entry = $listing->getSelf()) && ($link = $entry->formatLink())) : ?>
- <ul><li>↻ <?= $link ?>
- <?php endif; ?>
- <?php if (count($listing)) : ?>
- <ul>
- <?php foreach ($listing as $entry) : ?>
- <li>↳ <a href="<?=$entry->formatUrl()?>"><?=$entry->formatLink()?></a></li>
- <?php endforeach; ?>
- </ul>
- <?php endif; ?>
- <?php if (strlen($listing)) : ?>
- </li></ul>
- <?php endif; ?>
- </ul>
- </div>
- <?php endif; ?>
-
- <?php if (isset($markdown)) : ?>
- <?= $markdown ?>
- <?php if (isset($sublisting) && count($sublisting)) : ?>
- <h2>Functions:</h2>
- <ul>
- <?php foreach($sublisting as $entry) : ?>
- <li>
- <h3><a href="<?=$entry->formatUrl()?>"><?=$entry->formatLink(true)?></a></h3>
- <p><?=$entry->readDescription()?></p>
- <p><?=$entry->readTitle()?></p>
- </li>
- <?php endforeach; ?>
- </ul>
- <?php endif; ?>
+ <?php include __DIR__."/sidebar.phtml" ?>
+ <?php if (isset($exception)) : ?>
+ <?= \mdref\ExceptionHandler::htmlException($exception) ?>
+ <?php elseif (isset($entry)) : ?>
+ <?php include __DIR__."/mdref.phtml" ?>