]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions.php
add mail and share plugins
[tt-rss.git] / include / functions.php
index c633c03b53d115e448cec66dc71a9fb35b6eb15a..b00817563d03f86ae2bde13f989e710552c623c2 100644 (file)
                                                onclick=\"editArticleNote($id)\"
                                                alt='PubNote' title='".__('Edit article note')."'>";
 
-                               $rv['content'] .= "<img src=\"".theme_image($link, 'images/art-email.png')."\"
-                                       class='tagsPic' style=\"cursor : pointer\"
-                                       onclick=\"emailArticle($id)\"
-                                       alt='Zoom' title='".__('Forward by email')."'>";
-
                                $button_plugins = explode(",", ARTICLE_BUTTON_PLUGINS);
 
                                foreach ($button_plugins as $p) {
-                                       $pclass = "${p}_button";
+                                       $pclass = trim("${p}_button");
 
                                        if (class_exists($pclass)) {
                                                $plugin = new $pclass($link);
-                                               $rv['content'] .= $plugin->render($id);
+                                               $rv['content'] .= $plugin->render($id, $line);
                                        }
                                }
 
-                               $rv['content'] .= "<img src=\"".theme_image($link, 'images/art-share.png')."\"
-                                       class='tagsPic' style=\"cursor : pointer\"
-                                       onclick=\"shareArticle(".$line['int_id'].")\"
-                                       alt='Zoom' title='".__('Share by URL')."'>";
-
                                $rv['content'] .= "<img src=\"".theme_image($link, 'images/digest_checkbox.png')."\"
                                                class='tagsPic' style=\"cursor : pointer\"
                                                onclick=\"closeArticlePanel($id)\"