X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=plugins%2Fplayvideos%2Fplayvideos.php;h=4f874f92b98b4d09464ca5e748b03fe47135dd36;hb=302662797cb5e8ac6579a99297ceae301f7927a6;hp=0a80aa58c5332f8697210e64344b1b3ba89184e6;hpb=00c25040c523104e1b845fd71d1cd134a1a5e7ff;p=github%2Fshaarli%2FShaarli.git diff --git a/plugins/playvideos/playvideos.php b/plugins/playvideos/playvideos.php index 0a80aa58..4f874f92 100644 --- a/plugins/playvideos/playvideos.php +++ b/plugins/playvideos/playvideos.php @@ -1,4 +1,5 @@ [ + 'href' => '#', + 'title' => t('Video player'), + 'id' => 'playvideos', + ], + 'html' => '► ' . t('Play Videos') + ]; + $data['buttons_toolbar'][] = $playvideo; } return $data; @@ -31,10 +43,19 @@ function hook_playvideos_render_header($data) */ function hook_playvideos_render_footer($data) { - if ($data['_PAGE_'] == Router::$PAGE_LINKLIST) { + if ($data['_PAGE_'] == TemplatePage::LINKLIST) { $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/playvideos/jquery-1.11.2.min.js'; $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/playvideos/youtube_playlist.js'; } return $data; -} \ No newline at end of file +} + +/** + * This function is never called, but contains translation calls for GNU gettext extraction. + */ +function playvideos_dummy_translation() +{ + // meta + t('Add a button in the toolbar allowing to watch all videos.'); +}