From 28a4fc546fd937ba4aef89e2a70bf3e1ae1508d3 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 13 Dec 2015 20:44:22 +0100 Subject: Fixes QRCode style * fixes a regression misplacing QRCode popup. * adds a 'show' class in JS to handle CSS transition. --- plugins/qrcode/qrcode.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'plugins/qrcode/qrcode.php') 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) return $data; } + +/** + * When linklist is displayed, include qrcode CSS file. + * + * @param array $data - header data. + * + * @return mixed - header data with qrcode CSS file added. + */ +function hook_qrcode_render_includes($data) +{ + if ($data['_PAGE_'] == Router::$PAGE_LINKLIST) { + $data['css_files'][] = PluginManager::$PLUGINS_PATH . '/qrcode/qrcode.css'; + } + + return $data; +} -- cgit v1.2.3