]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - plugins/qrcode/qrcode.php
Merge pull request #680 from ArthurHoaro/apache-htaccess
[github/shaarli/Shaarli.git] / plugins / qrcode / qrcode.php
index 84a1961888667833fe3f84cdaa3943bcf192bd11..8bc610d1fad120ec34694c4d3c1a3c7501f14e64 100644 (file)
@@ -43,3 +43,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;
+}