]> git.wh0rd.org - tt-rss.git/blobdiff - index.php
experimental new plugin system
[tt-rss.git] / index.php
index 445a8fa75e2b5b8da50990b62d3f6f545cb7f907..d958e2b891d76078c4671ce04d4e6db393db3b76 100644 (file)
--- a/index.php
+++ b/index.php
        <?php
                require 'lib/jsmin.php';
 
-               foreach (explode(",", ARTICLE_BUTTON_PLUGINS) as $p) {
-                       $jsf = "js/".trim($p)."_button.js";
-                       if (file_exists($jsf)) {
-                               echo JSMin::minify(file_get_contents($jsf));
+               global $pluginhost;
+
+               foreach ($pluginhost->get_plugins() as $n => $p) {
+                       if (method_exists($p, "get_js")) {
+                               echo JSMin::minify($p->get_js());
                        }
                }