diff options
author | Andrew Dolgov <[email protected]> | 2011-12-21 08:46:39 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-12-21 08:50:37 +0400 |
commit | 1baac2803c1dee2fc2005c1039d349f4759d20e3 (patch) | |
tree | fd0594b0c7ff9e7032e6ee09c3ed85d3ce4ee11d /include/functions.php | |
parent | 8e70d965a8e60aecd17073f71e9646bb0f6a4839 (diff) |
add mail and share plugins
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 14 |
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)\" |