summaryrefslogtreecommitdiff
path: root/classes/pref
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-27 16:14:27 +0400
committerAndrew Dolgov <[email protected]>2013-03-27 16:15:25 +0400
commita413f53ebff7d28033090dc343d1ed1d0993ae0b (patch)
treedb02d7ab6427985603384ac489a72646e702befa /classes/pref
parentcedfac22e33b944c65675b4c939464344268bf58 (diff)
add experimental base for plugin vfeeds (3 pane mode not yet
implemented)
Diffstat (limited to 'classes/pref')
-rw-r--r--classes/pref/feeds.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php
index a6811f3fc..d2e69c502 100644
--- a/classes/pref/feeds.php
+++ b/classes/pref/feeds.php
@@ -115,6 +115,32 @@ class Pref_Feeds extends Handler_Protected {
array_push($cat['items'], $this->feedlist_init_feed($i));
}
+ /* Plugin feeds for -1 */
+
+ global $pluginhost;
+
+ $feeds = $pluginhost->get_feeds(-1);
+
+ if ($feeds) {
+ foreach ($feeds as $feed) {
+ $feed_id = PluginHost::pfeed_to_feed_id($feed['id']);
+
+ $item = array();
+ $item['id'] = 'FEED:' . $feed_id;
+ $item['bare_id'] = (int)$feed_id;
+ $item['name'] = $feed['title'];
+ $item['checkbox'] = false;
+ $item['error'] = '';
+ $item['icon'] = $feed['icon'];
+
+ $item['param'] = '';
+ $item['unread'] = 0; //$feed['sender']->get_unread($feed['id']);
+ $item['type'] = 'feed';
+
+ array_push($cat['items'], $item);
+ }
+ }
+
if ($enable_cats) {
array_push($root['items'], $cat);
} else {