summaryrefslogtreecommitdiff
path: root/plugins/googlereadertheme/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-18 14:16:34 +0400
committerAndrew Dolgov <[email protected]>2013-03-18 14:16:34 +0400
commit76a7ae56d3eb47a28b97879f1ad7a88ed7e7706d (patch)
treea5e75d1d4ba95faeaf3625d7015b3c024107eace /plugins/googlereadertheme/init.php
parentc670a80ddd9b03bd4ea6d940a9ed682fd26248d7 (diff)
add plugin based on google reader css at http://tt-rss.org/forum/viewtopic.php?f=22&t=1287&start=15#p5956
Diffstat (limited to 'plugins/googlereadertheme/init.php')
-rw-r--r--plugins/googlereadertheme/init.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/googlereadertheme/init.php b/plugins/googlereadertheme/init.php
new file mode 100644
index 000000000..76e6fa421
--- /dev/null
+++ b/plugins/googlereadertheme/init.php
@@ -0,0 +1,25 @@
+<?php
+class GoogleReaderTheme extends Plugin {
+
+ private $link;
+ private $host;
+
+ function about() {
+ return array(1.0,
+ "Make tt-rss look similar to Google Reader",
+ "levito");
+ }
+
+ function init($host) {
+ $this->link = $host->get_link();
+ $this->host = $host;
+
+ // force-enable combined mode
+ set_pref($this->link, "COMBINED_DISPLAY_MODE", true);
+ }
+
+ function get_css() {
+ return file_get_contents(dirname(__FILE__) . "/init.css");
+ }
+}
+?>