From 2701d8c46a3047adbfc10d5e70dbdc490eae7245 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 12 Mar 2019 18:21:44 +0100 Subject: [PATCH] extract stub.phtml --- views/index.phtml | 13 +------------ views/mdref.phtml | 6 ++++++ views/stub.phtml | 13 +++++++++++++ 3 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 views/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:

+ +
+ -- 2.30.2