summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-12-21 08:46:39 +0400
committerAndrew Dolgov <[email protected]>2011-12-21 08:50:37 +0400
commit1baac2803c1dee2fc2005c1039d349f4759d20e3 (patch)
treefd0594b0c7ff9e7032e6ee09c3ed85d3ce4ee11d /include
parent8e70d965a8e60aecd17073f71e9646bb0f6a4839 (diff)
add mail and share plugins
Diffstat (limited to 'include')
-rw-r--r--include/functions.php14
1 files changed, 2 insertions, 12 deletions
diff --git a/include/functions.php b/include/functions.php
index c633c03b5..b00817563 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -3284,27 +3284,17 @@
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)\"