- if ($data['_PAGE_'] == Router::$PAGE_LINKLIST && $data['_LOGGEDIN_'] === true) {
- $data['fields_toolbar'][] = file_get_contents(PluginManager::$PLUGINS_PATH . '/addlink_toolbar/addlink_toolbar.html');
+ if ($data['_PAGE_'] == TemplatePage::LINKLIST && $data['_LOGGEDIN_'] === true) {
+ $form = [
+ 'attr' => [
+ 'method' => 'GET',
+ 'action' => $data['_BASE_PATH_'] . '/admin/shaare',
+ 'name' => 'addform',
+ 'class' => 'addform',
+ ],
+ 'inputs' => [
+ [
+ 'type' => 'text',
+ 'name' => 'post',
+ 'placeholder' => t('URI'),
+ ],
+ [
+ 'type' => 'submit',
+ 'value' => t('Add link'),
+ 'class' => 'bigbutton',
+ ],
+ ],
+ ];
+ $data['fields_toolbar'][] = $form;