summaryrefslogtreecommitdiff
path: root/plugins/googlereadertheme/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/googlereadertheme/init.php')
-rw-r--r--plugins/googlereadertheme/init.php27
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");
+ }
+}
+?>