diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-12-01 11:38:21 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-12-01 11:38:21 +0100 |
commit | ba0fd80732acbff0fcda57a0b31e4edfaa337001 (patch) | |
tree | 34eab231241e1c7b72f5b069fa132bdcedc830e0 /plugins/playvideos | |
parent | 849d1650c1af853162b749af896c20bb25d4a4e8 (diff) | |
download | Shaarli-ba0fd80732acbff0fcda57a0b31e4edfaa337001.tar.gz Shaarli-ba0fd80732acbff0fcda57a0b31e4edfaa337001.tar.zst Shaarli-ba0fd80732acbff0fcda57a0b31e4edfaa337001.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
mprove theme dependent plugin placeholders:
Diffstat (limited to 'plugins/playvideos')
-rw-r--r-- | plugins/playvideos/playvideos.html | 1 | ||||
-rw-r--r-- | plugins/playvideos/playvideos.php | 10 |
2 files changed, 9 insertions, 2 deletions
diff --git a/plugins/playvideos/playvideos.html b/plugins/playvideos/playvideos.html deleted file mode 100644 index fda3d54f..00000000 --- a/plugins/playvideos/playvideos.html +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | <a href="#" id="playvideos">► Play Videos</a> \ No newline at end of file | ||
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; |