aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/demo_plugin/demo_plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/demo_plugin/demo_plugin.php')
-rw-r--r--plugins/demo_plugin/demo_plugin.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/demo_plugin/demo_plugin.php b/plugins/demo_plugin/demo_plugin.php
index 84763c2b..f5f028e0 100644
--- a/plugins/demo_plugin/demo_plugin.php
+++ b/plugins/demo_plugin/demo_plugin.php
@@ -40,6 +40,8 @@ function hook_demo_plugin_render_header($data)
40 // Fields in toolbar 40 // Fields in toolbar
41 $data['fields_toolbar'][] = 'DEMO_fields_toolbar'; 41 $data['fields_toolbar'][] = 'DEMO_fields_toolbar';
42 } 42 }
43 // Another button always displayed
44 $data['buttons_toolbar'][] = '<li><a href="#">DEMO</a></li>';
43 45
44 return $data; 46 return $data;
45} 47}
@@ -74,6 +76,7 @@ function hook_demo_plugin_render_includes($data)
74 * 76 *
75 * Template placeholders: 77 * Template placeholders:
76 * - text 78 * - text
79 * - endofpage
77 * - js_files 80 * - js_files
78 * 81 *
79 * Data: 82 * Data:
@@ -89,6 +92,11 @@ function hook_demo_plugin_render_footer($data)
89 // footer text 92 // footer text
90 $data['text'][] = 'Shaarli is now enhanced by the awesome demo_plugin.'; 93 $data['text'][] = 'Shaarli is now enhanced by the awesome demo_plugin.';
91 94
95 // Free elements at the end of the page.
96 $data['endofpage'][] = '<marquee id="demo_marquee">' .
97 'DEMO: it\'s 1999 all over again!' .
98 '</marquee>';
99
92 // List of plugin's JS files. 100 // List of plugin's JS files.
93 // Note that you just need to specify CSS path. 101 // Note that you just need to specify CSS path.
94 $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/demo_plugin/demo_plugin.js'; 102 $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/demo_plugin/demo_plugin.js';