stub file generation
[mdref/mdref] / views / index.phtml
index 78d95617242e2c7a33bfda605984cc207a3dcd04..0a25061bf639283f30e4a619b6d8add5cf7de838 100644 (file)
                        <a href="<?= $esc($entry->getName()) ?>"
                        ><?= $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: '&raquo;'">
+                                               <li>
+                                                       <a href="stub?ref=<?= $entry->getName() ?>"><?= $entry->getName() ?>.stub.php</a><br>
+                                                       <small>
+                                                               Last modified:
+                                                               <?= date_create("@".filemtime($stub))->format("Y-m-d H:i:s") ?>
+                                                       </small>
+                                               </li>
+                                       </ul>
+                               </div>
+                       <?php endif; ?>
                <?php endforeach; ?>
        <?php endforeach; ?>
 <?php endif; ?>