From: Michael Wallner Date: Tue, 12 Mar 2019 17:21:44 +0000 (+0100) Subject: extract stub.phtml X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=2701d8c46a3047adbfc10d5e70dbdc490eae7245;p=mdref%2Fmdref extract stub.phtml --- diff --git a/views/index.phtml b/views/index.phtml index aa9b1ff..db2accd 100644 --- a/views/index.phtml +++ b/views/index.phtml @@ -15,18 +15,7 @@ >getTitle()) ?>
getIntro()) ?>
hasStub($stub)) : ?> -
-

Download the Stub file:

- -
+ diff --git a/views/mdref.phtml b/views/mdref.phtml index e9909b5..c05ad78 100644 --- a/views/mdref.phtml +++ b/views/mdref.phtml @@ -1,6 +1,12 @@ getPath()) ?> +isRoot() && $entry->getRepo()->hasStub($stub)) : ?> +

Editor Stub:

+

This extension provides a stub file four your editor's auto-completion.

+ + + hasFunctions()) : ?>

Functions:

diff --git a/views/stub.phtml b/views/stub.phtml new file mode 100644 index 0000000..05679ab --- /dev/null +++ b/views/stub.phtml @@ -0,0 +1,13 @@ +
+

Download the Stub file:

+ +
+