]> git.wh0rd.org - tt-rss.git/commitdiff
if plugin method get_css(), embed plugin-specific css to main UI
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 18 Mar 2013 05:30:06 +0000 (09:30 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 18 Mar 2013 05:30:06 +0000 (09:30 +0400)
index.php

index 6584d8d2e22139171c2ef49094353967b2142e7b..3d5b2cc435883a57a8aac984dc22ebf5f26d39a9 100644 (file)
--- a/index.php
+++ b/index.php
 
        <?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"/>