extract stub.phtml
[mdref/mdref] / views / mdref.phtml
index 620619be6f6baffb16b9b30a48a4df4cb99fe6c5..c05ad78d815cb668d7f6255585b72aa6e36ad846 100644 (file)
@@ -1,6 +1,12 @@
 
 <?= $file($entry->getPath()) ?>
 
+<?php if ($entry->isRoot() && $entry->getRepo()->hasStub($stub)) : ?>
+       <h2 id="Editor.Stub:">Editor Stub:</h2>
+       <p>This extension provides a stub file four your editor's auto-completion.</p>
+       <?php include __DIR__ . "/stub.phtml"; ?>
+<?php endif; ?>
+
 <?php if ($entry->hasFunctions()) : ?>
 
 <h2 id="Functions:">Functions:</h2>
@@ -9,7 +15,8 @@
 
        <li>
                <h3><a href="<?= $esc($sub->getName()) ?>"><?= $esc($sub) ?></a></h3>
-               <p><?= $quick($sub->getDescription()) ?></p>
+               <?= $quick($sub->getDescription()) ?>
+
                <p><?= $esc($sub->getTitle()) ?></p>
        </li>
        <?php endforeach; ?>
@@ -25,7 +32,8 @@
 
        <li>
                <h3><a href="<?= $esc($sub->getName()) ?>"><?= $esc($sub) ?></a></h3>
-               <p><?= $quick($sub->getDescription()) ?></p>
+               <?= $quick($sub->getDescription()) ?>
+
                <p><?= $esc($sub->getTitle()) ?></p>
        </li>
        <?php endforeach; ?>