diff options
author | Arthur <arthur@hoa.ro> | 2016-12-12 03:07:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-12 03:07:13 +0100 |
commit | a0d079141eb155c263ebfaa1aad2629382223e31 (patch) | |
tree | e72090d95310391fdbe155906eab050764a95c47 /plugins/playvideos/playvideos.php | |
parent | bea80e43a3714663b0c32879f7bdf4fd19161b2e (diff) | |
parent | ba0fd80732acbff0fcda57a0b31e4edfaa337001 (diff) | |
download | Shaarli-a0d079141eb155c263ebfaa1aad2629382223e31.tar.gz Shaarli-a0d079141eb155c263ebfaa1aad2629382223e31.tar.zst Shaarli-a0d079141eb155c263ebfaa1aad2629382223e31.zip |
Merge pull request #679 from ArthurHoaro/plugins/header
Improve theme dependent plugin placeholders:
Diffstat (limited to 'plugins/playvideos/playvideos.php')
-rw-r--r-- | plugins/playvideos/playvideos.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/playvideos/playvideos.php b/plugins/playvideos/playvideos.php index 7645b778..64484504 100644 --- a/plugins/playvideos/playvideos.php +++ b/plugins/playvideos/playvideos.php | |||
@@ -16,7 +16,15 @@ | |||
16 | function hook_playvideos_render_header($data) | 16 | function hook_playvideos_render_header($data) |
17 | { | 17 | { |
18 | if ($data['_PAGE_'] == Router::$PAGE_LINKLIST) { | 18 | if ($data['_PAGE_'] == Router::$PAGE_LINKLIST) { |
19 | $data['buttons_toolbar'][] = file_get_contents(PluginManager::$PLUGINS_PATH . '/playvideos/playvideos.html'); | 19 | $playvideo = array( |
20 | 'attr' => array( | ||
21 | 'href' => '#', | ||
22 | 'title' => 'Video player', | ||
23 | 'id' => 'playvideos', | ||
24 | ), | ||
25 | 'html' => '► Play Videos' | ||
26 | ); | ||
27 | $data['buttons_toolbar'][] = $playvideo; | ||
20 | } | 28 | } |
21 | 29 | ||
22 | return $data; | 30 | return $data; |