><?= $esc($entry->getTitle()) ?></a></h2>
<div><?= $quick($entry->getIntro()) ?></div>
<?php if ($repo->hasStub($stub)) : ?>
- <div>
- <p><strong>Download the Stub file:</strong></p>
- <ul style="list-style-type: '»'">
- <li>
- <a href="stub?ref=<?= $entry->getName() ?>"><?= $entry->getName() ?>.stub.php</a><br>
- <small>
- Last modified:
- <?= date_create("@".filemtime($stub))->setTimezone(new DateTimezone("UTC"))->format("Y-m-d H:i:s T") ?>
- </small>
- </li>
- </ul>
- </div>
+ <?php include __DIR__ . "/stub.phtml"; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>
<?= $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>
--- /dev/null
+ <div>
+ <p><strong>Download the Stub file:</strong></p>
+ <ul style="list-style-type: '»'">
+ <li>
+ <a href="stub?ref=<?= $entry->getName() ?>"><?= $entry->getName() ?>.stub.php</a><br>
+ <small>
+ Last modified:
+ <?= date_create("@".filemtime($stub))->setTimezone(new DateTimezone("UTC"))->format("Y-m-d H:i:s T") ?>
+ </small>
+ </li>
+ </ul>
+ </div>
+