]>
git.immae.eu Git - github/shaarli/Shaarli.git/blob - plugins/addlink_toolbar/addlink_toolbar.php
4 * Plugin addlink_toolbar.
5 * Adds the addlink input on the linklist page.
9 * When linklist is displayed, add play videos to header's toolbar.
11 * @param array $data - header data.
13 * @return mixed - header data with addlink toolbar item.
15 function hook_addlink_toolbar_render_header($data)
17 if ($data['_PAGE_'] == Router
::$PAGE_LINKLIST && $data['_LOGGEDIN_'] === true) {
29 'placeholder' => 'URI',
33 'value' => 'Add link',
34 'class' => 'bigbutton',
38 $data['fields_toolbar'][] = $form;