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 84a19618..8bc610d1 100644 --- a/plugins/qrcode/qrcode.php +++ b/plugins/qrcode/qrcode.php | |||
@@ -43,3 +43,19 @@ function hook_qrcode_render_footer($data) | |||
43 | 43 | ||
44 | return $data; | 44 | return $data; |
45 | } | 45 | } |
46 | |||
47 | /** | ||
48 | * When linklist is displayed, include qrcode CSS file. | ||
49 | * | ||
50 | * @param array $data - header data. | ||
51 | * | ||
52 | * @return mixed - header data with qrcode CSS file added. | ||
53 | */ | ||
54 | function hook_qrcode_render_includes($data) | ||
55 | { | ||
56 | if ($data['_PAGE_'] == Router::$PAGE_LINKLIST) { | ||
57 | $data['css_files'][] = PluginManager::$PLUGINS_PATH . '/qrcode/qrcode.css'; | ||
58 | } | ||
59 | |||
60 | return $data; | ||
61 | } | ||