- if ($data['_PAGE_'] == Router::$PAGE_LINKLIST) {
- $data['buttons_toolbar'][] = file_get_contents(PluginManager::$PLUGINS_PATH . '/playvideos/playvideos.html');
+ if ($data['_PAGE_'] == TemplatePage::LINKLIST) {
+ $playvideo = [
+ 'attr' => [
+ 'href' => '#',
+ 'title' => t('Video player'),
+ 'id' => 'playvideos',
+ ],
+ 'html' => '► ' . t('Play Videos')
+ ];
+ $data['buttons_toolbar'][] = $playvideo;