aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/addlink_toolbar/addlink_toolbar.php
diff options
context:
space:
mode:
authorArthur <arthur@hoa.ro>2016-12-12 03:07:13 +0100
committerGitHub <noreply@github.com>2016-12-12 03:07:13 +0100
commita0d079141eb155c263ebfaa1aad2629382223e31 (patch)
treee72090d95310391fdbe155906eab050764a95c47 /plugins/addlink_toolbar/addlink_toolbar.php
parentbea80e43a3714663b0c32879f7bdf4fd19161b2e (diff)
parentba0fd80732acbff0fcda57a0b31e4edfaa337001 (diff)
downloadShaarli-a0d079141eb155c263ebfaa1aad2629382223e31.tar.gz
Shaarli-a0d079141eb155c263ebfaa1aad2629382223e31.tar.zst
Shaarli-a0d079141eb155c263ebfaa1aad2629382223e31.zip
Merge pull request #679 from ArthurHoaro/plugins/header
Improve theme dependent plugin placeholders:
Diffstat (limited to 'plugins/addlink_toolbar/addlink_toolbar.php')
-rw-r--r--plugins/addlink_toolbar/addlink_toolbar.php22
1 files changed, 21 insertions, 1 deletions
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 @@
15function hook_addlink_toolbar_render_header($data) 15function hook_addlink_toolbar_render_header($data)
16{ 16{
17 if ($data['_PAGE_'] == Router::$PAGE_LINKLIST && $data['_LOGGEDIN_'] === true) { 17 if ($data['_PAGE_'] == Router::$PAGE_LINKLIST && $data['_LOGGEDIN_'] === true) {
18 $data['fields_toolbar'][] = file_get_contents(PluginManager::$PLUGINS_PATH . '/addlink_toolbar/addlink_toolbar.html'); 18 $form = array(
19 'attr' => array(
20 'method' => 'GET',
21 'action' => '',
22 'name' => 'addform',
23 'class' => 'addform',
24 ),
25 'inputs' => array(
26 array(
27 'type' => 'text',
28 'name' => 'post',
29 'placeholder' => 'URI',
30 ),
31 array(
32 'type' => 'submit',
33 'value' => 'Add link',
34 'class' => 'bigbutton',
35 ),
36 ),
37 );
38 $data['fields_toolbar'][] = $form;
19 } 39 }
20 40
21 return $data; 41 return $data;