fix weak property types
[mdref/mdref] / views / index.phtml
1
2 <h1>mdref</h1>
3
4 <?php if (isset($html)) : ?>
5 <?= $html ?>
6 <?php elseif (isset($text)) : ?>
7
8 <p style="white-space:pre-wrap"><?= $esc($text) ?></p>
9 <?php elseif (isset($refs)) : ?>
10 <?php foreach ($refs as $repo) : /* @var \mdref\Repo $repo */ ?>
11 <?php foreach ($repo as $entry) : /* @var \mdref\Entry $entry */ ?>
12
13 <h2 id="<?= $anchor($entry->getTitle()) ?>">
14 <a href="<?= $esc($entry->getName()) ?>"
15 ><?= $esc($entry->getTitle()) ?></a></h2>
16 <div><?= $quick($entry->getIntro()) ?></div>
17 <?php if ($repo->hasStub($stub)) : ?>
18 <?php include __DIR__ . "/stub.phtml"; ?>
19 <?php endif; ?>
20 <?php endforeach; ?>
21 <?php endforeach; ?>
22 <?php endif; ?>