2739f919549fc2543574e1396dba608466308c46
[mdref/mdref] / views / mdref.phtml
1 <?php ob_start() ?>
2
3 <?= $file($entry->getPath()) ?>
4
5 <?php if ($entry->isRoot() && $entry->getRepo()->hasStub($stub)) : ?>
6 <h2 id="Editor.Stub:">Editor Stub:</h2>
7 <p>This extension provides a stub file four your editor's auto-completion.</p>
8 <?php include __DIR__ . "/stub.phtml"; ?>
9 <?php endif; ?>
10
11 <?php if ($entry->hasFunctions()) : ?>
12
13 <h2 id="Functions:">Functions:</h2>
14 <ul>
15 <?php foreach($entry as $sub) : if (!$sub->isFunction()) continue; ?>
16
17 <li>
18 <h3><a href="<?= $esc($sub->getName()) ?>"><?= $esc($sub) ?></a></h3>
19 <?= $quick($sub->getDescription()) ?>
20
21 <p><?= $esc($sub->getTitle()) ?></p>
22 </li>
23 <?php endforeach; ?>
24
25 </ul>
26 <?php endif; ?>
27
28 <?php if ($entry->hasNsClasses()) : ?>
29
30 <h2 id="Namespaces,.Interfaces.and.Classes:">Namespaces, Interfaces and Classes:</h2>
31 <ul>
32 <?php foreach ($entry as $sub) : if (!$sub->isNsClass()) continue; ?>
33
34 <li>
35 <h3><a href="<?= $esc($sub->getName()) ?>"><?= $esc($sub) ?></a></h3>
36 <?= $quick($sub->getDescription()) ?>
37
38 <p><?= $esc($sub->getTitle()) ?></p>
39 </li>
40 <?php endforeach; ?>
41
42 </ul>
43 <?php endif; ?>
44
45 <?= $markup(ob_get_clean()); ?>