extract stub.phtml
[mdref/mdref] / views / mdref.phtml
index e9909b514d94ad3d76ea714606f39d6346030f4b..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>