]> git.wh0rd.org - tt-rss.git/blobdiff - index.php
move tweet button to a plugin, implement basic support for article action button...
[tt-rss.git] / index.php
index d08afa6efd016aedade0102589939ce86be83746..9d17da7bc9837a21ffe1a36d732fbded1c23a4b9 100644 (file)
--- a/index.php
+++ b/index.php
@@ -5,7 +5,7 @@
                exit;
        }
 
-       set_include_path(get_include_path() . PATH_SEPARATOR . 
+       set_include_path(get_include_path() . PATH_SEPARATOR .
                dirname(__FILE__) ."/include");
 
        require_once "functions.php";
        <?php print_theme_includes($link) ?>
        <?php print_user_stylesheet($link) ?>
 
+       <script type="text/javascript">
+       <?php foreach (explode(",", ARTICLE_BUTTON_PLUGINS) as $p) {
+               $jsf = "js/${p}_button.js";
+               if (file_exists($jsf)) {
+                       include $jsf;
+                       print "</script>";
+               }
+       } ?>
+       </script>
+
        <link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
 
        <script type="text/javascript" src="lib/prototype.js"></script>