aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/demo_plugin
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2015-12-07 11:25:11 +0100
committerArthurHoaro <arthur@hoa.ro>2015-12-08 15:51:49 +0100
commit38603b2450e983edfab5770bd3dd681c6073f898 (patch)
tree0c11b70421847e8886fa1eaf5ae8486fd35ff0f2 /plugins/demo_plugin
parent4c3df9aa1250df86a4897169a8d4be0d33b2c9f6 (diff)
downloadShaarli-38603b2450e983edfab5770bd3dd681c6073f898.tar.gz
Shaarli-38603b2450e983edfab5770bd3dd681c6073f898.tar.zst
Shaarli-38603b2450e983edfab5770bd3dd681c6073f898.zip
Fixes #403: build the daily page through renderPage()
* new entry in the Router for daily page. * add an always displayed button in demo_plugin
Diffstat (limited to 'plugins/demo_plugin')
-rw-r--r--plugins/demo_plugin/demo_plugin.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/demo_plugin/demo_plugin.php b/plugins/demo_plugin/demo_plugin.php
index 84763c2b..9384c21f 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}