From db6dec0de10d0ee3b35658ae9f431935d17e8a7c Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sat, 13 Aug 2016 14:22:22 +0200 Subject: Fix: add missing final newlines, untabify text Signed-off-by: VirtualTam --- plugins/addlink_toolbar/addlink_toolbar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/addlink_toolbar') diff --git a/plugins/addlink_toolbar/addlink_toolbar.php b/plugins/addlink_toolbar/addlink_toolbar.php index ba3849cf..cfd74207 100644 --- a/plugins/addlink_toolbar/addlink_toolbar.php +++ b/plugins/addlink_toolbar/addlink_toolbar.php @@ -35,4 +35,4 @@ function hook_addlink_toolbar_render_includes($data) } return $data; -} \ No newline at end of file +} -- cgit v1.2.3 From ba0fd80732acbff0fcda57a0b31e4edfaa337001 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 1 Dec 2016 11:38:21 +0100 Subject: Improve theme dependent plugin placeholders: - buttons_toolbar: now expect links represented by an array instead of HTML content - fields_toolbar: now expect a form represented by an array instead of HTML content - action_plugin: now expect links represented by an array instead of HTML content Default templates updated accordingly mprove theme dependent plugin placeholders: --- plugins/addlink_toolbar/addlink_toolbar.css | 4 ---- plugins/addlink_toolbar/addlink_toolbar.html | 6 ------ plugins/addlink_toolbar/addlink_toolbar.php | 22 +++++++++++++++++++++- 3 files changed, 21 insertions(+), 11 deletions(-) delete mode 100644 plugins/addlink_toolbar/addlink_toolbar.css delete mode 100644 plugins/addlink_toolbar/addlink_toolbar.html (limited to 'plugins/addlink_toolbar') diff --git a/plugins/addlink_toolbar/addlink_toolbar.css b/plugins/addlink_toolbar/addlink_toolbar.css deleted file mode 100644 index b6a612f0..00000000 --- a/plugins/addlink_toolbar/addlink_toolbar.css +++ /dev/null @@ -1,4 +0,0 @@ -#addlink_toolbar { - display: inline; - margin: 0 0 0 25px; -} \ No newline at end of file diff --git a/plugins/addlink_toolbar/addlink_toolbar.html b/plugins/addlink_toolbar/addlink_toolbar.html deleted file mode 100644 index f38c41a0..00000000 --- a/plugins/addlink_toolbar/addlink_toolbar.html +++ /dev/null @@ -1,6 +0,0 @@ - \ No newline at end of file diff --git a/plugins/addlink_toolbar/addlink_toolbar.php b/plugins/addlink_toolbar/addlink_toolbar.php index cfd74207..bf8a198a 100644 --- a/plugins/addlink_toolbar/addlink_toolbar.php +++ b/plugins/addlink_toolbar/addlink_toolbar.php @@ -15,7 +15,27 @@ function hook_addlink_toolbar_render_header($data) { if ($data['_PAGE_'] == Router::$PAGE_LINKLIST && $data['_LOGGEDIN_'] === true) { - $data['fields_toolbar'][] = file_get_contents(PluginManager::$PLUGINS_PATH . '/addlink_toolbar/addlink_toolbar.html'); + $form = array( + 'attr' => array( + 'method' => 'GET', + 'action' => '', + 'name' => 'addform', + 'class' => 'addform', + ), + 'inputs' => array( + array( + 'type' => 'text', + 'name' => 'post', + 'placeholder' => 'URI', + ), + array( + 'type' => 'submit', + 'value' => 'Add link', + 'class' => 'bigbutton', + ), + ), + ); + $data['fields_toolbar'][] = $form; } return $data; -- cgit v1.2.3