aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/qrcode/qrcode.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2015-12-13 20:44:22 +0100
committerArthurHoaro <arthur@hoa.ro>2015-12-21 14:01:52 +0100
commit28a4fc546fd937ba4aef89e2a70bf3e1ae1508d3 (patch)
treea0b3c198f1af5d28d4f8192a958bd1bf6fb7bb0b /plugins/qrcode/qrcode.php
parent79851b489087f8a3027ecd805255cd13ee6fcf63 (diff)
downloadShaarli-28a4fc546fd937ba4aef89e2a70bf3e1ae1508d3.tar.gz
Shaarli-28a4fc546fd937ba4aef89e2a70bf3e1ae1508d3.tar.zst
Shaarli-28a4fc546fd937ba4aef89e2a70bf3e1ae1508d3.zip
Fixes QRCode style
* fixes a regression misplacing QRCode popup. * adds a 'show' class in JS to handle CSS transition.
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}