1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 08:35:55 +00:00

move tweet button to a plugin, implement basic support for article action button plugins

This commit is contained in:
Andrew Dolgov
2011-12-20 23:57:27 +04:00
parent 73621c5605
commit f9ac31d671
6 changed files with 43 additions and 59 deletions

View File

@@ -704,11 +704,15 @@ class Feeds extends Protected_Handler {
onclick=\"emailArticle($id)\"
alt='Zoom' title='".__('Forward by email')."'>";
if (ENABLE_TWEET_BUTTON) {
$reply['content'] .= "<img src=\"".theme_image($this->link, 'images/art-tweet.png')."\"
class='tagsPic' style=\"cursor : pointer\"
onclick=\"tweetArticle($id)\"
alt='Zoom' title='".__('Share on Twitter')."'>";
$button_plugins = explode(",", ARTICLE_BUTTON_PLUGINS);
foreach ($button_plugins as $p) {
$pclass = "${p}_button";
if (class_exists($pclass)) {
$plugin = new $pclass($link);
$rv['content'] .= $plugin->render($id);
}
}
$reply['content'] .= "<img src=\"".theme_image($this->link, 'images/art-share.png')."\"