diff options
Diffstat (limited to 'plugins/qrcode/qrcode.php')
-rw-r--r-- | plugins/qrcode/qrcode.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/qrcode/qrcode.php b/plugins/qrcode/qrcode.php index 5f6e76a2..a709abaa 100644 --- a/plugins/qrcode/qrcode.php +++ b/plugins/qrcode/qrcode.php | |||
@@ -39,3 +39,19 @@ function hook_qrcode_render_footer($data) | |||
39 | 39 | ||
40 | return $data; | 40 | return $data; |
41 | } | 41 | } |
42 | |||
43 | /** | ||
44 | * When linklist is displayed, include qrcode CSS file. | ||
45 | * | ||
46 | * @param array $data - header data. | ||
47 | * | ||
48 | * @return mixed - header data with qrcode CSS file added. | ||
49 | */ | ||
50 | function hook_qrcode_render_includes($data) | ||
51 | { | ||
52 | if ($data['_PAGE_'] == Router::$PAGE_LINKLIST) { | ||
53 | $data['css_files'][] = PluginManager::$PLUGINS_PATH . '/qrcode/qrcode.css'; | ||
54 | } | ||
55 | |||
56 | return $data; | ||
57 | } | ||