if plugin method get_css(), embed plugin-specific css to main UI

This commit is contained in:
Andrew Dolgov 2013-03-18 09:30:06 +04:00
parent 9955a13462
commit 9a2885da17

View file

@ -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"/>