diff options
author | VirtualTam <virtualtam@flibidi.net> | 2015-12-21 22:31:45 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2015-12-21 22:31:45 +0100 |
commit | 70a35e2a6dfeabcb657494a0f30eb630aeb57792 (patch) | |
tree | a0b3c198f1af5d28d4f8192a958bd1bf6fb7bb0b /plugins/qrcode/qrcode.php | |
parent | 79851b489087f8a3027ecd805255cd13ee6fcf63 (diff) | |
parent | 28a4fc546fd937ba4aef89e2a70bf3e1ae1508d3 (diff) | |
download | Shaarli-70a35e2a6dfeabcb657494a0f30eb630aeb57792.tar.gz Shaarli-70a35e2a6dfeabcb657494a0f30eb630aeb57792.tar.zst Shaarli-70a35e2a6dfeabcb657494a0f30eb630aeb57792.zip |
Merge pull request #413 from ArthurHoaro/qrcode-effect
Fixes QRCode style
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 | } | ||