diff options
author | Andrew Dolgov <[email protected]> | 2011-12-20 23:57:27 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-12-20 23:59:37 +0400 |
commit | f9ac31d6712b4400a616e49d6217d55edb0daf9c (patch) | |
tree | 453002094fe5070074581529a72fe1e083631b8f /index.php | |
parent | 73621c56055eaff7d222183bfdb5d4fabeb4e209 (diff) |
move tweet button to a plugin, implement basic support for article action button plugins
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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> |