From ba0fd80732acbff0fcda57a0b31e4edfaa337001 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 1 Dec 2016 11:38:21 +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 mprove theme dependent plugin placeholders: --- plugins/playvideos/playvideos.html | 1 - plugins/playvideos/playvideos.php | 10 +++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) delete mode 100644 plugins/playvideos/playvideos.html (limited to 'plugins/playvideos') 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 @@ -► Play Videos \ 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 @@ 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( + 'attr' => array( + 'href' => '#', + 'title' => 'Video player', + 'id' => 'playvideos', + ), + 'html' => '► Play Videos' + ); + $data['buttons_toolbar'][] = $playvideo; } return $data; -- cgit v1.2.3