diff options
author | Andrew Dolgov <[email protected]> | 2012-12-23 14:52:18 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-12-23 14:52:18 +0400 |
commit | 19c7350770788edf3ae0bb1fd6d95876667adbf6 (patch) | |
tree | e539d53acd796375d7feba1efd66d3850fd14db1 /index.php | |
parent | 83e6e313be6de7d6e3f155a13c821ab82da12575 (diff) |
experimental new plugin system
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -71,10 +71,11 @@ <?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()); } } |