extract stub.phtml
[mdref/mdref] / views / index.phtml
index 78d95617242e2c7a33bfda605984cc207a3dcd04..db2accd3867eaf8ee18a9cac969e06e34bb1c55e 100644 (file)
@@ -14,6 +14,9 @@
                        <a href="<?= $esc($entry->getName()) ?>"
                        ><?= $esc($entry->getTitle()) ?></a></h2>
                <div><?= $quick($entry->getIntro()) ?></div>
+                       <?php if ($repo->hasStub($stub)) : ?>
+                               <?php include __DIR__ . "/stub.phtml"; ?>
+                       <?php endif; ?>
                <?php endforeach; ?>
        <?php endforeach; ?>
 <?php endif; ?>