]> git.wh0rd.org Git - tt-rss.git/commitdiff
add some stuff to the trgm plugin
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 19 Jan 2015 11:22:41 +0000 (14:22 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 19 Jan 2015 11:22:41 +0000 (14:22 +0300)
plugins/af_psql_trgm/init.php

index 95b78dec124bd2d4efc0931f7e7763b0a2a54f2d..f55aa115621dfc916e0b3b4ad969aee297a839ab 100644 (file)
@@ -2,7 +2,6 @@
 class Af_Psql_Trgm extends Plugin {
 
        private $host;
-       private $filters = array();
 
        function about() {
                return array(1.0,
@@ -98,7 +97,6 @@ class Af_Psql_Trgm extends Plugin {
                        placeholder=\"32\"
                        required=\"1\" name=\"min_title_length\" value=\"$min_title_length\"></td></tr>";
 
-
                print "</table>";
 
                print "<p><button dojoType=\"dijit.form.Button\" type=\"submit\">".
@@ -106,6 +104,23 @@ class Af_Psql_Trgm extends Plugin {
 
                print "</form>";
 
+               $enabled_feeds = $this->host->get($this, "enabled_feeds");
+               if (!array($enabled_feeds)) $enabled_feeds = array();
+
+               if (count($enabled_feeds) > 0) {
+                       print "<h3>" . __("Currently enabled for (click to edit):") . "</h3>";
+
+                       print "<ul class=\"browseFeedList\" style=\"border-width : 1px\">";
+                       foreach ($enabled_feeds as $f) {
+                               print "<li>" .
+                                       "<img src='images/pub_set.png'
+                                               style='vertical-align : middle'> <a href='#'
+                                               onclick='editFeed($f)'>".
+                                       getFeedTitle($f) . "</a></li>";
+                       }
+                       print "</ul>";
+               }
+
                print "</div>";
        }