6 <?php if (isset($title)) : ?>
12 <base href="<?= $baseUrl ?>">
13 <link rel="stylesheet" href="index.css">
14 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
17 <?php if (isset($listing)) : ?>
20 <li>↰ <a href="">Home</a></li>
21 <?php if (($entry = $listing->getParent())) : ?>
22 <li>↑ <a href="<?=$entry->formatUrl()?>"><?=$entry->formatLink()?></a></li>
24 <?php if (($entry = $listing->getSelf()) && ($link = $entry->formatLink())) : ?>
25 <ul><li>↻ <?= $link ?>
27 <?php if (count($listing)) : ?>
29 <?php foreach ($listing as $entry) : ?>
30 <li>↳ <a href="<?=$entry->formatUrl()?>"><?=$entry->formatLink()?></a></li>
34 <?php if (strlen($listing)) : ?>
41 <?php if (isset($markdown)) : ?>
43 <?php if (isset($sublisting) && count($sublisting)) : ?>
46 <?php foreach($sublisting as $entry) : ?>
48 <h3><a href="<?=$entry->formatUrl()?>"><?=$entry->formatLink(true)?></a></h3>
49 <p><?=$entry->readDescription()?></p>
50 <p><?=$entry->readTitle()?></p>
56 <h1>mdref-v<?php readfile("../VERSION"); ?></h1>
57 <?php if (isset($exception)) : ?>
58 <?=\mdref\ExceptionHandler::html($exception, ["h2"], ["p"], ["pre", "style='overflow-x:scroll'"]); ?>
60 <pre><?= htmlspecialchars(file_get_contents("../LICENSE")); ?></pre>
64 <div id="disqus_thread"></div>
68 <li><a href="https://github.com/m6w6/mdref">mdref-v<?php readfile("../VERSION") ?></a></li>
69 <li><a href="LICENSE">© <?= implode("-", array_unique([2013, idate("Y")])) ?>
70 All rights reserved.</a></li>
73 <script src="index.js"></script>