]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/share/share.php
more work on user-selectable plugins; properly process system and user plugins
[tt-rss.git] / plugins / share / share.php
index 157c937ea7b1996ace7bd1c8b5697e40a2e39dbc..e1151849b8ebc26c85c65112d3f5f51e937e79b1 100644 (file)
@@ -1,9 +1,15 @@
 <?php
-class Share {
+class Share extends Plugin {
        private $link;
        private $host;
 
-       function __construct($host) {
+       function about() {
+               return array(1.0,
+                       "Share article by unique URL",
+                       "fox");
+       }
+
+       function init($host) {
                $this->link = $host->get_link();
                $this->host = $host;
 
@@ -15,7 +21,7 @@ class Share {
        }
 
        function hook_article_button($line) {
-               return "<img src=\"".theme_image($this->link, 'images/art-share.png')."\"
+               return "<img src=\"".theme_image($this->link, 'plugins/share/share.png')."\"
                        class='tagsPic' style=\"cursor : pointer\"
                        onclick=\"shareArticle(".$line['int_id'].")\"
                        title='".__('Share by URL')."'>";