1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +00:00

experimental new plugin system

This commit is contained in:
Andrew Dolgov
2012-12-23 14:52:18 +04:00
parent 83e6e313be
commit 19c7350770
29 changed files with 204 additions and 164 deletions
+5 -4
View File
@@ -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());
}
}