mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 19:55:55 +00:00
move tweet button to a plugin, implement basic support for article action button plugins
This commit is contained in:
@@ -3289,11 +3289,15 @@
|
||||
onclick=\"emailArticle($id)\"
|
||||
alt='Zoom' title='".__('Forward by email')."'>";
|
||||
|
||||
if (ENABLE_TWEET_BUTTON) {
|
||||
$rv['content'] .= "<img src=\"".theme_image($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);
|
||||
}
|
||||
}
|
||||
|
||||
$rv['content'] .= "<img src=\"".theme_image($link, 'images/art-share.png')."\"
|
||||
|
||||
Reference in New Issue
Block a user