aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/playvideos/playvideos.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-11-02 16:34:10 +0100
committerArthurHoaro <arthur@hoa.ro>2016-11-05 14:29:56 +0100
commitc8f0a06d801d1e6405f5d86b45ba5967a6569c8c (patch)
tree173523374b5ac660ace025181acb817125ede482 /plugins/playvideos/playvideos.php
parentcac0ea87be6326271993c958788afbd244815ef1 (diff)
downloadShaarli-c8f0a06d801d1e6405f5d86b45ba5967a6569c8c.tar.gz
Shaarli-c8f0a06d801d1e6405f5d86b45ba5967a6569c8c.tar.zst
Shaarli-c8f0a06d801d1e6405f5d86b45ba5967a6569c8c.zip
Improve theme dependent plugin placeholders:
- buttons_toolbar: now expect links represented by an array instead of HTML content - fields_toolbar: now expect a form represented by an array instead of HTML content - action_plugin: now expect links represented by an array instead of HTML content Default templates updated accordingly
Diffstat (limited to 'plugins/playvideos/playvideos.php')
-rw-r--r--plugins/playvideos/playvideos.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/playvideos/playvideos.php b/plugins/playvideos/playvideos.php
index 7645b778..2f4b0a31 100644
--- a/plugins/playvideos/playvideos.php
+++ b/plugins/playvideos/playvideos.php
@@ -16,7 +16,13 @@
16function hook_playvideos_render_header($data) 16function 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 'href' => '#',
21 'title' => 'Video player',
22 'id' => 'playvideos',
23 'html' => '► Play Videos'
24 );
25 $data['buttons_toolbar'][] = $playvideo;
20 } 26 }
21 27
22 return $data; 28 return $data;