]> git.wh0rd.org - tt-rss.git/blob - plugins/googlereadertheme/init.php
some typing error corrections
[tt-rss.git] / plugins / googlereadertheme / init.php
1 <?php
2 class GoogleReaderTheme extends Plugin {
3
4 private $link;
5 private $host;
6
7 function about() {
8 return array(1.0,
9 "Make tt-rss look similar to Google Reader",
10 "levito");
11 }
12
13 function init($host) {
14 $this->link = $host->get_link();
15 $this->host = $host;
16
17 if ($_SESSION["uid"]) {
18 // force-enable combined mode
19 set_pref($this->link, "COMBINED_DISPLAY_MODE", true, $_SESSION["uid"]);
20 }
21 }
22
23 function get_css() {
24 return file_get_contents(dirname(__FILE__) . "/init.css");
25 }
26 }
27 ?>