diff options
author | Richard Beales <[email protected]> | 2013-03-18 13:55:54 +0000 |
---|---|---|
committer | Richard Beales <[email protected]> | 2013-03-18 13:55:54 +0000 |
commit | 1d707e9f03d1a654e0807aadce7ab790befd0b95 (patch) | |
tree | 923404b0b57939cb74a4989197184966705ff0fe /plugins/googlereadertheme/init.php | |
parent | 7c97d17aaf373339a8bcd917ad59ca6018148f0d (diff) | |
parent | e9f42579a38a03c9cdc454a712cb0ab68069226d (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'plugins/googlereadertheme/init.php')
-rw-r--r-- | plugins/googlereadertheme/init.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/googlereadertheme/init.php b/plugins/googlereadertheme/init.php new file mode 100644 index 000000000..4ee4a4ba3 --- /dev/null +++ b/plugins/googlereadertheme/init.php @@ -0,0 +1,27 @@ +<?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; + + if ($_SESSION["uid"]) { + // force-enable combined mode + set_pref($this->link, "COMBINED_DISPLAY_MODE", true, $_SESSION["uid"]); + } + } + + function get_css() { + return file_get_contents(dirname(__FILE__) . "/init.css"); + } +} +?> |