mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-23 11:57:11 +00:00
move tweet button to a plugin, implement basic support for article action button plugins
This commit is contained in:
12
index.php
12
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>
|
||||
|
||||
Reference in New Issue
Block a user