summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-12-20 23:57:27 +0400
committerAndrew Dolgov <[email protected]>2011-12-20 23:59:37 +0400
commitf9ac31d6712b4400a616e49d6217d55edb0daf9c (patch)
tree453002094fe5070074581529a72fe1e083631b8f /index.php
parent73621c56055eaff7d222183bfdb5d4fabeb4e209 (diff)
move tweet button to a plugin, implement basic support for article action button plugins
Diffstat (limited to 'index.php')
-rw-r--r--index.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/index.php b/index.php
index d08afa6ef..9d17da7bc 100644
--- 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";
@@ -40,6 +40,16 @@
<?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>