From c8f0a06d801d1e6405f5d86b45ba5967a6569c8c Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 2 Nov 2016 16:34:10 +0100 Subject: 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 --- plugins/playvideos/playvideos.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'plugins/playvideos/playvideos.php') 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 @@ function hook_playvideos_render_header($data) { if ($data['_PAGE_'] == Router::$PAGE_LINKLIST) { - $data['buttons_toolbar'][] = file_get_contents(PluginManager::$PLUGINS_PATH . '/playvideos/playvideos.html'); + $playvideo = array( + 'href' => '#', + 'title' => 'Video player', + 'id' => 'playvideos', + 'html' => '► Play Videos' + ); + $data['buttons_toolbar'][] = $playvideo; } return $data; -- cgit v1.2.3