]>
git.immae.eu Git - github/shaarli/Shaarli.git/blob - plugins/playvideos/playvideos.php
4 * When linklist is displayed, add play videos to header's toolbar.
6 * @param array $data - header data.
7 * @return mixed - header data with playvideos toolbar item.
9 function hook_playvideos_render_header($data) {
10 if ($data['_PAGE_'] == Router
::$PAGE_LINKLIST) {
11 $data['buttons_toolbar'][] = file_get_contents(PluginManager
::$PLUGINS_PATH . '/playvideos/playvideos.html');
18 * When linklist is displayed, include playvideos JS files.
20 * @param array $data - footer data.
21 * @return mixed - footer data with playvideos JS files added.
23 function hook_playvideos_render_footer($data) {
24 if ($data['_PAGE_'] == Router
::$PAGE_LINKLIST) {
25 $data['js_files'][] = PluginManager
::$PLUGINS_PATH . '/playvideos/jquery-1.11.2.min.js';
26 $data['js_files'][] = PluginManager
::$PLUGINS_PATH . '/playvideos/youtube_playlist.js';