extract stub.phtml
[mdref/mdref] / views / stub.phtml
diff --git a/views/stub.phtml b/views/stub.phtml
new file mode 100644 (file)
index 0000000..05679ab
--- /dev/null
@@ -0,0 +1,13 @@
+                               <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))->setTimezone(new DateTimezone("UTC"))->format("Y-m-d H:i:s T") ?>
+                                                       </small>
+                                               </li>
+                                       </ul>
+                               </div>
+