aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/qrcode/qrcode.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2015-12-21 22:31:45 +0100
committerVirtualTam <virtualtam@flibidi.net>2015-12-21 22:31:45 +0100
commit70a35e2a6dfeabcb657494a0f30eb630aeb57792 (patch)
treea0b3c198f1af5d28d4f8192a958bd1bf6fb7bb0b /plugins/qrcode/qrcode.php
parent79851b489087f8a3027ecd805255cd13ee6fcf63 (diff)
parent28a4fc546fd937ba4aef89e2a70bf3e1ae1508d3 (diff)
downloadShaarli-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.php16
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 */
50function 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}