summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-18 09:30:06 +0400
committerAndrew Dolgov <[email protected]>2013-03-18 09:30:06 +0400
commit9a2885da170ffd64358b99194095851a2d09c1b6 (patch)
tree9d1ca97a5500dfecd4c5117adcde1365df9a606d /index.php
parent9955a134621e75a1490a2cdc75c2a00c23f54507 (diff)
if plugin method get_css(), embed plugin-specific css to main UI
Diffstat (limited to 'index.php')
-rw-r--r--index.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/index.php b/index.php
index 6584d8d2e..3d5b2cc43 100644
--- a/index.php
+++ b/index.php
@@ -62,8 +62,15 @@
<?php print_user_stylesheet($link) ?>
- <script type="text/javascript">
- </script>
+ <style type="text/css">
+ <?php
+ foreach ($pluginhost->get_plugins() as $n => $p) {
+ if (method_exists($p, "get_css")) {
+ echo $p->get_css();
+ }
+ }
+ ?>
+ </style>
<link rel="shortcut icon" type="image/png" href="images/favicon.png"/>