diff options
author | Andrew Dolgov <[email protected]> | 2013-03-18 09:30:06 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-18 09:30:06 +0400 |
commit | 9a2885da170ffd64358b99194095851a2d09c1b6 (patch) | |
tree | 9d1ca97a5500dfecd4c5117adcde1365df9a606d | |
parent | 9955a134621e75a1490a2cdc75c2a00c23f54507 (diff) |
if plugin method get_css(), embed plugin-specific css to main UI
-rw-r--r-- | index.php | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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"/> |