diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-12-18 12:40:27 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-12-18 12:40:27 +0100 |
commit | 8147ff76a49206a08999f420206d971de10db12e (patch) | |
tree | dea3412c8e30cfab464557bcbe4c5c3fb08bc33e /plugins/demo_plugin | |
parent | 9eba6ff469bdea8f341af06ef23c8bb4bd3a6869 (diff) | |
parent | e3ffc8fdee30be41046b985fe6e7034fb580b0c8 (diff) | |
download | Shaarli-8147ff76a49206a08999f420206d971de10db12e.tar.gz Shaarli-8147ff76a49206a08999f420206d971de10db12e.tar.zst Shaarli-8147ff76a49206a08999f420206d971de10db12e.zip |
merge
Diffstat (limited to 'plugins/demo_plugin')
-rw-r--r-- | plugins/demo_plugin/demo_plugin.php | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/plugins/demo_plugin/demo_plugin.php b/plugins/demo_plugin/demo_plugin.php index 15482fe0..8fdbf663 100644 --- a/plugins/demo_plugin/demo_plugin.php +++ b/plugins/demo_plugin/demo_plugin.php | |||
@@ -56,9 +56,11 @@ function hook_demo_plugin_render_header($data) | |||
56 | * and a mandatory `html` key, which contains its value. | 56 | * and a mandatory `html` key, which contains its value. |
57 | */ | 57 | */ |
58 | $button = array( | 58 | $button = array( |
59 | 'href' => '#', | 59 | 'attr' => array ( |
60 | 'class' => 'mybutton', | 60 | 'href' => '#', |
61 | 'title' => 'hover me', | 61 | 'class' => 'mybutton', |
62 | 'title' => 'hover me', | ||
63 | ), | ||
62 | 'html' => 'DEMO buttons toolbar', | 64 | 'html' => 'DEMO buttons toolbar', |
63 | ); | 65 | ); |
64 | $data['buttons_toolbar'][] = $button; | 66 | $data['buttons_toolbar'][] = $button; |
@@ -87,9 +89,11 @@ function hook_demo_plugin_render_header($data) | |||
87 | * </form> | 89 | * </form> |
88 | */ | 90 | */ |
89 | $form = array( | 91 | $form = array( |
90 | 'method' => 'GET', | 92 | 'attr' => array( |
91 | 'action' => '?', | 93 | 'method' => 'GET', |
92 | 'class' => 'addform', | 94 | 'action' => '?', |
95 | 'class' => 'addform', | ||
96 | ), | ||
93 | 'inputs' => array( | 97 | 'inputs' => array( |
94 | array( | 98 | array( |
95 | 'type' => 'text', | 99 | 'type' => 'text', |
@@ -102,7 +106,9 @@ function hook_demo_plugin_render_header($data) | |||
102 | } | 106 | } |
103 | // Another button always displayed | 107 | // Another button always displayed |
104 | $button = array( | 108 | $button = array( |
105 | 'href' => '#', | 109 | 'attr' => array( |
110 | 'href' => '#', | ||
111 | ), | ||
106 | 'html' => 'Demo', | 112 | 'html' => 'Demo', |
107 | ); | 113 | ); |
108 | $data['buttons_toolbar'][] = $button; | 114 | $data['buttons_toolbar'][] = $button; |
@@ -197,8 +203,10 @@ function hook_demo_plugin_render_linklist($data) | |||
197 | * It's also recommended to add key 'on' or 'off' for theme rendering. | 203 | * It's also recommended to add key 'on' or 'off' for theme rendering. |
198 | */ | 204 | */ |
199 | $action = array( | 205 | $action = array( |
200 | 'href' => '?up', | 206 | 'attr' => array( |
201 | 'title' => 'Uppercase!', | 207 | 'href' => '?up', |
208 | 'title' => 'Uppercase!', | ||
209 | ), | ||
202 | 'html' => '←', | 210 | 'html' => '←', |
203 | ); | 211 | ); |
204 | 212 | ||